/* Dados.Kode: design system de 01/12/2026 (feito a partir do levantamento das telas e da linguagem da Zunō).
   Preto quase puro, índigo #432CF1 como a única cor de ação, Geist e Geist Mono, tudo redondo, grupos
   separados por espaço e cabeçalho (sem caixa dentro de caixa) e luz no contorno da caixa de mensagem.
   Os nomes de classe continuam os de antes: o JS não muda para a tela mudar. */

@font-face { font-family: "Geist Variable"; src: url("/fontes/geist-variavel.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Variable"; src: url("/fontes/geist-variavel-italico.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist Mono Variable"; src: url("/fontes/geist-mono-variavel.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* ---------- tokens (tokens.json do design system) ---------- */
:root, [data-theme="dark"] {
  --bg: #030307; --surface: #09090e; --surface-raised: #0f0f16; --surface-hover: #17171f; --surface-selected: #13112b; --bubble: #17171f;
  --line: #1a1a21; --line-strong: #26262f; --line-control: #62626f;
  --ink: #f4f4f7; --ink-muted: #a6a6b4; --ink-faint: #55555f;
  --brand: #432cf1; --brand-hover: #5540ff; --on-brand: #ffffff; --brand-text: #8e82ff; --brand-soft: #15113a;
  --live: #5bd08a; --live-soft: #0b2016; --warn: #f2b84b; --warn-soft: #21190a; --danger: #ff8a8a; --danger-soft: #2a1214; --idle: #6e6e7a;
  --focus: #8e82ff; --glow: rgba(67, 44, 241, 0.38); --light-edge: #7c6dff; --light-edge-2: #6078ff; --overlay: rgba(0, 0, 4, 0.66);
  --kode-teal: #39aeca; --kode-ink: #05050a; /* marca: o turquesa do símbolo do KodeLab e o chão escuro atrás dele */
  --shadow-glow: 0 14px 56px rgba(67, 44, 241, 0.22); --shadow-card: none; --shadow-overlay: 0 24px 64px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f4f4f7; --surface: #fafafc; --surface-raised: #ffffff; --surface-hover: #eaeaf0; --surface-selected: #edebff; --bubble: #e6e6ee;
  --line: #e1e3ea; --line-strong: #d3d5de; --line-control: #8a8b96;
  --ink: #0b0b12; --ink-muted: #4a4b55; --ink-faint: #a3a4ae;
  --brand: #432cf1; --brand-hover: #3520d6; --on-brand: #ffffff; --brand-text: #432cf1; --brand-soft: #edebff;
  --live: #1e7a44; --live-soft: #e3f4ea; --warn: #8a5300; --warn-soft: #fff5e2; --danger: #c1121f; --danger-soft: #fdeced; --idle: #86868f;
  --focus: #432cf1; --glow: rgba(67, 44, 241, 0.16); --light-edge: #432cf1; --light-edge-2: #404fd3; --overlay: rgba(11, 11, 18, 0.32);
  --shadow-glow: 0 10px 40px rgba(67, 44, 241, 0.10); --shadow-card: 0 1px 2px rgba(10, 10, 30, 0.04), 0 10px 28px rgba(10, 10, 30, 0.05); --shadow-overlay: 0 24px 64px rgba(10, 10, 30, 0.16);
  color-scheme: light;
}
:root {
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px; --space-11: 44px; --space-16: 64px;
  --radius-xs: 6px; --radius-sm: 8px; --radius-md: 12px; --radius-field: 14px; --radius-lg: 20px; --radius-xl: 22px; --radius-2xl: 28px; --radius-full: 9999px;
  --size-control-sm: 32px; --size-control-md: 40px; --size-control-lg: 44px; --size-appbar: 60px; --size-sidebar: 360px; --size-reading: 760px; --size-sheet: 460px;
  --font-sans: "Geist Variable", "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono Variable", "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  /* curvas da Zunō: saída, entrada e saída, mola e antecipação */
  --dk-out: cubic-bezier(0.16, 1, 0.3, 1); --dk-inout: cubic-bezier(0.65, 0, 0.35, 1); --dk-spring: cubic-bezier(0.34, 1.56, 0.64, 1); --dk-snap: cubic-bezier(0.65, -0.2, 0.25, 1.25);
  /* Nomes de antes, apontando para os tokens: código que ainda usa var(--roxo) etc. fica no visual novo. */
  --fundo: var(--bg); --superficie: var(--surface-raised); --superficie-2: var(--surface-hover); --borda: var(--line-strong); --borda-fraca: var(--line);
  --texto: var(--ink); --texto-2: var(--ink-muted); --texto-3: var(--ink-muted);
  --roxo: var(--brand); --roxo-botao: var(--brand); --roxo-texto: var(--brand-text); --roxo-fundo: var(--brand-soft); --roxo-borda: var(--brand-text);
  --azul: var(--brand-text); --azul-texto: var(--brand-text);
  --vermelho: var(--danger); --laranja: var(--warn); --amarelo: var(--warn); --verde: var(--live);
  --raio: var(--radius-lg); --raio-p: var(--radius-md); --mov: .2s var(--dk-out);
}
@property --dk-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* ---------- base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: 14px; line-height: 20px; -webkit-font-smoothing: antialiased; }
body { overscroll-behavior: none; -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand-text); }
::selection { background: var(--brand-soft); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.oculto { display: none !important; }
code, pre, kbd, samp { font-family: var(--font-mono); }

/* ---------- casca: uma coluna no celular, lista de 360px e conversa no computador ---------- */
.casca { display: grid; grid-template-columns: minmax(0, 1fr); height: 100dvh; }
.lado, .principal { min-height: 0; min-width: 0; display: flex; flex-direction: column; }
.lado { position: relative; background: var(--bg); }
.principal { background: var(--bg); }
@media (min-width: 760px) {
  .casca { grid-template-columns: var(--size-sidebar) minmax(0, 1fr); }
  .lado { background: var(--surface); border-right: 1px solid var(--line); }
  .so-estreito { display: none !important; }
}
@media (max-width: 759px) {
  .casca[data-tela="lista"] .principal { display: none; }
  .casca:not([data-tela="lista"]) .lado { display: none; }
}

/* ---------- barra do topo ---------- */
.topo { display: flex; align-items: center; gap: var(--space-1); min-height: var(--size-appbar); padding: max(8px, env(safe-area-inset-top)) var(--space-3) 8px var(--space-2); border-bottom: 1px solid var(--line); background: var(--bg); }
.lado .topo { padding-left: var(--space-4); border-bottom: 0; background: transparent; }
.topo h1 { font-size: 16px; line-height: 22px; font-weight: 600; letter-spacing: -0.01em; margin: 0; flex: 1; min-width: 0; padding-left: var(--space-2); }
.topo .titulo-conversa { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0; background: none; border: 0; text-align: left; padding: 4px 8px; border-radius: var(--radius-md); }
.topo .titulo-conversa:hover { background: var(--surface-hover); }
.topo .titulo-conversa b { font-size: 16px; line-height: 22px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topo .titulo-conversa span { font-family: var(--font-mono); font-size: 12px; line-height: 16px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icone-btn { width: var(--size-control-md); height: var(--size-control-md); border-radius: var(--radius-full); border: 1px solid transparent; background: transparent; color: var(--ink-muted); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 0; transition: background-color .12s ease, color .12s ease; }
.icone-btn:hover { background: var(--surface-hover); color: var(--ink); }
.icone-btn svg { width: 20px; height: 20px; }
.icone-btn.destaque { width: 36px; height: 36px; background: var(--brand); color: var(--on-brand); margin-right: 4px; }
.icone-btn.destaque:hover { background: var(--brand-hover); color: var(--on-brand); }
@media (pointer: coarse) { .icone-btn { width: var(--size-control-lg); height: var(--size-control-lg); } .icone-btn.destaque { width: 40px; height: 40px; } }
.marca { display: flex; align-items: center; gap: var(--space-2); flex: 1; min-width: 0; }
.simbolo { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 26%; background: var(--kode-ink); }
.simbolo img { display: block; width: 86%; height: 86%; object-fit: contain; }
.simbolo.grande { width: 88px; height: 88px; }
.marca b { font-size: 16px; line-height: 20px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.marca b i { font-style: normal; color: var(--kode-teal); }
.topo .renomear { color: var(--ink-muted); }

/* ---------- busca e abas ---------- */
.busca { margin: 4px var(--space-4) 8px; position: relative; }
.busca input { width: 100%; height: var(--size-control-md); border-radius: var(--radius-field); border: 1px solid transparent; background: var(--surface-hover); color: var(--ink); padding: 0 14px 0 38px; outline: none; font-size: 14px; caret-color: var(--brand-text); transition: border-color .12s ease, background-color .12s ease; }
.busca input::placeholder { color: var(--ink-muted); }
.busca input:focus { background: var(--surface-raised); border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.busca svg { position: absolute; left: 13px; top: 11px; width: 18px; height: 18px; color: var(--ink-muted); }
@media (pointer: coarse) { .busca input { height: var(--size-control-lg); font-size: 16px; } .busca svg { top: 13px; } }

/* Abas de texto com traço índigo: cabem numa linha em 360px; se não couberem, a borda direita esmaece. */
.abas { position: relative; display: flex; gap: var(--space-3); padding: 0 var(--space-4); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); }
.abas::-webkit-scrollbar { display: none; }
.aba, .abas .aba { position: relative; flex: none; display: inline-flex; align-items: baseline; gap: 5px; height: 40px; min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--ink-muted);
  font-size: 14px; line-height: 40px; font-weight: 500; white-space: nowrap; letter-spacing: -0.005em; }
.aba:hover { color: var(--ink); }
.aba[aria-selected="true"] { color: var(--ink); font-weight: 600; background: transparent; }
.aba::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: -1px; height: 2px; border-radius: 2px; background: var(--brand-text); transition: left .35s var(--dk-spring), right .35s var(--dk-spring); }
.aba[aria-selected="true"]::after { left: 0; right: 0; }
.aba .conta, .abas .aba .conta { font-size: 12px; font-weight: 500; color: var(--ink-muted); background: none; padding: 0; border-radius: 0; font-variant-numeric: tabular-nums; }
.aba[aria-selected="true"] .conta, .aba.com-espera .conta { color: var(--brand-text); }
.aba.com-espera .conta { font-weight: 600; }
.aba .curto { display: none; }
/* Rótulo curto ("Esperando") pela largura da coluna da lista (consulta de contêiner), não da tela (d52992f). */
.abas { container-type: inline-size; }
@container (max-width: 359px) { .aba .longo { display: none; } .aba .curto { display: inline; } }

/* ---------- lista: grupos por cabeçalho, conversas em linhas planas ---------- */
.lista { flex: 1; overflow-y: auto; padding: var(--space-2) var(--space-2) 0; }
.caixa-maquina { margin: var(--space-2) 0 0; background: transparent; border: 0; border-radius: 0; overflow: visible; }
.caixa-maquina:first-child { margin-top: 0; }
.caixa-maquina > summary, .gaveta > summary { list-style: none; display: flex; align-items: center; gap: var(--space-2); cursor: pointer; user-select: none; border-radius: var(--radius-md); }
.caixa-maquina > summary::-webkit-details-marker, .gaveta > summary::-webkit-details-marker { display: none; }
.caixa-maquina > summary:hover, .gaveta > summary:hover { background: var(--surface-hover); }
.caixa-maquina > summary { min-height: 36px; padding: 0 var(--space-3); }
.caixa-maquina > summary .nome { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink); }
.caixa-maquina > summary .nota { font-family: var(--font-mono); font-size: 12px; line-height: 18px; color: var(--ink-muted); }
.caixa-maquina > summary .etiqueta.verde { margin-left: auto; background: none; padding: 0; height: auto; color: var(--live); font-size: 12px; font-weight: 500; }
.caixa-maquina > summary .conta, .gaveta > summary .conta { margin-left: auto; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-muted); background: none; padding: 0; font-variant-numeric: tabular-nums; }
.caixa-maquina > summary .etiqueta.verde + .conta { margin-left: var(--space-2); }
.gaveta { border-top: 0; }
.gaveta > summary { min-height: 34px; padding: 0 var(--space-3); margin-top: 2px; font-size: 12px; color: var(--ink-muted); }
.gaveta > summary .nome { display: inline-flex; align-items: baseline; gap: 6px; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-muted); }
.gaveta > summary .caminho { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }
.gaveta > summary .empurra { flex: 1; }
.gaveta > summary .empurra ~ .conta { margin-left: 0; }
.gaveta > summary .quando { min-width: 34px; text-align: right; }
.sis { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 7px; background: var(--surface-hover); color: var(--ink-muted); font-size: 9.5px; font-weight: 700; letter-spacing: .03em; }
.sis.sem { color: var(--ink-faint); }
.gaveta > summary .quando { font-size: 12px; color: var(--ink-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.gaveta > summary .conta + .quando { margin-left: var(--space-2); }
.gaveta[open] > summary { background: transparent; }
.gaveta[open] > summary:hover { background: var(--surface-hover); }
.gaveta.fraca > summary .nome { color: var(--ink-faint); font-weight: 500; }
/* nome de grupo longo termina em reticências, numa linha só (d52992f) */
.caixa-maquina > summary .nome, .gaveta > summary .nome { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gaveta-unica { padding-top: 2px; }
/* a seta do grupo gira como no GroupHeader: para baixo aberto, para a direita fechado */
.seta { width: 7px; height: 7px; border-right: 1.75px solid var(--ink-muted); border-bottom: 1.75px solid var(--ink-muted); transform: rotate(-45deg); transition: transform .3s var(--dk-spring); margin: 0 4px 2px 6px; flex-shrink: 0; }
details[open] > summary .seta { transform: rotate(45deg); }

/* Pontos de estado: o verde pulsa só rodando; fora do ar é um ponto apagado. */
.ponto { position: relative; width: 8px; height: 8px; border-radius: var(--radius-full); flex-shrink: 0; background: var(--live); }
.ponto.fora { background: var(--idle); border: 0; }
.ponto.vivo::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid var(--live); opacity: .5; animation: dk-pulse 1.6s var(--dk-out) infinite; }
.ponto.parado { background: transparent; box-shadow: inset 0 0 0 1.5px var(--idle); }
.ponto.roxo { background: var(--brand-text); }
.ponto.amarelo { background: transparent; box-shadow: inset 0 0 0 2px var(--warn); }
@keyframes dk-pulse { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes dk-spin { to { transform: rotate(360deg); } }

/* Linha de conversa: fundo em degradê e barra índigo que cresce no hover e na aberta. */
.item-linha { position: relative; }
.item, .caixa-maquina .item { position: relative; display: flex; gap: var(--space-3); align-items: center; width: 100%; text-align: left; padding: 10px var(--space-3); border: 0; border-radius: var(--radius-md); background: transparent; color: inherit; --ring-color: var(--bg); transition: background-color .15s ease; }
@media (min-width: 760px) { .item, .caixa-maquina .item { --ring-color: var(--surface); } }
.item::before { content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 0; border-radius: 3px; background: var(--brand-text); transform: translateY(-50%); transition: height .4s var(--dk-spring); }
.item:hover, .caixa-maquina .item:hover { background: linear-gradient(90deg, var(--brand-soft), var(--surface-hover) 70%); --ring-color: var(--surface-hover); }
.item:hover::before { height: 40%; }
.item[aria-current="true"], .caixa-maquina .item[aria-current="true"] { background: linear-gradient(90deg, var(--brand-soft), var(--surface-selected) 70%); box-shadow: none; --ring-color: var(--surface-selected); }
.item[aria-current="true"]::before { height: 56%; }
.item .corpo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.item, .caixa-maquina .item { gap: 10px; padding-left: var(--space-3); }
.calha { flex: none; align-self: flex-start; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 20px; }
.marca-estado { position: relative; width: 8px; height: 8px; border-radius: var(--radius-full); }
.marca-estado.rodando { background: var(--live); }
.marca-estado.rodando::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid var(--live); opacity: .5; animation: dk-pulse 1.6s var(--dk-out) infinite; }
.marca-estado.nova { background: var(--brand-text); }
.marca-estado.fora { box-shadow: inset 0 0 0 2px var(--warn); }
.marca-estado.processo { width: 7px; height: 7px; box-shadow: inset 0 0 0 1.5px var(--brand-text); }
.marca-estado.erro { background: var(--danger); }
.marca-estado.limite { background: var(--warn); }
/* segunda linha trabalhando: ícone e verbo em verde, com o brilho passando, e o alvo em mono */
.item .acao { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; }
.item .acao > svg { flex: none; color: var(--live); }
.item .acao-verbo { flex: none; font-weight: 500; color: var(--live); background: linear-gradient(90deg, var(--live) 0%, var(--live) 38%, var(--ink) 50%, var(--live) 62%, var(--live) 100%);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: dk-shimmer 2.2s linear infinite; }
.item .acao-alvo { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }
.item .acao-alvo.sans { font-family: var(--font-sans); font-size: 13px; }
.item .acao.erro > svg, .item .acao.erro .acao-verbo { color: var(--danger); }
.item .acao.aviso .acao-verbo { color: var(--warn); }
.item .acao.erro .acao-verbo, .item .acao.aviso .acao-verbo { background: none; -webkit-text-fill-color: currentColor; animation: none; }
/* dono da sessão: discreto, alinhado com a hora; só quando a sessão é de outra pessoa */
.dono { flex: none; display: inline-flex; align-items: center; gap: 5px; max-width: 104px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-muted); }
.dono-av { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: var(--radius-full); background: var(--brand-soft); color: var(--brand-text); font-size: 8.5px; line-height: 1; font-weight: 700; letter-spacing: .02em; }
.dono-nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gaveta > summary .dono { margin-right: 2px; }
.etiqueta > svg, .item .onde > svg { flex: none; }
.item .onde { gap: 4px; }
.item .t { font-size: 14px; line-height: 20px; font-weight: 450; color: var(--ink); }
.item .linha1 { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.item .linha1 .t { display: block; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; font-weight: 450; -webkit-line-clamp: unset; }
.item .hora { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-muted); flex-shrink: 0; font-variant-numeric: tabular-nums; }
.item .linha2 { display: flex; align-items: center; gap: var(--space-2); min-width: 0; margin-top: 0; }
.item .previa { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.item .previa .quem { color: var(--ink-muted); font-weight: 500; }
.item .previa .origem { color: var(--ink-muted); }
.item .previa .rascunho { color: var(--brand-text); font-weight: 600; }
.item .previa b.verde, .item .s b.verde { color: var(--live); font-weight: 500; }
.item .s { font-size: 12px; color: var(--ink-muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.item .onde { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--radius-full); background: var(--warn-soft); color: var(--warn); font-size: 12px; font-weight: 500; flex-shrink: 0; }
.item .selo-nova { width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--brand-text); flex-shrink: 0; }
.item.nao-lida .t, .item-linha.estado-esperando .t { font-weight: 600; color: var(--ink); }
.item.nao-lida .hora { color: var(--brand-text); }
.item.nao-lida .previa { color: var(--ink-muted); }

/* Iniciais: quadrado de cantos redondos com a cor do sistema em tom escuro e o estado num ponto no canto. */
.avatar { position: relative; width: 38px; height: 38px; border-radius: var(--radius-md); background: var(--surface-hover); color: var(--ink); font-weight: 600; font-size: 12px; line-height: 16px; letter-spacing: .02em;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: inset 0 0 0 100px rgba(3, 3, 7, .52); }
[data-theme="light"] .avatar { box-shadow: inset 0 0 0 100px rgba(255, 255, 255, .15); color: #fff; }
.avatar::after { content: ''; position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: var(--radius-full); box-shadow: 0 0 0 2px var(--ring-color, var(--bg)); display: none; }
.avatar.vivo::after, .avatar.rodando::after { display: block; background: var(--live); }
.avatar.rodando::before { content: ''; position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: var(--radius-full); border: 2px solid var(--live); box-sizing: border-box; animation: dk-pulse 1.6s var(--dk-out) infinite; z-index: 1; }
.avatar.roxo::after, .avatar.esperando::after { display: block; background: var(--brand-text); }
.avatar.amarelo::after { display: block; background: var(--ring-color, var(--bg)); box-shadow: inset 0 0 0 2px var(--warn), 0 0 0 2px var(--ring-color, var(--bg)); }
.avatar.limite::after { display: block; background: var(--warn); }
.avatar.queda::after, .avatar.erro::after { display: block; background: var(--danger); }
.avatar.mini { width: 18px; height: 18px; border-radius: 5px; font-size: 8.5px; line-height: 1; letter-spacing: 0; font-weight: 700; }
.avatar.mini::after, .avatar.mini::before { display: none; }

/* Etiquetas e selos: pílulas de 22px, a cor sempre junto da palavra. */
.etiqueta, .selo { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: var(--radius-full); font-size: 12px; line-height: 16px; font-weight: 500;
  background: var(--surface-hover); color: var(--ink-muted); white-space: nowrap; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.etiqueta.amarelo, .etiqueta.laranja, .selo.laranja { background: var(--warn-soft); color: var(--warn); }
.etiqueta.verde, .selo.verde { background: var(--live-soft); color: var(--live); }
.etiqueta.vermelho, .selo.vermelho { background: var(--danger-soft); color: var(--danger); }
.etiqueta.roxo, .selo.azul, .etiqueta.dono-conversa { background: var(--brand-soft); color: var(--brand-text); }
.etiqueta.compartilhada { flex-shrink: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }

.item-menu { position: absolute; right: 8px; top: 8px; width: 32px; height: 32px; border-radius: var(--radius-full); border: 0; background: var(--surface-raised); color: var(--ink-muted); display: none; align-items: center; justify-content: center; box-shadow: 0 0 0 1px var(--line-strong); }
.item-menu:hover { color: var(--ink); background: var(--surface-hover); }
@media (hover: hover) {
  .item-linha:hover .item-menu, .item-menu:focus-visible { display: inline-flex; }
  .item-linha:hover .hora { visibility: hidden; }
}
.mais { margin: 6px var(--space-3); font-size: 13px; color: var(--ink-muted); background: none; border: 0; padding: 6px 0; }
.vazio { padding: var(--space-10) var(--space-6); color: var(--ink-muted); font-size: 13px; line-height: 18px; text-align: center; max-width: 380px; margin: 0 auto; }
.rodape-lista { padding: var(--space-4) var(--space-3) 0; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-muted); }
.rodape-lista .fora { color: var(--ink-faint); }
.escolher-selecao { margin: var(--space-4) var(--space-3) 0; width: calc(100% - 24px); }
.fim-lista { height: 96px; }
@media (min-width: 760px) { .fim-lista { height: 12px; } }

/* Botão flutuante "Sessão nova": índigo, some ao descer a lista; no computador o "+" do topo basta. */
.botao-flutuante { position: absolute; right: 18px; bottom: calc(20px + env(safe-area-inset-bottom)); height: 52px; padding: 0 22px 0 18px; border-radius: var(--radius-full); border: 0; background: var(--brand); color: var(--on-brand);
  font-size: 15px; font-weight: 560; display: inline-flex; align-items: center; gap: var(--space-2); box-shadow: var(--shadow-glow); transition: transform .4s var(--dk-spring), opacity .2s ease, background-color .12s ease; }
.botao-flutuante:hover { background: var(--brand-hover); }
.botao-flutuante:active { transform: scale(0.96); }
.botao-flutuante.escondido { transform: translateY(120%); opacity: 0; pointer-events: none; }
@media (min-width: 760px) { .botao-flutuante { display: none; } }

/* ---------- conversa: coluna de leitura de 760px, o Claude sem balão ---------- */
.mensagens { flex: 1; overflow-y: auto; overflow-x: hidden; padding: var(--space-6) var(--space-4) var(--space-8); scroll-behavior: auto; }
.coluna { max-width: var(--size-reading); min-width: 0; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-8); }
@media (min-width: 760px) { .mensagens .coluna { gap: var(--space-10); } }
.turno-usuario { align-self: flex-end; max-width: min(80%, 560px); background: var(--bubble); color: var(--ink); border-radius: var(--radius-xl) var(--radius-xl) var(--radius-xs) var(--radius-xl);
  padding: 13px 18px; font-size: 16px; line-height: 24px; white-space: pre-wrap; overflow-wrap: anywhere; animation: dk-rise .5s var(--dk-out) both; }
.turno-usuario .autor { display: block; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--brand-text); margin-bottom: 4px; }
.turno-usuario .imagem-anexa { font-size: 12px; color: var(--ink-muted); display: block; margin-top: 6px; }
.turno-usuario.na-fila { opacity: .7; box-shadow: inset 0 0 0 1px var(--line-control); }
.turno-usuario .rotulo-fila { display: block; font-size: 12px; color: var(--ink-muted); margin-top: 6px; white-space: normal; }
.turno-assistente { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
@keyframes dk-rise { from { opacity: 0; transform: translateY(12px); } }
.resumo-divisor { display: flex; align-items: center; gap: var(--space-3); width: 100%; color: var(--ink-muted); font-size: 12px; line-height: 16px; font-weight: 500; border: 0; padding: 0; }
.resumo-divisor::before, .resumo-divisor::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.carregar-mais { align-self: center; }

/* texto da resposta: 16/26, código em Geist Mono */
.md { font-size: 16px; line-height: 26px; color: var(--ink); overflow-wrap: anywhere; }
.md > :first-child { margin-top: 0; } .md > :last-child { margin-bottom: 0; }
.md p { margin: 0 0 var(--space-3); }
.md ul, .md ol { margin: 0 0 var(--space-3); padding-left: 20px; }
.md li { margin: 2px 0; }
.md li > p { margin: 0; }
.md strong { font-weight: 600; }
.md h1, .md h2, .md h3, .md h4 { line-height: 1.3; margin: 1.3em 0 .5em; font-weight: 600; letter-spacing: -0.01em; }
.md h1 { font-size: 22px; line-height: 28px; } .md h2 { font-size: 19px; line-height: 26px; } .md h3 { font-size: 17px; line-height: 24px; } .md h4 { font-size: 15px; line-height: 20px; }
.md code { font-family: var(--font-mono); font-size: 13px; background: var(--surface-hover); color: var(--ink); padding: 2px 6px; border-radius: var(--radius-xs); }
.md pre { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px var(--space-4); overflow-x: auto; margin: 0 0 var(--space-3); }
.md pre code { background: none; padding: 0; font-size: 13px; line-height: 20px; white-space: pre; }
.md pre:has(.copiar) { padding-top: 40px; }
.md pre .copiar { position: absolute; top: 8px; right: 8px; height: 26px; font-size: 12px; font-weight: 500; border: 1px solid var(--line-strong); background: var(--surface-raised); color: var(--ink-muted); border-radius: var(--radius-full); padding: 0 10px; }
.md pre .copiar:hover { color: var(--ink); background: var(--surface-hover); }
.md blockquote { margin: 0 0 var(--space-3); padding-left: var(--space-3); border-left: 3px solid var(--line-strong); color: var(--ink-muted); }
.md table { border-collapse: collapse; margin: 0 0 var(--space-3); display: block; overflow-x: auto; font-size: 14px; line-height: 20px; }
.md th { text-align: left; font-weight: 600; color: var(--ink-muted); font-size: 12px; background: none; }
.md th, .md td { border: 0; border-bottom: 1px solid var(--line); padding: 7px var(--space-5) 7px 0; vertical-align: top; font-variant-numeric: tabular-nums; }
.md hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-6) 0; }
.md a { color: var(--brand-text); text-decoration: none; } .md a:hover { text-decoration: underline; }
a.caminho-link { text-decoration: none; }
a.caminho-link code { color: var(--brand-text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--brand-text) 40%, transparent); text-underline-offset: 3px; cursor: pointer; }

