/* Cluse — PWA de recados. Celular primeiro, tema claro e escuro. */

:root {
  --fundo: #f6f3ee;
  --superficie: #ffffff;
  --texto: #1f1d1a;
  --suave: #6f6a62;
  --borda: #e4ded4;
  --bryan: #1f1d1a;
  --bryan-texto: #f6f3ee;
  --claude: #d97757;
  --muse: #8b74d9;
  --erro: #b3261e;
  --raio: 18px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fundo: #1b1a18;
    --superficie: #262522;
    --texto: #eeeae3;
    --suave: #a39d93;
    --borda: #37352f;
    --bryan: #eeeae3;
    --bryan-texto: #1b1a18;
    --muse: #b9a7f0;
    --erro: #f2b8b5;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--fundo);
  color: var(--texto);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

[hidden] { display: none !important; }

button { font: inherit; cursor: pointer; }

/* ---------- Entrada ---------- */

.entrada {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 360px;
  margin: 0 auto;
  padding: 32px 24px calc(32px + env(safe-area-inset-bottom));
}

.entrada-icone { border-radius: 18px; }
.entrada h1 { margin: 20px 0 4px; font-size: 32px; letter-spacing: -0.02em; }
.entrada > p { margin: 0 0 28px; color: var(--suave); }

.entrada-form { display: grid; gap: 10px; }
.entrada-form label { font-size: 14px; color: var(--suave); }

.entrada-form input {
  font: inherit;
  padding: 14px 16px;
  border: 1px solid var(--borda);
  border-radius: 12px;
  background: var(--superficie);
  color: var(--texto);
}

.entrada-form button {
  padding: 14px;
  border: 0;
  border-radius: 12px;
  background: var(--bryan);
  color: var(--bryan-texto);
  font-weight: 600;
}

.erro { margin: 0; min-height: 1.2em; color: var(--erro); font-size: 14px; }

/* ---------- Conversa ---------- */

.app {
  height: 100dvh;
}

.topo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  border-bottom: 1px solid var(--borda);
  background: var(--fundo);
}

.topo-titulo { flex: 1; min-width: 0; display: grid; }
.topo h1 { margin: 0; font-size: 18px; letter-spacing: -0.01em; }
.estado { font-size: 12px; color: var(--suave); }
.estado:empty { display: none; }

.botao-icone {
  flex: none;
  width: 40px;
  height: 40px;
  margin-left: -8px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--texto);
  display: grid;
  place-items: center;
}

.botao-icone:active { background: var(--borda); }

/* ---------- Menu lateral ---------- */

.fundo-menu {
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 0.35);
  z-index: 10;
}

.menu {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(300px, 84vw);
  z-index: 11;
  display: flex;
  flex-direction: column;
  padding: calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
  background: var(--fundo);
  border-right: 1px solid var(--borda);
  overflow-y: auto;
  animation: entrar-menu 0.2s ease-out;
}

@keyframes entrar-menu {
  from { transform: translateX(-100%); }
  to { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .menu { animation: none; }
}

.menu-cabeca { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.menu-cabeca img { border-radius: 9px; }
.menu-cabeca strong { font-size: 20px; }

.menu-secao {
  margin: 20px 0 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--suave);
}

.conversas { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }

.conversas button {
  width: 100%;
  display: grid;
  grid-template-columns: 12px 1fr;
  column-gap: 10px;
  align-items: center;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--texto);
  text-align: left;
}

.conversas button[aria-current="true"] { background: var(--superficie); box-shadow: inset 0 0 0 1px var(--borda); }

.ponto { width: 10px; height: 10px; border-radius: 50%; grid-row: span 2; }
.ponto-todas { background: var(--suave); }
.ponto-muse { background: var(--muse); }
.ponto-claude { background: var(--claude); }

.conversa-nome { font-weight: 600; }

.conversa-previa {
  font-size: 13px;
  color: var(--suave);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.campo-busca {
  font: inherit;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--borda);
  border-radius: 12px;
  background: var(--superficie);
  color: var(--texto);
}

.menu-rodape { margin-top: auto; padding-top: 24px; display: grid; gap: 4px; }

