/* ============================================================
   SaferSoftware · Fábrica de Software — estilos
   Tema claro, limpo e profissional.
   ============================================================ */

:root {
  --fundo: #eef1f6;
  --superficie: #ffffff;
  --superficie-2: #f7f9fc;
  --borda: #e3e8f0;
  --borda-forte: #cfd7e5;
  --texto: #17203a;
  --texto-suave: #5b6785;
  --texto-fraco: #8b96b3;

  --primario: #2f6bff;
  --primario-escuro: #1f54d6;
  --primario-tinta: #e8efff;

  --sucesso: #0fa968;
  --sucesso-tinta: #e3f7ee;
  --atencao: #e08c00;
  --atencao-tinta: #fdf3e0;
  --perigo: #e5484d;
  --perigo-tinta: #fdecec;
  --roxo: #7c5cff;
  --roxo-tinta: #efeaff;

  --sombra-1: 0 1px 2px rgba(23, 32, 58, 0.06), 0 1px 6px rgba(23, 32, 58, 0.05);
  --sombra-2: 0 8px 24px rgba(23, 32, 58, 0.14);
  --raio: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--fundo);
  color: var(--texto);
  min-height: 100vh;
  font-size: 14px;
}

/* ------------------------------- topo ------------------------------- */

.topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 24px;
  background: var(--superficie);
  border-bottom: 1px solid var(--borda);
  position: sticky;
  top: 0;
  z-index: 10;
}

.marca { display: flex; align-items: center; gap: 12px; }
.logo { flex-shrink: 0; border-radius: 11px; box-shadow: var(--sombra-1); }
.marca h1 { font-size: 19px; font-weight: 700; letter-spacing: -0.3px; }
.marca-safer { color: var(--primario); }
.marca p { font-size: 12px; color: var(--texto-fraco); margin-top: -2px; }

.topo-acoes { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

.usuario-logado {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px 5px 6px;
  border: 1px solid var(--borda);
  border-radius: 999px;
  background: var(--superficie-2);
}
.usuario-logado .avatar { width: 26px; height: 26px; font-size: 11px; }
.nome-logado { font-size: 13px; font-weight: 600; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------- tela de login ---------------------------- */

.tela-login {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--fundo);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cartao-login {
  background: var(--superficie);
  border: 1px solid var(--borda);
  border-radius: 18px;
  box-shadow: var(--sombra-2);
  padding: 36px 32px;
  width: min(400px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.cartao-login h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; }

.perfis-login {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 6px;
}

.perfil-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--borda-forte);
  border-radius: 12px;
  background: var(--superficie);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--texto);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.06s ease;
}
.perfil-btn:hover { border-color: var(--primario); background: var(--primario-tinta); }
.perfil-btn:active { transform: scale(0.98); }
.perfil-btn .avatar { width: 32px; height: 32px; font-size: 12px; }

.form-login { display: flex; flex-direction: column; gap: 12px; width: 100%; margin-top: 4px; }
.perfil-escolhido {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
}
.perfil-escolhido .avatar { width: 34px; height: 34px; font-size: 13px; }
.form-login input[type="password"] { text-align: center; font-size: 15px; }
.acoes-login { display: flex; gap: 10px; }
.acoes-login .btn { flex: 1; padding: 10px; }

/* ------------------------------ botões ------------------------------ */

.btn {
  border: 1px solid var(--borda-forte);
  background: var(--superficie);
  color: var(--texto);
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.06s ease;
}
.btn:hover { background: var(--superficie-2); border-color: #b9c3d6; }
.btn:active { transform: scale(0.97); }

.btn-primario {
  background: var(--primario);
  border-color: var(--primario);
  color: #fff;
  box-shadow: 0 2px 8px rgba(47, 107, 255, 0.3);
}
.btn-primario:hover { background: var(--primario-escuro); border-color: var(--primario-escuro); }

.btn-sucesso { background: var(--sucesso); border-color: var(--sucesso); color: #fff; }
.btn-sucesso:hover { background: #0c8f58; border-color: #0c8f58; }
.btn-atencao { background: var(--superficie); border-color: var(--atencao); color: var(--atencao); }
.btn-atencao:hover { background: var(--atencao-tinta); }
.btn-perigo { background: var(--superficie); border-color: var(--perigo); color: var(--perigo); }
.btn-perigo:hover { background: var(--perigo-tinta); }
.btn-mini { padding: 5px 10px; font-size: 12px; border-radius: 7px; }

/* ------------------------------ filtros ------------------------------ */

.filtros {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 24px 2px;
}

.chips { display: flex; gap: 8px; flex-wrap: wrap; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--borda-forte);
  background: var(--superficie);
  color: var(--texto-suave);
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--primario); color: var(--texto); }
.chip.ativo { background: var(--primario-tinta); color: var(--primario); border-color: var(--primario); }
.chip .ponto { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

.resumo { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--texto-fraco); }
.resumo strong { color: var(--texto-suave); }

/* ------------------------------ quadro ------------------------------ */

.quadro {
  display: grid;
  grid-template-columns: repeat(4, minmax(265px, 1fr));
  gap: 16px;
  padding: 16px 24px 32px;
  align-items: start;
}

@media (max-width: 1150px) { .quadro { grid-template-columns: repeat(2, minmax(265px, 1fr)); } }
@media (max-width: 660px)  { .quadro { grid-template-columns: 1fr; } }

.coluna {
  background: var(--superficie);
  border: 1px solid var(--borda);
  border-top: 3px solid var(--cor-coluna, var(--borda-forte));
  border-radius: var(--raio);
  box-shadow: var(--sombra-1);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 185px);
  overflow: hidden;
}