/* Ferramenta: linha recolhida de 34px; o conteúdo abre embaixo, recuado. */
.ferramenta { border: 0; border-radius: var(--radius-md); background: transparent; font-size: 13px; }
.ferramenta > summary { list-style: none; display: flex; gap: var(--space-2); align-items: center; height: 34px; padding: 0 10px; cursor: pointer; color: var(--ink-muted); border-radius: var(--radius-md); }
.ferramenta > summary:hover { background: var(--surface-hover); }
.ferramenta > summary::-webkit-details-marker { display: none; }
.ferramenta > summary svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--ink-muted); }
.ferramenta > summary b { flex: none; color: var(--ink); font-size: 13px; line-height: 18px; font-weight: 560; }
.ferramenta > summary .linha { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-mono); font-size: 12px; line-height: 18px; color: var(--ink-muted); }
.ferramenta > summary::after, .pensamento > summary::after { content: ""; flex: none; width: 6px; height: 6px; margin: 0 4px 0 2px; border-right: 1.5px solid var(--ink-muted); border-bottom: 1.5px solid var(--ink-muted); transform: rotate(-45deg); transition: transform .3s var(--dk-spring); }
.ferramenta[open] > summary::after, .pensamento[open] > summary::after { transform: rotate(45deg); }
.ferramenta.erro > summary b { color: var(--danger); }
.ferramenta > summary .etiqueta.amarelo::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid currentColor; border-right-color: transparent; box-sizing: border-box; animation: dk-spin .8s linear infinite; }
.ferramenta pre { margin: var(--space-1) 0 var(--space-2) 34px; padding: 14px var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); white-space: pre-wrap; overflow-wrap: anywhere;
  font-family: var(--font-mono); font-size: 12px; line-height: 18px; max-height: 420px; overflow-y: auto; color: var(--ink-muted); animation: dk-rise .35s var(--dk-out) both; }