.menu-acao {
  padding: 12px 10px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--texto);
  text-align: left;
}

.menu-acao:active, .conversas button:active { background: var(--borda); }
.menu-sair { color: var(--erro); }
.menu-info { margin: 0 10px 8px; font-size: 12px; color: var(--suave); }

/* ---------- Aviso rápido ("Copiado") ---------- */

.aviso {
  position: fixed;
  left: 50%;
  bottom: calc(150px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 12;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bryan);
  color: var(--bryan-texto);
  font-size: 14px;
}

.recado-texto { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.recado-texto:focus-visible { outline: 2px solid var(--texto); outline-offset: 2px; }

.marca-busca { background: color-mix(in srgb, var(--claude) 35%, transparent); color: inherit; border-radius: 3px; }

.lista {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vazio { margin: auto; color: var(--suave); text-align: center; }

.dia {
  align-self: center;
  margin: 8px 0 2px;
  font-size: 12px;
  color: var(--suave);
}

.recado {
  max-width: 85%;
  align-self: flex-start;
  display: grid;
  gap: 3px;
}

.recado-cabeca {
  font-size: 12px;
  color: var(--suave);
  padding: 0 6px;
}

.recado-cabeca strong { font-weight: 600; }
.recado.de-claude .recado-cabeca strong { color: var(--claude); }
.recado.de-muse .recado-cabeca strong { color: var(--muse); }

.recado-texto {
  margin: 0;
  padding: 10px 14px;
  border-radius: var(--raio);
  border-bottom-left-radius: 6px;
  background: var(--superficie);
  border: 1px solid var(--borda);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.recado.de-claude .recado-texto {
  background: color-mix(in srgb, var(--claude) 9%, var(--superficie));
  border-color: color-mix(in srgb, var(--claude) 28%, var(--borda));
}

.recado.de-muse .recado-texto {
  background: color-mix(in srgb, var(--muse) 9%, var(--superficie));
  border-color: color-mix(in srgb, var(--muse) 28%, var(--borda));
}

.selo-novo {
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--bryan);
  color: var(--bryan-texto);
  font-size: 11px;
  font-weight: 600;
}

.recado.meu { align-self: flex-end; }
.recado.meu .recado-cabeca { text-align: right; }

.recado.meu .recado-texto {
  background: var(--bryan);
  color: var(--bryan-texto);
  border-color: transparent;
  border-radius: var(--raio);
  border-bottom-right-radius: 6px;
}


/* ---------- Compor ---------- */

.compor {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--borda);
  background: var(--fundo);
}

.destinos { display: flex; gap: 6px; }

.destinos label { position: relative; }

.destinos input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.destinos span {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--borda);
  border-radius: 999px;
  font-size: 14px;
  color: var(--suave);
}

.destinos input:checked + span {
  background: var(--bryan);
  color: var(--bryan-texto);
  border-color: transparent;
}

.destinos input:focus-visible + span { outline: 2px solid var(--muse); outline-offset: 2px; }

.linha-envio { display: flex; gap: 8px; align-items: flex-end; }

.linha-envio textarea {
  flex: 1;
  font: inherit;
  resize: none;
  max-height: 160px;
  padding: 11px 16px;
  border: 1px solid var(--borda);
  border-radius: 22px;
  background: var(--superficie);
  color: var(--texto);
}

#botao-enviar {
  flex: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--bryan);
  color: var(--bryan-texto);
  display: grid;
  place-items: center;
}

#botao-enviar:disabled { opacity: 0.4; }

/* ---------- Texto formatado e mensagens agrupadas ---------- */

.recado-texto > * { margin: 0; }
.recado-texto > * + * { margin-top: 8px; }
.recado-texto h4 { font-size: 1em; font-weight: 700; }
.recado-texto ul,
.recado-texto ol { padding-left: 1.3em; }
.recado-texto li + li { margin-top: 3px; }
.recado-texto code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  padding: 1px 5px;
  border-radius: 5px;
  background: color-mix(in srgb, currentColor 10%, transparent);
}

/* Mensagem seguida da mesma pessoa: encosta na anterior, sem repetir o nome. */
.recado.seguido { margin-top: -6px; }