.coluna-cabecalho {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 15px 11px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--texto);
}
.coluna-cabecalho .ponto-coluna {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--cor-coluna, var(--borda-forte));
}
.coluna-cabecalho .contagem {
  margin-left: auto;
  background: var(--superficie-2);
  border: 1px solid var(--borda);
  color: var(--texto-fraco);
  font-size: 11.5px;
  padding: 1px 9px;
  border-radius: 999px;
}

.coluna-corpo {
  padding: 4px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow-y: auto;
  min-height: 140px;
  flex: 1;
  background: var(--superficie-2);
  border-top: 1px solid var(--borda);
  transition: background 0.15s ease, box-shadow 0.15s ease;
  padding-top: 12px;
}
.coluna-corpo.arrastando-sobre {
  background: var(--primario-tinta);
  box-shadow: inset 0 0 0 2px var(--primario);
}

.coluna-vazia {
  color: var(--texto-fraco);
  font-size: 12.5px;
  text-align: center;
  padding: 24px 8px;
  border: 1.5px dashed var(--borda-forte);
  border-radius: 10px;
}

/* ------------------------------ cartões ------------------------------ */

.cartao {
  background: var(--superficie);
  border: 1px solid var(--borda);
  border-radius: 10px;
  padding: 11px 13px;
  cursor: grab;
  box-shadow: var(--sombra-1);
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.cartao:hover { box-shadow: var(--sombra-2); transform: translateY(-1px); border-color: var(--borda-forte); }
.cartao.arrastando { opacity: 0.35; border-style: dashed; }

.cartao.ghost {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.95;
  transform: rotate(2.5deg) scale(1.03);
  box-shadow: var(--sombra-2);
  cursor: grabbing;
  margin: 0;
}

.cartao-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.tag-projeto {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 165px;
}

.tag-prioridade {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.prio-alta  { background: var(--perigo-tinta);  color: var(--perigo); }
.prio-media { background: var(--atencao-tinta); color: var(--atencao); }
.prio-baixa { background: var(--sucesso-tinta); color: var(--sucesso); }

.cartao-titulo { font-size: 13.5px; font-weight: 600; line-height: 1.4; margin-bottom: 9px; color: var(--texto); }

.cartao-rodape {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--texto-suave);
}
.pessoa { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }

.avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.selos { display: inline-flex; gap: 5px; flex-wrap: wrap; }
.selo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.selo-tempo      { background: var(--primario-tinta); color: var(--primario); }
.selo-validada   { background: var(--sucesso-tinta);  color: var(--sucesso); }
.selo-devolvida  { background: var(--atencao-tinta);  color: var(--atencao); }
.selo-aguardando { background: var(--roxo-tinta);     color: var(--roxo); }

/* ------------------------------ modais ------------------------------ */

dialog {
  border: none;
  border-radius: 16px;
  background: var(--superficie);
  color: var(--texto);
  width: min(580px, calc(100vw - 32px));
  max-height: 88vh;
  padding: 0;
  box-shadow: var(--sombra-2);
}
dialog::backdrop { background: rgba(15, 23, 42, 0.45); backdrop-filter: blur(2px); }

.form { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.form h2 { font-size: 17px; font-weight: 700; letter-spacing: -0.2px; }
.form h3 { font-size: 14px; font-weight: 700; }

.form label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--texto-suave); }

input[type="text"], input[type="datetime-local"], textarea, select {
  background: var(--superficie);
  border: 1px solid var(--borda-forte);
  border-radius: 9px;
  color: var(--texto);
  padding: 9px 11px;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primario);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.15);
}
textarea { resize: vertical; }

.linha-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .linha-2 { grid-template-columns: 1fr; } }