.pensamento { font-size: 13px; color: var(--ink-muted); }
.pensamento > summary { list-style: none; display: flex; align-items: center; gap: var(--space-2); height: 34px; padding: 0 10px; cursor: pointer; border-radius: var(--radius-md); font-weight: 560; color: var(--ink-muted); }
.pensamento > summary::-webkit-details-marker { display: none; }
.pensamento > summary:hover { background: var(--surface-hover); color: var(--ink); }
.pensamento > summary::before { content: ""; width: 16px; height: 16px; flex: none; 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.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z'/%3E%3Cpath d='M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z'/%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.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z'/%3E%3Cpath d='M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.pensamento .md { font-size: 14px; line-height: 22px; color: var(--ink-muted); margin: var(--space-1) 0 var(--space-2) 34px; }

/* "Pensando…" e "Usando Terminal…": texto com brilho passando e a estrela que gira em passos. */
.trabalhando { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 14px; line-height: 20px; font-weight: 500; padding: 0 10px; align-self: flex-start;
  background: linear-gradient(90deg, var(--ink-muted) 0%, var(--ink-muted) 38%, var(--ink) 50%, var(--ink-muted) 62%, var(--ink-muted) 100%); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: dk-shimmer 2s linear infinite; }
.trabalhando > .digitando { display: none; }
.trabalhando::before { content: "✦"; -webkit-text-fill-color: var(--brand-text); color: var(--brand-text); font-size: 13px; display: inline-block; animation: dk-step 1.8s var(--dk-snap) infinite; }
.digitando { display: inline-flex; gap: 5px; padding: 8px 10px; align-self: flex-start; }
.digitando i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-text); animation: pula 1.2s infinite ease-in-out; }
.digitando i:nth-child(2) { animation-delay: .15s; } .digitando i:nth-child(3) { animation-delay: .3s; }
@keyframes pula { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes dk-shimmer { from { background-position: 100% 0; } to { background-position: 0% 0; } }
@keyframes dk-step { 0%, 30% { transform: rotate(0deg); } 50%, 80% { transform: rotate(45deg); } 100% { transform: rotate(90deg); } }

/* Faixas de aviso (aberta fora, erro, limite): fundo suave, raio 20, sem borda. */
.faixa { margin: var(--space-3) var(--space-4) 0; padding: 12px 12px 12px 18px; border-radius: var(--radius-lg); font-size: 13px; line-height: 18px; display: flex; gap: var(--space-3); align-items: center; background: var(--surface-hover); color: var(--ink); border: 0; }
@media (min-width: 760px) { .faixa { max-width: var(--size-reading); margin-left: auto; margin-right: auto; width: calc(100% - 32px); } }
.faixa.amarelo, .faixa.laranja { background: var(--warn-soft); border: 0; }
.faixa.vermelho { background: var(--danger-soft); border: 0; }
.faixa button { margin-left: auto; flex-shrink: 0; }
.faixa > svg { flex-shrink: 0; color: var(--ink-muted); }
.faixa.amarelo > svg, .faixa.laranja > svg { color: var(--warn); }
.faixa.vermelho > svg { color: var(--danger); }
.faixa .botao { min-height: 32px; height: 32px; padding: 0 14px; font-size: 13px; background: var(--ink); color: var(--bg); }

/* ---------- caixa de mensagem: contorno de 1px que vira luz girando ---------- */
.caixa { position: relative; padding: 8px var(--space-3) calc(12px + env(safe-area-inset-bottom)); border-top: 0; background: transparent; }
.caixa::before { content: ""; position: absolute; left: 10%; right: 10%; bottom: 0; height: 120px; pointer-events: none; background: radial-gradient(closest-side, var(--glow), transparent); opacity: .55; }
.caixa .dentro { position: relative; max-width: var(--size-reading); margin: 0 auto; background: var(--surface-raised); border: 1px solid var(--line-strong); border-radius: var(--radius-2xl); padding: 10px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow-glow); }
.caixa .dentro::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: conic-gradient(from var(--dk-a), transparent 0deg, var(--light-edge) 45deg, transparent 100deg, transparent 360deg);
  -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); }