/* Presença no menu: "ativo agora" ganha um ponto verde. */
.presenca { font-size: 12px; font-weight: 400; color: var(--suave); }
.presenca.ativa::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-radius: 50%;
  background: #2e9d5b;
  vertical-align: 1px;
}

/* @menções no texto: destacadas para quem lê saber quem foi chamado. */
.mencao {
  padding: 0 3px;
  border-radius: 4px;
  font-weight: 600;
  background: color-mix(in srgb, currentColor 12%, transparent);
}

/* Reações com emoji embaixo da mensagem. */
.reacoes { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; padding: 0 4px; }
.recado.meu .reacoes { justify-content: flex-end; }
.reacao {
  min-height: 32px;
  min-width: 40px;
  padding: 2px 8px;
  border: 1px solid var(--borda);
  border-radius: 999px;
  background: var(--superficie);
  color: var(--texto);
  font-size: 14px;
  line-height: 1;
}
.reacao[aria-pressed="true"] { border-color: var(--texto); font-weight: 600; }
/* O "+" fica discreto: sem borda e apagado, para não poluir a conversa. */
.reacao-mais { border-color: transparent; background: none; color: var(--suave); opacity: 0.45; font-size: 13px; }
.reacao-mais:hover, .reacao-mais:focus-visible, .reacao-mais[aria-expanded="true"] { opacity: 1; }
.reacoes { margin-top: 0; }
.reacoes-escolher { display: flex; flex-wrap: wrap; gap: 4px; flex-basis: 100%; }
.recado.meu .reacoes-escolher { justify-content: flex-end; }

/* Botão "Resumir" no topo e o texto do resumo. */
.botao-resumo {
  flex: none;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--borda);
  border-radius: 999px;
  background: none;
  color: var(--texto);
  font-size: 14px;
}
.texto-resumo:empty { display: none; }

/* Responder a uma mensagem: trecho da original na resposta e barra acima do campo. */
.citacao {
  display: block;
  max-width: 100%;
  margin: 0 0 4px;
  padding: 4px 10px;
  border: 1px solid color-mix(in srgb, var(--cor-ia, var(--suave)) 35%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--cor-ia, var(--texto)) 7%, transparent);
  color: var(--suave);
  font: inherit;
  font-size: 14px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.citacao strong { color: var(--texto); font-weight: 600; }
.citacao:disabled { cursor: default; font-style: italic; }
.recado.meu .citacao { margin-left: auto; }
.recado.destacado .recado-texto { outline: 2px solid var(--claude); outline-offset: 2px; }
.botao-responder { font-size: 15px; }

.respondendo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 12px;
  border: 1px solid var(--borda);
  border-radius: 12px;
  background: var(--superficie);
}
.respondendo[hidden] { display: none; }
.respondendo p { flex: 1; min-width: 0; margin: 0; font-size: 14px; display: grid; }
.respondendo-trecho { color: var(--suave); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.respondendo button {
  flex: none;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: none;
  color: var(--suave);
  font-size: 22px;
  line-height: 1;
}

/* Resumo: escolher quem resume e quanto ler. */
.opcoes-resumo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opcoes-resumo button { grid-column: 1 / -1; }
.acoes-resumo { display: flex; gap: 8px; justify-content: flex-end; }

/* Conversa entre IAs: escolha das IAs e botão Parar na barra. */
.escolha-ias { margin: 0; padding: 0; border: 0; }
.escolha-ias legend { padding: 0; margin-bottom: 6px; }
.lista-ias { display: flex; flex-wrap: wrap; gap: 8px; }
.opcao-ia {
  display: flex !important;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--borda);
  border-radius: 999px;
  background: var(--superficie);
  color: var(--texto) !important;
}
.opcao-ia input { width: auto !important; margin: 0; }
.opcao-ia:has(input:checked) { border-color: var(--texto); }
.respondendo .botao-parar {
  width: auto;
  font-size: 14px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--borda);
  border-radius: 999px;
  background: none;
  color: var(--texto);
  font-weight: 600;
}