.acoes { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

.dica { font-size: 13px; color: var(--texto-suave); line-height: 1.5; }
.dica-inline { font-weight: 400; font-size: 11.5px; color: var(--texto-fraco); }

.duracao {
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--primario);
  background: var(--primario-tinta);
  border-radius: 9px;
  padding: 9px;
}

.grupo-novoProjeto,
.grupo-novo-projeto {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 13px;
  border: 1.5px dashed var(--borda-forte);
  border-radius: 10px;
  background: var(--superficie-2);
}

.paleta { display: flex; gap: 8px; flex-wrap: wrap; }
.paleta .cor {
  width: 26px; height: 26px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6);
  transition: transform 0.1s ease, border-color 0.1s ease;
}
.paleta .cor:hover { transform: scale(1.15); }
.paleta .cor.selecionada { border-color: var(--texto); transform: scale(1.15); }

.oculto { display: none !important; }

/* --------------------------- detalhes da tarefa --------------------------- */

.detalhe-cabecalho h2 { font-size: 16px; line-height: 1.4; }

.detalhe-meta { display: flex; gap: 7px; flex-wrap: wrap; margin: 10px 0 2px; align-items: center; }

.detalhe-secao { margin-top: 10px; }
.detalhe-secao h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--texto-fraco);
  margin-bottom: 7px;
  font-weight: 700;
}
.detalhe-texto {
  background: var(--superficie-2);
  border: 1px solid var(--borda);
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.sessao-item, .historico-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  padding: 8px 2px;
  border-bottom: 1px solid var(--borda);
  color: var(--texto-suave);
}
.sessao-item:last-child, .historico-item:last-child { border-bottom: none; }
.sessao-item strong, .historico-item strong { color: var(--texto); font-weight: 600; }
.historico-item .quando { white-space: nowrap; font-size: 11.5px; color: var(--texto-fraco); }

.caixa-validacao {
  background: var(--sucesso-tinta);
  border: 1px solid rgba(15, 169, 104, 0.3);
  border-radius: 9px;
  padding: 11px 14px;
  font-size: 13px;
  line-height: 1.6;
}

/* ----------------------------- colaboradores ----------------------------- */

.lista-colab { display: flex; flex-direction: column; }

.colab-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--borda);
}
.colab-item:last-child { border-bottom: none; }
.colab-item .avatar { width: 34px; height: 34px; font-size: 13px; }
.colab-info { flex: 1; min-width: 0; }
.colab-info .nome { font-weight: 700; font-size: 13.5px; }
.colab-papeis { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 4px; }