/* a luz só gira quando se digita ou quando ele responde (mais rápida, com duas luzes) */
.caixa .dentro:focus-within::before { opacity: 1; animation: dk-turn 4s linear infinite; }
.caixa:has(.enviar.parar) .dentro::before { opacity: 1; animation: dk-turn 1.15s linear infinite;
  background: conic-gradient(from var(--dk-a), transparent 0deg, var(--light-edge) 45deg, transparent 100deg, transparent 180deg, var(--light-edge-2) 225deg, transparent 280deg, transparent 360deg); }
@keyframes dk-turn { to { --dk-a: 360deg; } }
.caixa textarea { display: block; width: 100%; min-height: 44px; max-height: 40vh; resize: none; border: 0; outline: none; background: transparent; color: var(--ink); line-height: 24px; padding: 8px 10px 4px; font-size: 16px; caret-color: var(--brand-text); }
.caixa textarea::placeholder { color: var(--ink-muted); }
.caixa textarea:disabled::placeholder { color: var(--ink-muted); }
.caixa .barra { display: flex; align-items: center; gap: 2px; min-width: 0; }
.caixa .barra .icone-btn { width: var(--size-control-md); height: var(--size-control-md); color: var(--ink-muted); }
.caixa .anexos { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 2px 2px 0; }
.caixa.soltando .dentro { border-color: var(--brand-text); box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow-glow); }
.anexo { position: relative; display: inline-flex; align-items: center; gap: var(--space-2); max-width: 240px; height: 34px; padding: 0 4px 0 12px; border-radius: var(--radius-full); background: var(--surface-hover); font-size: 13px; color: var(--ink); overflow: hidden; }
.anexo span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.anexo button { border: 0; background: none; color: var(--ink-muted); width: 28px; height: 28px; border-radius: var(--radius-full); display: inline-flex; align-items: center; justify-content: center; }
.anexo button:hover { background: var(--surface-raised); color: var(--ink); }
.anexo progress { width: 46px; height: 4px; accent-color: var(--brand-text); }
.anexo.com-previa { padding-left: 4px; }
.anexo img { width: 26px; height: 26px; border-radius: var(--radius-full); object-fit: cover; cursor: zoom-in; flex-shrink: 0; }
/* pílula do modelo: texto, sem moldura */
.pilula { height: 32px; padding: 0 10px 0 12px; border-radius: var(--radius-full); border: 0; background: transparent; color: var(--ink); font-size: 13px; font-weight: 500; display: inline-block; line-height: 32px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.pilula:hover { background: var(--surface-hover); }
.pilula { color: var(--ink-muted); }
.pilula b { color: var(--ink); font-weight: 560; }
.pilula .sep { color: var(--ink-faint); }
.pilula .conta-fixa { color: var(--brand-text); }
/* enviar: círculo índigo; respondendo, vira parar e o círculo vira quadrado de cantos redondos */
.enviar { width: var(--size-control-lg); height: var(--size-control-lg); border-radius: var(--radius-full); border: 0; background: var(--brand); color: var(--on-brand); display: inline-flex; align-items: center; justify-content: center; margin-left: auto; flex-shrink: 0;
  transition: border-radius .45s var(--dk-spring), background-color .2s ease, transform .4s var(--dk-spring); }
.enviar:hover { background: var(--brand-hover); }
.enviar:active:not(:disabled) { transform: scale(0.9); }
.enviar:disabled { background: var(--surface-hover); color: var(--ink-faint); cursor: not-allowed; }
.enviar.parar { border-radius: 14px; background: var(--brand); color: var(--on-brand); }
.enviar svg { width: 20px; height: 20px; }
.enviar.parar svg { width: 18px; height: 18px; }

/* ditado: no lugar da pílula, a faixa com descartar, ponto, relógio e medidor; o enviar fica no canto */
.gravando { color: var(--danger) !important; }
.gravando-tempo { font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.caixa.ditando .barra > .pilula, .caixa.ditando .barra > .clipe { display: none; }
.gravacao { display: flex; align-items: center; gap: var(--space-3); min-width: 0; flex: 1 1 auto; overflow: hidden; padding: 0 var(--space-2); }
.gravacao.oculto { display: none; }
.gravacao .icone-btn { width: 36px; height: 36px; }
.ponto-gravando { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); flex-shrink: 0; animation: pulsar 1.2s ease-in-out infinite; }
@keyframes pulsar { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.medidor { display: inline-flex; align-items: center; gap: 3px; height: 22px; }
.medidor.oculto { display: none; }
.medidor i { display: block; width: 3px; height: 22px; border-radius: 2px; background: var(--brand-text); opacity: .85; transform: scaleY(.18); transform-origin: center; transition: transform 90ms linear; }
.caixa textarea.ao-vivo { color: var(--ink-muted); }

/* ---------- folhas (menus, escolhas e diálogos) ---------- */
.veu { position: fixed; inset: 0; background: var(--overlay); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: flex; align-items: flex-end; justify-content: center; z-index: 30; animation: aparece .2s ease; }
@media (min-width: 760px) { .veu { align-items: center; } }
@keyframes aparece { from { opacity: 0; } }
.folha { width: 100%; max-width: 100%; max-height: 88dvh; overflow-y: auto; background: var(--surface-raised); border-radius: var(--radius-2xl) var(--radius-2xl) 0 0; padding: var(--space-2) var(--space-2) calc(var(--space-5) + env(safe-area-inset-bottom));
  border: 1px solid var(--line-strong); border-bottom: 0; box-shadow: var(--shadow-overlay); animation: dk-sheet-up .45s var(--dk-out) both; }
@media (min-width: 760px) { .folha { width: min(100%, var(--size-sheet)); border-radius: var(--radius-2xl); border-bottom: 1px solid var(--line-strong); padding-bottom: var(--space-4); animation: dk-dialog-in .42s var(--dk-out) both; } }
@keyframes dk-sheet-up { from { transform: translateY(24px); opacity: 0; } }
@keyframes dk-dialog-in { from { transform: translateY(-18px) scale(.965); opacity: 0; } }
.folha h2 { font-size: 17px; line-height: 24px; font-weight: 600; letter-spacing: -0.01em; margin: var(--space-3) var(--space-3) var(--space-2); }
.folha .alca { width: 36px; height: 4px; border-radius: var(--radius-full); background: var(--line-strong); margin: 0 auto 4px; }
@media (min-width: 760px) { .folha .alca { display: none; } }
.folha > .coluna, .folha .coluna { gap: var(--space-3); padding: 0 var(--space-3); }
.opcao { position: relative; display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: 44px; padding: var(--space-2) var(--space-3); border: 0; border-radius: var(--radius-md); background: transparent; color: var(--ink); text-align: left; font-size: 14px; line-height: 20px; transition: background-color .15s ease; }
.opcao:hover { background: var(--surface-hover); }
.opcao[aria-checked="true"] { background: var(--brand-soft); }
.opcao[aria-checked="true"]::after { content: ''; margin-left: auto; width: 10px; height: 6px; border-left: 2px solid var(--brand-text); border-bottom: 2px solid var(--brand-text); transform: rotate(-45deg) translateY(-2px); flex-shrink: 0; }
.opcao small { color: var(--ink-muted); font-size: 12px; line-height: 16px; display: block; }
.opcao > svg { color: var(--ink-muted); flex-shrink: 0; }
.opcao-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.opcao-texto small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opcao-direita { flex-shrink: 0; font-size: 12px; color: var(--ink-muted); max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opcao.perigo > svg { color: var(--danger); }
.separador-folha { height: 1px; background: var(--line); margin: var(--space-1) var(--space-3); }
.opcao:disabled { color: var(--ink-faint); cursor: not-allowed; background: transparent; }
.secao-folha { font-size: 12px; line-height: 16px; color: var(--ink-muted); margin: var(--space-3) var(--space-3) var(--space-1); font-weight: 600; }
.opcao.perigo, .opcao.perigo small { color: var(--danger); }

/* ---------- menu do ⋯: painel de 288px preso ao botão no computador, folha no celular ---------- */
.menu-preso { position: fixed; z-index: 35; width: 288px; max-width: calc(100vw - 24px); padding: 6px; border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: var(--surface-raised);
  box-shadow: var(--shadow-overlay); animation: dk-pop .22s var(--dk-out) both; transform-origin: top right; }
@keyframes dk-pop { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.menu-cabeca { padding: 10px 10px 8px; margin-bottom: 2px; border-bottom: 1px solid var(--line); min-width: 0; }
.menu-titulo { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-sub { margin-top: 2px; font-family: var(--font-mono); font-size: 11.5px; line-height: 16px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-corpo { display: flex; flex-direction: column; }
.menu-grupo { display: flex; flex-direction: column; padding: 4px 0; }
.menu-grupo + .menu-grupo { border-top: 1px solid var(--line); }
.menu-preso .opcao { min-height: 38px; padding: 7px 10px; gap: 10px; border-radius: 10px; }
.menu-preso .opcao-texto { font-size: 13.5px; }
.menu-preso .opcao > svg { width: 17px; height: 17px; }
.menu-preso .opcao.perigo:hover, .menu-folha .opcao.perigo:hover { background: var(--danger-soft); }
.menu-folha .menu-cabeca { padding: var(--space-2) var(--space-3) var(--space-3); margin-bottom: var(--space-1); }
.menu-folha .menu-titulo { font-size: 17px; line-height: 24px; }
.menu-folha .menu-sub { font-size: 12px; }
.menu-folha .menu-grupo + .menu-grupo { margin: 0 var(--space-3); padding-left: 0; padding-right: 0; }
.menu-folha .menu-grupo + .menu-grupo .opcao { margin: 0 calc(-1 * var(--space-3)); width: calc(100% + 2 * var(--space-3)); }

/* ---------- telas de apoio: seções, cartões de raio 20, campos de raio 14, botões redondos ---------- */
.pagina { flex: 1; overflow-y: auto; padding: var(--space-6) var(--space-4) calc(var(--space-6) + env(safe-area-inset-bottom)); }
.pagina .coluna { gap: var(--space-6); max-width: 680px; }
.cartao { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); box-shadow: var(--shadow-card); }
.cartao.roxo { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand-text) 45%, transparent); }
.cartao h2, .cartao h3 { margin: 0; font-size: 17px; line-height: 24px; font-weight: 600; letter-spacing: -0.01em; }
.rotulo { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .01em; color: var(--ink-muted); }
.campo { width: 100%; min-height: var(--size-control-md); border-radius: var(--radius-field); border: 1px solid var(--line-control); background: var(--surface-raised); color: var(--ink); padding: 9px 14px; outline: none; font-size: 14px; line-height: 20px; caret-color: var(--brand-text); transition: border-color .12s ease, box-shadow .12s ease; }
.campo::placeholder { color: var(--ink-muted); }
.campo:focus { border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
select.campo { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a6a6b4' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
textarea.campo { min-height: 110px; resize: vertical; line-height: 22px; }
@media (pointer: coarse) { .campo { min-height: var(--size-control-lg); font-size: 16px; } }
.botao { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--size-control-md); padding: 0 18px; border-radius: var(--radius-full); border: 1px solid transparent; background: var(--brand); color: var(--on-brand);
  font-size: 14px; line-height: 20px; font-weight: 560; white-space: nowrap; text-decoration: none; transition: background-color .12s ease, border-color .12s ease, color .12s ease, transform .4s var(--dk-spring); }
.botao:hover { background: var(--brand-hover); }
.botao:active:not(:disabled) { transform: scale(0.97); }
.botao:disabled { background: var(--surface-hover); color: var(--ink-faint); border-color: transparent; cursor: not-allowed; opacity: 1; }
.botao.secundario { background: var(--surface-raised); border-color: var(--line-strong); color: var(--ink); font-weight: 560; }
.botao.secundario:hover { background: var(--surface-hover); }
.botao.pequeno { min-height: var(--size-control-sm); height: var(--size-control-sm); padding: 0 14px; font-size: 13px; gap: 6px; }
@media (pointer: coarse) { .botao { min-height: var(--size-control-lg); } .botao.pequeno { min-height: 36px; height: 36px; } }
.linha-botoes { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.escolhas { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.escolha { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--size-control-sm); padding: 0 14px; border-radius: var(--radius-full); border: 1px solid var(--line-strong); background: transparent; color: var(--ink-muted); font-size: 14px; line-height: 20px; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .4s var(--dk-spring); }
.escolha:hover { background: var(--surface-hover); color: var(--ink); }
.escolha[aria-pressed="true"] { border-color: var(--brand-text); background: var(--brand-soft); color: var(--ink); font-weight: 560; }
.escolha:active { transform: scale(0.96); }
@media (pointer: coarse) { .escolha { min-height: 40px; } }
.texto-fraco { color: var(--ink-muted); font-size: 13px; line-height: 18px; margin: 0; }
.barra-uso { height: 6px; border-radius: var(--radius-full); background: var(--surface-hover); overflow: hidden; }
.barra-uso > span { display: block; height: 100%; border-radius: inherit; background: var(--brand-text); transform-origin: left center; animation: dk-grow .9s var(--dk-out) both; }
.barra-uso.alto > span { background: var(--warn); } .barra-uso.cheio > span { background: var(--danger); }
@keyframes dk-grow { from { transform: scaleX(0); } }
label.marcar { display: flex; align-items: center; gap: var(--space-3); font-size: 14px; min-height: 40px; }
label.marcar input, .opcao input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--brand); flex-shrink: 0; }

/* arquivos: lista agrupada de raio 20, linhas de 50px */
.lista-arquivos { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.arquivo { position: relative; display: flex; align-items: center; gap: var(--space-3); width: 100%; padding: 0 var(--space-3) 0 var(--space-4); border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; min-height: 50px; }
.arquivo:first-child { border-top: 0; }
.arquivo:hover { background: linear-gradient(90deg, var(--brand-soft), transparent 70%); }
.arquivo svg { width: 20px; height: 20px; color: var(--ink-muted); flex-shrink: 0; }
.arquivo .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; line-height: 20px; }
.arquivo .m { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.trilha { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; font-family: var(--font-mono); font-size: 13px; line-height: 20px; color: var(--ink-faint); }
.trilha button { border: 0; background: none; color: var(--ink-muted); padding: 2px 6px; border-radius: var(--radius-full); font: inherit; }
.trilha button:hover { color: var(--ink); background: var(--surface-hover); }
.trilha button:last-child { color: var(--ink); }

/* ---------- Configurações: seções com navegação (menu ao lado no computador, lista no celular) ---------- */
.so-largo { display: none; }
@media (min-width: 760px) { .so-largo { display: inline; } }
.config { display: flex; flex-direction: column; gap: var(--space-6); max-width: 1040px; margin: 0 auto; }
.config-corpo { min-width: 0; }
.config .config-corpo.coluna { gap: var(--space-4); max-width: 680px; margin: 0; }
.secao-config h2 { margin: 0; font-size: 17px; line-height: 24px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.secao-config p { margin-top: 4px; max-width: 560px; }
.lista-config { display: flex; flex-direction: column; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card); overflow: hidden; }
.lista-config > * + * { border-top: 1px solid var(--line); }
.linha-config { display: flex; align-items: center; gap: var(--space-3); min-height: 56px; padding: var(--space-3) var(--space-4) var(--space-3) var(--space-5); color: var(--ink); text-decoration: none; }
.linha-config:hover { background: linear-gradient(90deg, var(--brand-soft), transparent 70%); }
.linha-config > svg { color: var(--ink-muted); flex-shrink: 0; }
.linha-config-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.linha-config-texto b { font-size: 14px; line-height: 20px; font-weight: 500; }
.linha-config-texto small { font-size: 13px; line-height: 18px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sair-config { margin-top: var(--space-4); width: 100%; }
@media (max-width: 759px) {
  .config[data-aberta="1"] .config-nav { display: none; }
  .config[data-aberta="0"] .config-corpo { display: none; }
  .secao-config h2 { display: none; } /* o topo já diz o nome da seção */
  .secao-config p { margin-top: 0; }
}
@media (min-width: 760px) {
  .config { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: start; gap: var(--space-8); }
  .config-nav { position: sticky; top: 0; }
  .lista-config { border: 0; background: transparent; box-shadow: none; gap: 2px; }
  .lista-config > * + * { border-top: 0; }
  .linha-config { min-height: 44px; padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); }
  .linha-config > svg:last-child { display: none; }
  .linha-config-texto small { display: none; }
  .linha-config[aria-current="true"] { background: var(--brand-soft); }
  .linha-config[aria-current="true"] > svg { color: var(--brand-text); }
  .linha-config[aria-current="true"] b { font-weight: 600; }
}
/* contas de IA: cartão com o selo do motor (CL ou GPT), a situação e a cota */
.conta-ia { gap: var(--space-4); }
.conta-ia-topo { display: flex; align-items: flex-start; gap: var(--space-3); }
.conta-ia-logo { flex: none; width: 36px; height: 36px; border-radius: var(--radius-full); display: inline-flex; align-items: center; justify-content: center; background: var(--surface-hover); color: var(--ink-muted); font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.conta-ia-logo.gpt { background: var(--live-soft); color: var(--live); font-size: 10px; }
.conta-ia-nome { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.conta-ia-nome b { font-size: 15px; line-height: 20px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conta-ia-nome span { font-size: 13px; line-height: 18px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conta-ia-topo .etiqueta { white-space: normal; height: auto; min-height: 22px; padding: 2px 8px; text-align: right; max-width: 45%; }
.cota { display: flex; flex-direction: column; gap: var(--space-2); }
.cota-topo { display: flex; justify-content: space-between; gap: var(--space-3); font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.cota-valor { color: var(--ink); }
.cota.alto .cota-valor { color: var(--warn); }
.cota.cheio .cota-valor { color: var(--danger); }
.linha-maquina { min-height: 64px; padding-top: var(--space-2); padding-bottom: var(--space-2); }
.linha-maquina .n { display: flex; flex-direction: column; gap: 2px; white-space: normal; }
.linha-maquina .n b { font-weight: 500; }
.linha-maquina .sub { font-size: 13px; line-height: 18px; color: var(--ink-muted); }

/* ---------- Aparência (versão 3 do design): Escuro, Claro ou Automático, como o seletor da Zunō ---------- */
.seletor-tema { display: inline-flex; align-self: flex-start; align-items: center; gap: 2px; height: 44px; padding: 4px; border-radius: var(--radius-full); background: var(--surface); border: 1px solid var(--line-strong); max-width: 100%; }
.seletor-tema button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 32px; padding: 0 14px; border: 0; border-radius: var(--radius-full); background: transparent; color: var(--ink-muted);
  font-size: 14px; line-height: 20px; font-weight: 500; white-space: nowrap; transition: height .45s var(--dk-spring), font-size .45s var(--dk-spring), background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.seletor-tema button:hover { color: var(--ink); }
.seletor-tema button[aria-checked="true"] { height: 36px; font-size: 15px; background: var(--brand-soft); color: var(--ink); font-weight: 560; box-shadow: 0 0 0 1px var(--brand-text); }
.seletor-tema button[aria-checked="true"] svg { color: var(--brand-text); animation: dk-gira-entra .5s var(--dk-spring); }
@keyframes dk-gira-entra { from { transform: rotate(-90deg) scale(.8); } }
@media (max-width: 379px) { .seletor-tema button { padding: 0 10px; gap: 5px; } }
/* véu da troca de tema: vai a 85% da cor do fundo novo em 180 ms, troca e volta em 350 ms */
.veu-tema { position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; opacity: 0; transition: opacity .18s cubic-bezier(0.65, 0, 0.35, 1); }
/* prévia: peças de verdade da tela, paradas */
.previa-tema { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: var(--bg); box-shadow: var(--shadow-card); pointer-events: none; }
.previa-tema .item { padding: 8px var(--space-2); }
.previa-tema .turno-usuario { animation: none; font-size: 15px; line-height: 22px; padding: 11px 16px; }
.previa-tema .caixa { padding: 0; }
.previa-tema .caixa::before { display: none; }
.previa-tema .falso-texto { padding: 8px 10px 4px; color: var(--ink-muted); font-size: 15px; line-height: 24px; }
.previa-tema .enviar { width: 40px; height: 40px; }

/* aviso que aparece embaixo e some */
.aviso-flutuante { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 40; max-width: min(92vw, 520px); padding: 12px 18px; border-radius: var(--radius-lg); background: var(--surface-raised); color: var(--ink);
  border: 1px solid var(--line-strong); font-size: 14px; line-height: 20px; box-shadow: var(--shadow-overlay); animation: dk-rise .35s var(--dk-out) both; }
.aviso-flutuante.vermelho { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.aviso-flutuante.laranja { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.aviso-flutuante.verde { border-color: color-mix(in srgb, var(--live) 40%, transparent); }

/* ---------- entrada: ícone, nome grande, frase e o botão do Google, no meio da tela ---------- */
.entrada { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-6); padding: var(--space-6); text-align: center; }
.entrada h1 { font-size: 32px; line-height: 36px; font-weight: 600; margin: 0; letter-spacing: -0.03em; }
.entrada h1 i { font-style: normal; color: var(--kode-teal); }
.entrada p { margin: 0; color: var(--ink-muted); max-width: 320px; font-size: 14px; line-height: 20px; }
.entrada .google { min-height: 44px; }
.botao-google { min-height: 44px; padding: 0 22px 0 14px; border-radius: var(--radius-full); border: 1px solid var(--line-control); background: var(--surface-raised); color: var(--ink); font-weight: 560; font-size: 15px; display: inline-flex; align-items: center; gap: var(--space-3); }
.botao-google:hover { background: var(--surface-hover); }
.botao-google .g { display: inline-flex; }

/* ---------- imagens nos anexos e no balão ---------- */
.anexos-do-balao { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.turno-usuario .anexos-do-balao:first-child { margin-top: 0; }
.anexo-imagem { max-width: min(260px, 100%); max-height: 260px; border-radius: var(--radius-lg); object-fit: cover; cursor: zoom-in; display: block; background: var(--surface-hover); }
.anexo-arquivo { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: var(--radius-full); background: var(--surface-raised); color: var(--ink); font-size: 13px; text-decoration: none; white-space: normal; }
.veu.imagem-grande { align-items: center; background: rgba(0, 0, 4, .9); padding: 16px; }
.veu.imagem-grande img { max-width: 100%; max-height: 100%; border-radius: var(--radius-md); object-fit: contain; }
.fechar-imagem { position: fixed; top: calc(12px + env(safe-area-inset-top)); right: 12px; background: rgba(0, 0, 4, .6); color: #fff; }

/* tela nova pronta (OTA) */
.faixa-tela-nova { position: fixed; left: 50%; transform: translateX(-50%); top: calc(10px + env(safe-area-inset-top)); z-index: 60; border: 1px solid color-mix(in srgb, var(--brand-text) 50%, transparent); background: var(--brand-soft); color: var(--ink);
  border-radius: var(--radius-full); padding: 9px 16px; font-size: 13px; font-weight: 500; box-shadow: var(--shadow-overlay); }

/* arquivos que o Claude cita na resposta: cartões de raio 20 que sobem no hover */
.arquivos-citados { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-3); }
.cartao-arquivo { display: flex; align-items: center; gap: var(--space-3); padding: 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface-raised); max-width: 440px; min-width: 0; box-shadow: var(--shadow-card); transition: transform .4s var(--dk-spring), border-color .2s ease; }
.cartao-arquivo:hover { transform: translateY(-2px); border-color: var(--brand-text); background: var(--surface-raised); }
.cartao-arquivo .selo-ext { flex-shrink: 0; width: 42px; height: 42px; border-radius: var(--radius-md); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 10px; line-height: 12px; font-weight: 600; text-transform: uppercase; background: var(--surface-hover); color: var(--ink-muted); }
.cartao-arquivo .selo-ext.tipo-pdf, .cartao-arquivo .selo-ext.tipo-apresentacao { background: var(--danger-soft); color: var(--danger); }
.cartao-arquivo .selo-ext.tipo-planilha { background: var(--live-soft); color: var(--live); }
.cartao-arquivo .selo-ext.tipo-texto, .cartao-arquivo .selo-ext.tipo-imagem { background: var(--brand-soft); color: var(--brand-text); }
.cartao-arquivo .miniatura { flex-shrink: 0; width: 42px; height: 42px; border-radius: var(--radius-md); object-fit: cover; cursor: zoom-in; background: var(--surface-hover); }
.cartao-arquivo .dados { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0; color: inherit; text-decoration: none; }
.cartao-arquivo .dados b { font-weight: 500; font-size: 14px; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cartao-arquivo .dados span { font-family: var(--font-mono); font-size: 12px; line-height: 18px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cartao-arquivo .icone-btn { flex-shrink: 0; width: 40px; height: 40px; color: var(--ink-muted); }

/* conectores (MCP) */
.contas-conector { display: flex; flex-direction: column; gap: 0; margin-top: var(--space-1); }
.conta-conector { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); min-height: 40px; padding: 6px 0; border-radius: 0; background: transparent; border: 0; border-top: 1px solid var(--line); }
.conta-conector:first-child { border-top: 0; }
.conta-conector .n { flex: 1 1 140px; min-width: 0; font-size: 13px; line-height: 18px; }
.conta-conector .problema { flex-basis: 100%; font-size: 12px; line-height: 16px; overflow-wrap: anywhere; }
.faixa-conector { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); padding: 12px 14px; border-radius: var(--radius-lg); border: 0; background: var(--brand-soft); }
.faixa-conector .texto-fraco { flex: 1 1 200px; }

/* Sem conexão com a central: tira fina colada no topo, que empurra a tela (não cobre título nem botão). */
.faixa-rede { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: calc(env(safe-area-inset-top, 0px) + 26px); padding: env(safe-area-inset-top, 0px) var(--space-4) 0; display: flex; align-items: center; justify-content: center;
  background: var(--warn-soft); color: var(--warn); border-bottom: 1px solid color-mix(in srgb, var(--warn) 25%, transparent); font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
body.sem-rede .casca { margin-top: calc(env(safe-area-inset-top, 0px) + 26px); height: calc(100dvh - env(safe-area-inset-top, 0px) - 26px); }

/* ---------- parado, o app fica parado ---------- */
@media (prefers-reduced-motion: reduce) {
  .ponto.vivo::after, .avatar.rodando::before, .marca-estado.rodando::after, .item .acao-verbo, .menu-preso, .trabalhando, .trabalhando::before, .digitando i, .ponto-gravando, .caixa .dentro::before, .turno-usuario, .ferramenta pre, .folha, .aviso-flutuante, .barra-uso > span,
  .ferramenta > summary .etiqueta.amarelo::before { animation: none !important; }
  .trabalhando { -webkit-text-fill-color: currentColor; background: none; color: var(--ink-muted); }
  .item .acao-verbo { -webkit-text-fill-color: currentColor; background: none; }
  .item::before, .aba::after, .seta, .cartao-arquivo, .enviar, .botao, .escolha, .botao-flutuante, .medidor i, .seletor-tema button { transition: none; }
  .seletor-tema button svg { animation: none !important; }
}

/* ---------------------------------------------------------------- A2: faixa de andamento da conversa (tokens do design system) */
.andamento { margin: var(--space-2) var(--space-4) 0; padding: 10px 12px 10px 14px; border-radius: var(--radius-lg); background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 18px; min-width: 0; }
@media (min-width: 760px) { .andamento { max-width: var(--size-reading); margin-left: auto; margin-right: auto; width: calc(100% - 32px); } }
.andamento-linha { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.andamento-ponto { width: 8px; height: 8px; border-radius: var(--radius-full); flex: none; background: var(--idle); }
.andamento-ponto.rodando { background: var(--live); box-shadow: 0 0 0 3px var(--live-soft); animation: andamento-pulso 1.6s ease-in-out infinite; }
.andamento-ponto.fundo { background: var(--brand-text); box-shadow: 0 0 0 3px var(--brand-soft); }
.andamento-ponto.parada { background: var(--warn); }
.andamento-ponto.fim { background: var(--live); }
@keyframes andamento-pulso { 50% { box-shadow: 0 0 0 5px var(--live-soft); } }
.andamento-fazendo { flex: 1; min-width: 0; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.andamento-botao { flex: none; height: 28px; padding: 0 12px; border-radius: var(--radius-full); border: 0; background: var(--surface-hover); color: var(--ink); font: inherit; font-size: 12px; font-weight: 500; cursor: pointer; }
.andamento-botao:hover { background: var(--line-strong); }
.andamento-botao:disabled { opacity: .6; cursor: default; }
.andamento-barra { height: 6px; border-radius: var(--radius-full); background: var(--surface-hover); overflow: hidden; }
.andamento-barra > i { display: block; height: 100%; border-radius: inherit; background: var(--brand); transition: width .4s var(--dk-out, ease); }
.andamento[data-estado="fim"] .andamento-barra > i { background: var(--live); }
.andamento-meta { display: flex; flex-wrap: wrap; gap: 4px var(--space-2); font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.andamento-meta b { color: var(--ink); font-variant-numeric: tabular-nums; }
.andamento-detalhe > summary { cursor: pointer; font-size: 12px; color: var(--brand-text); list-style: none; width: max-content; }
.andamento-detalhe > summary::-webkit-details-marker { display: none; }
.andamento-feitos { margin: 6px 0 0; padding-left: 20px; color: var(--ink-muted); display: flex; flex-direction: column; gap: 2px; }
.andamento-resumo { margin: 6px 0 0; color: var(--ink); }
.andamento-quando { color: var(--ink-muted); font-size: 12px; }
.selos-topo { display: inline-flex; gap: 4px; flex: none; }
.selos-topo:empty { display: none; }
.selo-vigiada { background: var(--live-soft); color: var(--live); }
.selo-retomadas { background: var(--brand-soft); color: var(--brand-text); }
@media (max-width: 759px) { .selos-topo .selo-retomadas { display: none; } .andamento { margin: var(--space-2) var(--space-3) 0; } }
@media (prefers-reduced-motion: reduce) { .andamento-ponto.rodando { animation: none; } .andamento-barra > i { transition: none; } }
.andamento-fundo { margin-top: 6px; color: var(--ink-muted); font-size: 12px; }
.andamento-fundo b { color: var(--ink); font-weight: 600; }
.andamento-fundo ul { margin: 2px 0 0; padding-left: 18px; }

/* ---------------------------------------------------------------- A2: página de operações */
.operacoes { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-6); min-width: 0; }
.operacoes-hora { font-size: 12px; color: var(--ink-muted); font-variant-numeric: tabular-nums; margin-right: var(--space-1); }
.operacoes-totais { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); }
@media (max-width: 559px) { .operacoes-totais { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.operacoes-total { display: flex; flex-direction: column; gap: 2px; padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.operacoes-total b { font-size: 24px; line-height: 30px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.operacoes-total span { font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.operacoes-total.verde b { color: var(--live); } .operacoes-total.azul b { color: var(--brand-text); } .operacoes-total.laranja b { color: var(--warn); } .operacoes-total.roxo b { color: var(--brand-text); }
.operacoes-secao { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.operacoes-secao > h2 { margin: 0 0 2px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink-muted); letter-spacing: .01em; }
.operacoes-cartoes { display: flex; flex-direction: column; gap: 6px; padding: 4px 0 8px var(--space-3); }
.operacao { display: flex; flex-direction: column; gap: 6px; width: 100%; text-align: left; padding: 10px var(--space-3); border: 0; border-radius: var(--radius-md); background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--line); color: inherit; font: inherit; cursor: pointer; min-width: 0; }
.operacao:hover { background: var(--surface-hover); }
.operacao-linha1 { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.operacao-linha1 .t { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.operacao-linha1 .hora { flex: none; font-size: 12px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.operacao-linha1 .selo { flex: none; }
.operacao-fazendo { font-size: 13px; line-height: 18px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.estado-rodando .operacao-fazendo::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: var(--radius-full); background: var(--live); margin-right: 6px; vertical-align: 1px; }
.operacao-barra { display: flex; flex-direction: column; gap: 4px; }
.operacao-pct { font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.operacao-feitos { font-size: 12px; line-height: 16px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.operacao-feitos b { color: var(--ink); font-weight: 500; }
.operacao-meta { display: flex; gap: 4px; flex-wrap: wrap; }
.operacoes-alerta { margin: 0; padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); background: var(--warn-soft); color: var(--warn); font-size: 13px; }
.operacoes-avisos, .operacoes-coletas, .operacoes-contas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.operacoes-avisos li { padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; line-height: 18px; overflow-wrap: anywhere; }
.operacoes-avisos .hora { display: block; font-size: 12px; color: var(--ink-muted); }
.operacoes-coletas li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--space-2); font-size: 13px; min-width: 0; }
.operacoes-coletas b { font-weight: 600; overflow-wrap: anywhere; }
.operacoes-contas li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(60px, 140px); grid-template-areas: "nome barra" "fraco fraco"; gap: 4px var(--space-3); align-items: center; font-size: 13px; }
.operacoes-contas .nome { grid-area: nome; display: flex; gap: 6px; align-items: center; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.operacoes-contas .andamento-barra { grid-area: barra; }
.operacoes-contas .texto-fraco { grid-area: fraco; font-size: 12px; }
.operacoes-mais > ul { margin-top: 6px; }

/* ---------------------------------------------------------------- A2: retomada automática na linha do tempo */
.marcador-sistema { align-self: center; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 12px; border-radius: var(--radius-full); background: var(--brand-soft); color: var(--brand-text); font-size: 12px; line-height: 16px; font-weight: 500; text-align: center; }
.marcador-sistema svg { flex: none; }
.marcador-sistema span { min-width: 0; overflow-wrap: anywhere; }
.turno-com-marcador { display: flex; flex-direction: column; gap: var(--space-3); }
.turno-com-marcador > .turno-usuario { align-self: flex-end; }
.andamento-retomadas { color: var(--brand-text); }

/* ---------------------------------------------------------------- A2: modo "só respostas" */
.passos > summary b { color: var(--ink); }
.passos-corpo { display: flex; flex-direction: column; gap: 2px; padding: 4px 0 4px var(--space-3); margin-left: 6px; box-shadow: inset 1px 0 0 var(--line-strong); }
.passos > summary .linha { font-family: var(--font-sans); font-size: 13px; }

/* ---------------------------------------------------------------- entregas (onda A4, 02/12/2026) */
.lista-entregas { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.entrega { display: flex; align-items: center; gap: var(--space-1); min-width: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface-raised); box-shadow: var(--shadow-card); }
.entrega:hover { border-color: var(--brand-text); }
.entrega.fora { opacity: .6; }
.entrega-abrir { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: var(--space-3); padding: 10px 0 10px 10px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.entrega .selo-ext, .entrega .miniatura { flex-shrink: 0; width: 42px; height: 42px; border-radius: var(--radius-md); }
.entrega .selo-ext { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 10px; line-height: 12px; font-weight: 600; background: var(--surface-hover); color: var(--ink-muted); }
.entrega .selo-ext.tipo-pdf, .entrega .selo-ext.tipo-apresentacao { background: var(--danger-soft); color: var(--danger); }
.entrega .selo-ext.tipo-planilha { background: var(--live-soft); color: var(--live); }
.entrega .selo-ext.tipo-texto, .entrega .selo-ext.tipo-imagem { background: var(--brand-soft); color: var(--brand-text); }
.entrega .miniatura { object-fit: cover; background: var(--surface-hover); }
.entrega .dados { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.entrega .dados b { font-weight: 500; font-size: 14px; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entrega .dados span { font-size: 12px; line-height: 18px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entrega > .icone-btn { flex-shrink: 0; width: 40px; height: 40px; margin-right: 4px; color: var(--ink-muted); }
.bandeja { display: flex; flex-direction: column; gap: var(--space-3); padding: 0 var(--space-2); min-width: 0; }
.bandeja-titulo { margin: var(--space-2) 0 0; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink-muted); }
.bandeja-sub { margin: 0; }
.entregas .busca { margin: 0; }
.entregas-filtros { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.entregas-filtros::-webkit-scrollbar { display: none; }
.entregas-todas { margin-top: var(--space-3); }
.cartao-arquivo .acoes-arquivo { margin-left: -6px; }
.veu.previa { align-items: center; padding: 12px; }
.previa-caixa { display: flex; flex-direction: column; width: min(100%, 920px); max-height: calc(100dvh - 24px); background: var(--surface-raised); border: 1px solid var(--line-strong); border-radius: var(--radius-2xl); overflow: hidden; box-shadow: var(--shadow-card); }
.previa-topo { display: flex; align-items: center; gap: var(--space-2); padding: 8px 8px 8px var(--space-4); border-bottom: 1px solid var(--line); }
.previa-topo b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 560; font-size: 14px; }
.previa-corpo { flex: 1 1 auto; min-height: 120px; overflow: auto; padding: var(--space-3); display: flex; flex-direction: column; align-items: center; }
.previa-paginas { display: flex; flex-direction: column; gap: var(--space-3); align-items: center; width: 100%; }
.previa-imagem { display: block; max-width: 100%; height: auto; border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-card); }
.previa-rodape { padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.previa-apk { display: flex; flex-direction: column; gap: var(--space-2); width: 100%; max-width: 560px; }
.previa-dado { display: flex; gap: var(--space-3); justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.previa-dado span { color: var(--ink-muted); flex-shrink: 0; }
.previa-dado b { font-weight: 500; text-align: right; min-width: 0; overflow-wrap: anywhere; }
/* A4: o topo da lista ganhou o botão Entregas; sem o espaço entre os botões, o nome Dados.Kode cabe inteiro na coluna do computador. */
.lado > .topo { gap: 0; }
/* A5: busca no conteúdo (embaixo da lista), conversa citada e continuação. */
.busca-conteudo { margin: var(--space-4) 0 0; padding-top: var(--space-3); border-top: 1px solid var(--line); }
.busca-conteudo-topo { display: flex; align-items: center; gap: var(--space-2); padding: 0 var(--space-3) var(--space-2); font-size: 13px; color: var(--ink); min-width: 0; }
.busca-conteudo-topo .texto-fraco { margin-left: auto; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.busca-maquina.nao-respondeu > summary .conta { color: var(--warn); }
.busca-maquina > summary .conta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.achado { display: flex; flex-direction: column; gap: 4px; padding: var(--space-2) var(--space-3) var(--space-2) var(--space-5); min-width: 0; }
.achado-titulo { font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.achado-trecho { display: block; padding: 6px 10px; border-radius: var(--radius-md); background: var(--surface-raised); color: var(--ink); text-decoration: none; font-size: 13px; line-height: 18px; overflow-wrap: anywhere; }
.achado-trecho:hover, .achado-trecho:focus-visible { background: var(--surface-hover); }
.achado-trecho .quem { display: block; font-size: 11px; color: var(--ink-muted); margin-bottom: 2px; }
.achado-trecho mark, mark.achado-termo { background: var(--warn-soft); color: var(--ink); border-radius: 3px; padding: 0 1px; box-shadow: 0 0 0 1px var(--warn); }
.achado-na-conversa { box-shadow: 0 0 0 2px var(--brand-text); border-radius: var(--radius-lg); }
.citadas { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 6px; }
.citada-chip { background: var(--brand-soft); color: var(--brand-text); max-width: 100%; }
.citada-chip small { color: var(--ink-muted); font-size: 11px; white-space: nowrap; }
.citada-chip button { border: 0; background: none; color: inherit; width: 26px; height: 26px; border-radius: var(--radius-full); cursor: pointer; }
.citada-chip.falhou { background: var(--warn-soft); color: var(--warn); }
.citadas-do-balao { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.citada { border-radius: var(--radius-md); background: var(--surface-raised); border: 1px solid var(--line); font-size: 13px; min-width: 0; }
.citada > summary { list-style: none; display: flex; align-items: center; gap: 6px; padding: 6px 10px; cursor: pointer; color: var(--brand-text); min-width: 0; }
.citada > summary::-webkit-details-marker { display: none; }
.citada > summary b { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.citada-tipo { white-space: nowrap; }
.citada-onde { margin-left: auto; color: var(--ink-muted); font-size: 12px; white-space: nowrap; }
.citada-resumo { white-space: pre-wrap; padding: 0 10px 8px; color: var(--ink); line-height: 19px; overflow-wrap: anywhere; }
.citada-abrir { display: inline-block; margin: 0 10px 10px; color: var(--brand-text); }
a.marcador-continuacao { text-decoration: none; color: var(--brand-text); }
.cartao-continuacao { border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--brand-soft); padding: var(--space-3); display: flex; flex-direction: column; gap: 4px; }
.cartao-continuacao .linha { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; min-width: 0; overflow-wrap: anywhere; }
.cartao-continuacao .link-fraco { margin-left: auto; color: var(--brand-text); }
.lista-citar { display: flex; flex-direction: column; margin-top: var(--space-2); max-height: 60vh; overflow: auto; }
.cartao-continuacao .linha > svg { flex: none; }
.cartao-continuacao .linha > span { flex: 1; min-width: 0; }

/* ---------------------------------------------------------------- A6b: pastas da Sessão nova e caixa de demandas */
.rotulo-pequeno { font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-muted); margin-top: var(--space-1); }
.pastas-grupos { display: flex; flex-direction: column; gap: var(--space-2); }
.pastas-grupos .escolha, .pastas-busca .escolha { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.pastas-busca { display: flex; flex-direction: column; gap: var(--space-2); }
.pastas-busca:empty { display: none; }
.pastas-outras > summary { cursor: pointer; color: var(--ink-muted); font-size: 13px; line-height: 20px; padding: var(--space-1) 0; }
.pastas-outras[open] > summary { margin-bottom: var(--space-2); }
.pasta-escolhida { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; min-width: 0; }
.pasta-escolhida .texto-fraco { min-width: 0; overflow-wrap: anywhere; }
.pasta-escolhida b { color: var(--ink); font-weight: 560; }
.linha-botoes > .campo { flex: 1 1 220px; min-width: 0; }
.demanda-campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-3); }
.demanda-campos label { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.demanda-anexos, .demandas-fila { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.demanda-anexos li { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; min-width: 0; overflow-wrap: anywhere; }
.demandas-fila li { overflow-wrap: anywhere; }
.demanda-texto { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 14px; line-height: 20px; color: var(--ink); max-height: 320px; overflow-y: auto; }
.demanda-previa { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.aviso-demandas { display: flex; align-items: center; gap: var(--space-2); width: calc(100% - 16px); margin: 8px; padding: 10px 14px; border-radius: var(--radius-lg); border: 1px solid color-mix(in srgb, var(--brand-text) 45%, transparent); background: var(--brand-soft); color: var(--ink); font-size: 14px; text-align: left; cursor: pointer; }

/* ---------------------------------------------------------------- A6a: segredo, modo autônomo, atalhos e conta na caixa */
.segredos { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 6px; }
.segredo-chip { color: var(--ink); }
.segredo-chip > svg { color: var(--warn); flex: none; }
.chips-do-balao { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.segredo-chip.no-balao, .chip-autonomo { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 26px; padding: 2px 10px; border-radius: var(--radius-full); background: var(--surface-hover); color: var(--ink); font-size: 12px; line-height: 16px; overflow: hidden; }
.segredo-chip.no-balao small { color: var(--ink-muted); font-family: var(--font-mono); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.chip-autonomo { color: var(--brand-text); }
.segredo-chip.no-balao > span { white-space: nowrap; }
.chip-autonomo > svg, .segredo-chip.no-balao > svg { flex: none; }
.aviso-colagem { padding: 2px 2px 6px; }
.aviso-segredo { display: flex; align-items: flex-start; gap: var(--space-2); flex-wrap: wrap; padding: 10px 12px; border-radius: var(--radius-lg); background: var(--warn-soft); color: var(--ink); font-size: 13px; line-height: 19px; }
.aviso-segredo > svg { color: var(--warn); flex: none; margin-top: 1px; }
.aviso-segredo > span:not(.linha-botoes) { flex: 1 1 200px; min-width: 0; }
.aviso-segredo .linha-botoes { align-items: center; gap: var(--space-2); flex-wrap: wrap; margin: 0; }
.form-segredo .rotulo-campo, .form-atalho .rotulo-campo { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-muted); min-width: 0; }
.form-segredo .linha-campo { display: flex; gap: var(--space-2); align-items: center; min-width: 0; }
.form-segredo .linha-campo .campo { flex: 1; min-width: 0; }
.campo.mascarado { -webkit-text-security: disc; font-family: var(--font-mono); letter-spacing: .08em; }
.texto-erro { color: var(--danger); font-size: 13px; line-height: 19px; margin: 0; overflow-wrap: anywhere; }
.texto-erro .link-fraco { border: 0; background: none; padding: 0; color: var(--brand-text); text-decoration: underline; cursor: pointer; font: inherit; }
.chave-autonomo { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 0; border-radius: var(--radius-full); background: transparent; color: var(--ink-muted); font-size: 13px; font-weight: 500; cursor: pointer; }
.chave-autonomo:hover { background: var(--surface-hover); }
.chave-autonomo[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand-text); }
.caixa.ditando .barra > .chave-autonomo { display: none; }
@media (max-width: 520px) { .chave-autonomo-texto { display: none; } .chave-autonomo { padding: 0 8px; } }
.linha-conta { display: block; width: 100%; min-width: 0; margin: 2px 0 0; padding: 2px 10px; border: 0; background: none; text-align: left; color: var(--ink-faint); font-size: 11.5px; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; font-variant-numeric: tabular-nums; }
.linha-conta:hover { color: var(--ink-muted); }
.linha-conta[data-nivel="alto"] { color: var(--warn); }
.linha-conta[data-nivel="cheio"], .linha-conta[data-nivel="limite"] { color: var(--danger); }
.caixa-atalhos { padding: 0 0 6px; }
.lista-atalhos { display: flex; flex-direction: column; max-height: 40vh; overflow-y: auto; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line-strong); }
.atalho { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding: 8px 12px; cursor: pointer; min-width: 0; }
.atalho.ativo, .atalho:hover { background: var(--surface-hover); }
.atalho-titulo { font-size: 14px; font-weight: 560; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atalho-escopo { font-size: 11px; color: var(--ink-muted); align-self: center; white-space: nowrap; }
.atalho-texto { grid-column: 1 / -1; font-size: 12px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atalhos-vazio { padding: 8px 12px; font-size: 13px; color: var(--ink-muted); }
.agendadas { max-width: var(--size-reading); margin: 0 auto 6px; display: flex; flex-direction: column; gap: 6px; }
.agendada { display: flex; align-items: center; gap: var(--space-2); padding: 8px 10px; border-radius: var(--radius-lg); background: var(--warn-soft); font-size: 13px; line-height: 18px; color: var(--ink); min-width: 0; }
.agendada > svg { color: var(--warn); flex: none; }
.agendada-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.agendada-texto small { color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bloco-atalhos .linha-atalho .n { min-width: 0; }
.bloco-atalhos .linha-atalho .sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.form-atalho textarea.campo { min-height: 110px; resize: vertical; }

/* Agendadas na página de operações (02/12/2026): a conversa, quando sai, quem agendou e o cancelar. */
.operacoes-secao > h2 .conta { margin-left: 6px; font-weight: 500; font-variant-numeric: tabular-nums; }
.operacoes-agendadas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.operacao-agendada { display: flex; align-items: center; gap: var(--space-2); padding: 8px var(--space-3); border-radius: var(--radius-md); background: var(--warn-soft); min-width: 0; }
.operacao-agendada > svg { color: var(--warn); flex: none; }
.operacao-agendada-corpo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: left; border: 0; background: none; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.operacao-agendada-corpo .t { font-weight: 600; font-size: 14px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.operacao-agendada-quando { font-size: 13px; line-height: 18px; overflow-wrap: anywhere; }
.operacao-agendada-quando b { font-weight: 600; }
.operacao-agendada-corpo small { font-size: 12px; line-height: 16px; color: var(--ink-muted); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.operacao-agendada .botao { flex: none; }
/* A6c: busca e páginas na fila de demandas */
.demandas-abas { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.demandas-paginas { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap; }
.demanda-tratada { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); padding: var(--space-2) 0; border-bottom: 1px solid var(--line); }
/* A6c: data e hora em português (dois campos de texto) */
.demanda-campos .demanda-campo { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; grid-column: 1 / -1; }
.demanda-quando-campos { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--space-2); max-width: 340px; }
.demanda-quando .campo[aria-invalid="true"] { border-color: var(--danger, #d14343); }
.demanda-quando-erro:empty { display: none; }

/* Linha da conta vazia (as contas ainda não chegaram): não ocupa espaço. */
.linha-conta:empty { display: none; }
/* A6c: pedidos do robô do WhatsApp na caixa de demandas */
.demanda-whatsapp { flex-direction: column; align-items: stretch; }
.demanda-origem { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-muted); }
.demanda-situacao { display: inline-block; font-size: 12px; line-height: 18px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line); margin-inline-start: 4px; white-space: nowrap; }
.demanda-situacao-esperando, .demanda-situacao-segurado { border-color: var(--warn); color: var(--warn); }
.demanda-situacao-producao, .demanda-situacao-abrindo { border-color: var(--live); color: var(--live); }
.demanda-situacao-recusado, .demanda-situacao-erro, .demanda-situacao-parado { border-color: var(--danger); color: var(--danger); }
.demanda-situacao-alerta { border-color: var(--danger); color: var(--danger); white-space: normal; }
.demanda-alerta { margin: 0 0 8px; padding: 8px 10px; border: 1px solid var(--danger); border-radius: 8px; color: var(--danger); }
.demanda-whatsapp-detalhe { display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-2); }