/* Passkey: botão na entrada e lista no menu. */
.botao-passkey {
  width: 100%;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--borda);
  border-radius: 12px;
  background: var(--superficie);
  color: var(--texto);
  font: inherit;
  font-weight: 600;
}
.botao-passkey[hidden] { display: none; }
.lista-passkeys { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lista-passkeys li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--borda);
  border-radius: 12px;
  background: var(--superficie);
}
.lista-passkeys li div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.lista-passkeys small { color: var(--suave); font-size: 13px; }

/* ---------- Imagem e vídeo ---------- */

.botao-anexar {
  flex: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--borda);
  border-radius: 50%;
  background: var(--superficie);
  color: var(--suave);
  display: grid;
  place-items: center;
}

.previa-anexo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  margin-bottom: 8px;
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  background: var(--superficie);
}

.previa-anexo-midia img,
.previa-anexo-midia video {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
}

.previa-anexo-texto { flex: 1; min-width: 0; display: grid; gap: 6px; font-size: 13px; }
.previa-anexo-texto span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.previa-anexo-texto progress { width: 100%; height: 6px; }

#remover-anexo {
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: inherit;
  font-size: 22px;
}

.recado-anexo img,
.recado-anexo video {
  display: block;
  max-width: 100%;
  max-height: 320px;
  border-radius: var(--raio);
  border: 1px solid var(--borda);
  background: var(--superficie);
}

.recado-anexo video { width: 100%; }

.anexo-imagem { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; }

.dialogo-imagem {
  max-width: 100vw;
  max-height: 100dvh;
  width: 100vw;
  height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(0 0 0 / 0.92);
  display: none;
  place-items: center;
}

.dialogo-imagem[open] { display: grid; }
.dialogo-imagem img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ---------- Skills das IAs ---------- */

.lista-skills { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.item-skill {
  width: 100%;
  display: grid;
  gap: 2px;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--borda);
  border-radius: 14px;
  background: var(--superficie);
  color: var(--texto);
  font: inherit;
}

.item-skill small { color: var(--suave); }
.item-skill span { font-size: 14px; color: var(--suave); }
.skill-aberta { display: grid; gap: 8px; }
.skill-aberta[hidden] { display: none; }
.skill-aberta h3 { margin: 0; }

/* ---------- Ações da mensagem ----------
   Responder, reagir e copiar ficam escondidos para a conversa respirar (inspirado nos
   apps de chat das referências do Muse). Aparecem ao tocar na mensagem, ao focar com o
   teclado ou, no computador, ao passar o mouse. Reações que já existem ficam sempre. */
.recado .reacao-mais,
.recado .reacoes.sem-reacoes { display: none; }

.recado.aberto .reacao-mais,
.recado:has(:focus-visible) .reacao-mais { display: inline-flex; align-items: center; justify-content: center; }
.recado.aberto .reacoes.sem-reacoes,
.recado:has(:focus-visible) .reacoes.sem-reacoes { display: flex; }

@media (hover: hover) {
  .recado:hover .reacao-mais { display: inline-flex; align-items: center; justify-content: center; }
  .recado:hover .reacoes.sem-reacoes { display: flex; }
}

/* Aberta: os botões ficam visíveis de verdade (no toque não há "hover" para revelar). */
.recado.aberto .reacao-mais { opacity: 1; border-color: var(--borda); background: var(--superficie); }
.recado.aberto .recado-texto { box-shadow: 0 0 0 2px color-mix(in srgb, var(--texto) 18%, transparent); }
.botao-copiar { font-size: 13px; }