.papel {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.papel-administrador { background: var(--primario-tinta); color: var(--primario); }
.papel-validador     { background: var(--roxo-tinta);     color: var(--roxo); }
.papel-criador       { background: var(--atencao-tinta);  color: var(--atencao); }
.papel-desenvolvedor { background: var(--sucesso-tinta);  color: var(--sucesso); }

.colab-botoes { display: flex; gap: 6px; }

.form-colab {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 15px;
  border: 1.5px dashed var(--borda-forte);
  border-radius: 12px;
  background: var(--superficie-2);
}

.fieldset-papeis {
  border: 1px solid var(--borda);
  border-radius: 10px;
  padding: 11px 13px 13px;
  background: var(--superficie);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.fieldset-papeis legend {
  font-size: 12px;
  font-weight: 700;
  color: var(--texto-suave);
  padding: 0 6px;
}
.check {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 9px !important;
  font-weight: 400 !important;
  font-size: 12.5px !important;
  line-height: 1.5;
  cursor: pointer;
}
.check input { margin-top: 2px; accent-color: var(--primario); }
.check strong { color: var(--texto); }

/* ------------------------------ git ------------------------------ */

.git-status { font-size: 13.5px; line-height: 1.8; color: var(--texto-suave); }
.git-status strong { color: var(--texto); }
.git-log {
  background: #101828;
  border-radius: 9px;
  padding: 13px;
  font-size: 12px;
  font-family: Consolas, "Cascadia Code", monospace;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 260px;
  overflow-y: auto;
  color: #7ee2a8;
}

/* --------------------------- portal do cliente --------------------------- */

.portal-conteudo { max-width: 860px; margin: 0 auto; padding: 22px 24px 48px; }

.portal-cabecalho {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.portal-cabecalho h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.2px; }

.lista-chamados { display: flex; flex-direction: column; gap: 12px; }

.chamado-cartao {
  background: var(--superficie);
  border: 1px solid var(--borda);
  border-radius: 12px;
  padding: 15px 17px;
  cursor: pointer;
  box-shadow: var(--sombra-1);
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.chamado-cartao:hover { box-shadow: var(--sombra-2); transform: translateY(-1px); border-color: var(--borda-forte); }

.chamado-topo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.chamado-numero { font-weight: 800; font-size: 13px; color: var(--texto-fraco); letter-spacing: 0.3px; }
.chamado-rodape { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--texto-fraco); margin-top: 8px; }

.st-recebido  { background: var(--primario-tinta); color: var(--primario); }
.st-andamento { background: var(--atencao-tinta);  color: var(--atencao); }
.st-testes    { background: var(--roxo-tinta);     color: var(--roxo); }
.st-concluido { background: var(--sucesso-tinta);  color: var(--sucesso); }

.portal-vazio {
  background: var(--superficie);
  border: 1.5px dashed var(--borda-forte);
  border-radius: 14px;
  padding: 44px 24px;
  text-align: center;
  color: var(--texto-suave);
  font-size: 14.5px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* linha do tempo do chamado */
.etapas { display: flex; flex-direction: column; gap: 0; padding-left: 4px; }
.etapa {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  position: relative;
  font-size: 13px;
  color: var(--texto-suave);
}
.etapa::before {
  content: '';
  position: absolute;
  left: 4.5px;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: var(--borda-forte);
}
.etapa:first-child::before { top: 50%; }
.etapa:last-child::before { bottom: 50%; }
.etapa-ponto {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--borda-forte);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.etapa-atual { color: var(--texto); font-weight: 600; }
.etapa-atual .etapa-ponto { background: var(--primario); box-shadow: 0 0 0 3px var(--primario-tinta); }
.etapa-quando { margin-left: auto; font-size: 11.5px; color: var(--texto-fraco); white-space: nowrap; }

/* conversa */
.comentarios { display: flex; flex-direction: column; gap: 9px; }
.comentario {
  border-radius: 11px;
  padding: 9px 13px;
  font-size: 13px;
  line-height: 1.55;
  max-width: 92%;
}
.comentario-cliente { background: var(--primario-tinta); align-self: flex-end; }
.comentario-equipe  { background: var(--superficie-2); border: 1px solid var(--borda); align-self: flex-start; }
.comentario-autor { font-size: 11px; font-weight: 700; color: var(--texto-suave); margin-bottom: 3px; }
.comentario-autor span { font-weight: 400; color: var(--texto-fraco); margin-left: 6px; }
.comentario-texto { white-space: pre-wrap; }

.form-comentario { display: flex; gap: 9px; align-items: flex-end; }
.form-comentario textarea { flex: 1; }

/* selo de chamado nos cartões do kanban (visão da equipe) */
.selo-chamado { background: #e0f5f7; color: #0e9ab0; }

/* ------------------------- anexos e evidências ------------------------- */

.anexos { display: flex; gap: 9px; flex-wrap: wrap; align-items: flex-start; }

.anexo-thumb {
  position: relative;
  display: inline-block;
}
.anexo-thumb img {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--borda-forte);
  box-shadow: var(--sombra-1);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  display: block;
}
.anexo-thumb img:hover { transform: scale(1.04); box-shadow: var(--sombra-2); }

.anexo-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--borda-forte);
  border-radius: 999px;
  background: var(--superficie);
  font-size: 12px;
  font-weight: 600;
  color: var(--texto);
  max-width: 240px;
}
.anexo-chip a {
  color: var(--texto);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.anexo-chip a:hover { color: var(--primario); }
.anexo-chip > span { color: var(--texto-fraco); font-weight: 400; font-size: 11px; flex-shrink: 0; }

.anexo-remover {
  position: absolute;
  top: -7px;
  right: -7px;
  z-index: 2;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: var(--perigo);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  box-shadow: var(--sombra-1);
}
.anexo-remover:hover { transform: scale(1.12); }

input[type="file"] {
  font-size: 12.5px;
  color: var(--texto-suave);
}
input[type="file"]::file-selector-button {
  border: 1px solid var(--borda-forte);
  background: var(--superficie);
  color: var(--texto);
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-right: 10px;
}
input[type="file"]::file-selector-button:hover { background: var(--superficie-2); }

/* ------------------------------ toasts ------------------------------ */

.toasts {
  position: fixed;
  bottom: 18px;
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1100;
}
.toast {
  background: var(--superficie);
  border: 1px solid var(--borda);
  border-left: 4px solid var(--primario);
  color: var(--texto);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--sombra-2);
  animation: entrar 0.25s ease;
  max-width: 340px;
}
.toast.erro { border-left-color: var(--perigo); }
.toast.sucesso { border-left-color: var(--sucesso); }

@keyframes entrar {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

body.arrastando-cartao { cursor: grabbing; }
body.arrastando-cartao * { cursor: grabbing !important; }

/* barra de rolagem discreta */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--borda-forte); border-radius: 99px; }
::-webkit-scrollbar-track { background: transparent; }