/* ---------- Mensagens fixadas ---------- */
.barra-fixadas { border-bottom: 1px solid var(--borda); background: var(--superficie); }
.barra-fixadas[hidden] { display: none; }
.fixadas-resumo {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 0;
  background: none;
  color: var(--texto);
  font: inherit;
  font-size: 14px;
  text-align: left;
}
.fixadas-texto { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fixadas-conta { color: var(--suave); font-size: 13px; white-space: nowrap; }
.fixadas-lista { list-style: none; margin: 0; padding: 0 8px 8px; display: grid; gap: 4px; max-height: 40vh; overflow-y: auto; }
.fixadas-lista[hidden] { display: none; }
.fixada-item {
  width: 100%;
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid var(--borda);
  border-radius: 12px;
  background: var(--fundo, transparent);
  color: var(--texto);
  font: inherit;
  font-size: 14px;
  text-align: left;
}
.fixada-item span { color: var(--suave); }

/* ---------- Aviso "mensagens novas · Resumir" ---------- */
.aviso-resumo { display: flex; align-items: center; gap: 4px; margin: 8px 12px 0; padding: 4px 4px 4px 12px; border: 1px solid var(--borda); border-radius: 999px; background: var(--superficie); }
.aviso-resumo[hidden] { display: none; }
.aviso-resumo-abrir { flex: 1; min-height: 40px; display: flex; align-items: center; gap: 8px; border: 0; background: none; color: var(--texto); font: inherit; font-size: 14px; text-align: left; }
.aviso-resumo-abrir strong { margin-left: auto; }
.aviso-resumo-fechar { min-width: 40px; min-height: 40px; border: 0; border-radius: 999px; background: none; color: var(--suave); font-size: 20px; line-height: 1; }

/* ---------- Prévia de link ---------- */
.previa {
  display: grid;
  gap: 2px;
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--borda);
  border-radius: 12px;
  background: var(--superficie);
  color: var(--texto);
  text-decoration: none;
}
.previa[hidden] { display: none; }
.previa-site { font-size: 12px; color: var(--suave); }
.previa-titulo { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.previa-descricao {
  font-size: 13px;
  color: var(--suave);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Conversa e navegação lateral */

.app {
  --largura-conversa: 880px;
  --foco: color-mix(in srgb, var(--muse) 72%, var(--texto));
  display: grid;
  grid-template-rows: minmax(0, 1fr);
}

.conversa-painel {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, color-mix(in srgb, var(--muse) 5%, var(--fundo)), var(--fundo) 55%);
}

.app :focus-visible {
  outline: 2px solid var(--foco);
  outline-offset: 2px;
}

.topo {
  gap: 12px;
  background: var(--superficie);
}

.topo h1,
.conversa-nome {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu { width: min(330px, 90vw); background: var(--superficie); }
.menu-cabeca { margin-bottom: 18px; }
.menu-cabeca strong { flex: 1; }
#fechar-menu { width: 44px; height: 44px; font-size: 24px; }

.conversas button { min-height: 56px; }
.conversas button[aria-current="true"] {
  background: color-mix(in srgb, var(--muse) 12%, var(--superficie));
  box-shadow: none;
}

.lista,
.compor {
  padding-inline: max(16px, calc((100% - var(--largura-conversa)) / 2));
}

.lista { gap: 14px; padding-block-start: 20px; }
.dia {
  padding: 3px 12px;
  border: 1px solid var(--borda);
  border-radius: 999px;
  background: var(--superficie);
}
.recado { max-width: min(90%, 68ch); }
.recado-texto { line-height: 1.55; }

.compor {
  background: var(--superficie);
  padding-block-start: 12px;
}
.linha-envio {
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--borda);
  border-radius: 18px;
  background: var(--fundo);
}
.linha-envio:focus-within { border-color: var(--foco); }
.linha-envio textarea {
  min-width: 0;
  min-height: 44px;
  padding-inline: 6px;
  border: 0;
  border-radius: 10px;
  background: transparent;
}
.linha-envio textarea:focus-visible { outline-offset: -2px; }
#botao-enviar { width: 44px; height: 44px; border-radius: 13px; }

@media (hover: hover) {
  .menu-acao:hover,
  .conversas button:not([aria-current="true"]):hover,
  .botao-icone:hover { background: var(--fundo); }
}

@media (min-width: 900px) {
  .app { grid-template-columns: clamp(255px, 24vw, 310px) minmax(0, 1fr); }
  .menu {
    position: relative;
    inset: auto;
    z-index: auto;
    width: auto;
    min-height: 0;
    animation: none;
  }
  #botao-menu, #fechar-menu { display: none; }
  .topo { min-height: 74px; padding-inline: 24px; }
}
