/* Fonte de alta legibilidade (a mesma do site), hospedada no próprio Clube */
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/atkinson-hyperlegible-400.woff2) format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 700 900; font-display: swap; src: url(../fonts/atkinson-hyperlegible-700.woff2) format('woff2'); }
:root {
  --blue: #1A62E5; /* antes #1D6FFF: escurecido para contraste AA */
  --orange: #FF7A00;
  --pink: #D10045; /* antes #FF0050: escurecido para contraste AA */
  --yellow: #FFDE17;
  --green: #17843D; /* antes #1FA64C: escurecido para contraste AA */
  --black: #17181A;
  --bg: #EDEDED;
  --white: #ffffff;
  --radius: 20px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Atkinson Hyperlegible', 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--black);
}

a { color: inherit; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 14px 28px;
  background: var(--bg);
  border-bottom: 6px solid var(--yellow);
}

.topbar .brand { display: flex; align-items: center; }
.topbar .brand img { height: 35px; width: auto; display: block; }

.topbar nav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; }

.topbar nav a {
  color: var(--black);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.topbar nav a:hover { color: var(--pink); }

.topbar .ola { color: var(--black); font-size: 13px; }

.topbar nav button {
  background: var(--pink);
  color: var(--white);
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

@media (max-width: 520px) {
  .topbar { padding: 12px 16px; }
}

.auth-wrap {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.auth-card {
  background: var(--white);
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius);
  border: 3px solid var(--black);
  padding: 36px 32px;
  box-shadow: 8px 8px 0 var(--black);
}

.auth-card .mascote {
  display: block;
  height: 68px;
  width: auto;
  margin: 0 auto 12px;
}

.auth-card h1 {
  text-align: center;
  font-size: 22px;
  margin: 0 0 4px;
}

.auth-card .subtitulo {
  text-align: center;
  color: var(--pink);
  font-weight: 700;
  margin-bottom: 24px;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.campo { margin-bottom: 16px; }

.campo label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
}

fieldset.campo { border: none; padding: 0; margin: 0 0 16px; }
fieldset.campo legend { font-weight: 700; font-size: 13px; margin-bottom: 8px; padding: 0; }
.campo .opcao { display: inline-flex; align-items: center; gap: 6px; margin-right: 18px; font-weight: 600; font-size: 14px; cursor: pointer; }
.campo .opcao input { width: 18px; height: 18px; accent-color: var(--pink); }
.campo select { width: 100%; padding: 11px 14px; border-radius: 12px; border: 2px solid #ccc; font-size: 14px; font-family: inherit; background: var(--white); }
.campo select:focus { outline: none; border-color: var(--blue); }
.campo input, .campo textarea {

  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 2px solid #ccc;
  font-size: 14px;
  font-family: inherit;
}

.campo input:focus, .campo textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.btn-primario {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 999px;
  background: var(--pink);
  color: var(--white);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  margin-top: 8px;
}

.btn-primario:hover { opacity: .92; }
.btn-primario:disabled { opacity: .5; cursor: not-allowed; }

.troca-link {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
}

.troca-link a { color: var(--blue); font-weight: 700; text-decoration: none; }
.esqueci-link { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--blue); }
.subtitulo-texto { text-align: center; color: #444; font-size: 14px; line-height: 1.5; margin: 0 0 16px; }

.mensagem {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.mensagem.erro { background: #FFE1E1; color: #C40036; }
.mensagem.sucesso { background: #E1F7E7; color: #147A34; }

/* ---- Club / feed ---- */
.club-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.club-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.club-header h1 {
  margin: 0;
  font-size: 26px;
}

.club-header .subtitulo {
  color: var(--pink);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-novo {
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

/* ---- Mural: grid de 3 colunas ---- */
#lista-projetos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}
@media (max-width: 980px) { #lista-projetos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { #lista-projetos { grid-template-columns: 1fr; } }

#lista-projetos .vazio { grid-column: 1 / -1; }

.project-card {
  background: var(--white);
  border: 3px solid var(--black);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--black);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.project-card .capa img,
.project-card .capa video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #ddd;
  border-bottom: 3px solid var(--black);
}

.project-card .midias {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 10px 16px 0;
}
.project-card .midias img,
.project-card .midias video {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--black);
}

.project-card .corpo { padding: 16px 18px 18px; }

.project-card .autor {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}

.project-card h3 { margin: 0 0 8px; font-size: 18px; overflow-wrap: anywhere; }

.project-card .descricao {
  margin: 0 0 6px;
  line-height: 1.5;
  color: #333;
  white-space: pre-line;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-card .descricao.aberta { display: block; -webkit-line-clamp: unset; }

.ler-mais {
  display: block;
  background: none;
  border: none;
  padding: 0;
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  margin-bottom: 10px;
}

.project-card a.link-projeto {
  display: inline-block;
  color: var(--pink);
  font-weight: 700;
  text-decoration: none;
  margin: 6px 0 4px;
}
.links-projeto { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.project-card a.link-codigo { color: var(--blue); }
.campo .opcional, .campo .obrigatorio { font-weight: 600; color: #555; }
.dica-campo { display: block; margin-top: 6px; font-size: 12.5px; color: #555; line-height: 1.4; }

.apagar {
  display: block;
  background: none;
  border: none;
  padding: 0;
  color: #C40036;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  margin-top: 10px;
}

/* ---- Banner patrocinado (ocupa a linha inteira) ---- */
.banner-anuncio {
  grid-column: 1 / -1;
  position: relative;
  border: 3px solid var(--black);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: 6px 6px 0 var(--black);
}
.banner-anuncio a { display: block; }
.banner-anuncio img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: cover;
}
.tag-patrocinado {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(23, 24, 26, .82);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  pointer-events: none;
}

/* ---- Modal novo projeto ---- */
.modal-fundo {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 50;
}
.modal-fundo.aberto { display: flex; }

.modal {
  background: var(--white);
  border-radius: var(--radius);
  border: 3px solid var(--black);
  max-width: 460px;
  width: 100%;
  padding: 28px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal h2 { margin-top: 0; }

.modal .fechar {
  float: right;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  font-weight: 800;
}

.btn-mais {
  display: block;
  margin: 28px auto 0;
  background: var(--white);
  border: 3px solid var(--black);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}
.btn-mais:disabled { opacity: .5; cursor: wait; }

/* ---- Cadastro em 2 colunas no computador ---- */
[hidden] { display: none !important; }

@media (min-width: 760px) {
  .auth-card.cadastro { max-width: 760px; padding: 36px 44px; }

  #form-cadastro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
  }
  /* "Você está no Brasil?" e o botão ocupam a linha inteira */
  #form-cadastro fieldset.campo,
  #form-cadastro .btn-primario { grid-column: 1 / -1; }

  /* Estado e Cidade lado a lado, na linha inteira */
  #form-cadastro #campos-brasil {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
  }
  #form-cadastro .btn-primario { max-width: 340px; justify-self: center; }
}

/* ---- Imagem de fundo (só no computador) ---- */
@media (min-width: 1024px) {
  .auth-wrap {
    background: url("../assets/fundo-clube.svg") center / cover no-repeat;
  }
}

/* ---- Busca e filtros do mural ---- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.club-wrap { max-width: 1400px; }

.barra-busca { display: flex; gap: 12px; margin-bottom: 22px; }
.barra-busca input {
  flex: 1; min-width: 0;
  padding: 14px 20px; border: 3px solid var(--black); border-radius: 999px;
  font-size: 16px; font-family: inherit; background: var(--white);
}
.barra-busca input:focus { outline: none; box-shadow: 0 0 0 4px var(--yellow); }
.btn-filtros {
  display: none; /* só aparece no celular */
  flex-shrink: 0; background: var(--black); color: var(--yellow);
  border: none; border-radius: 999px; padding: 0 20px; font-weight: 800; cursor: pointer;
}

/* filtros à esquerda + resultados à direita */
.mural { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 26px; align-items: start; }

.filtros {
  position: sticky; top: 16px;   /* fica fixo enquanto a página rola */
  max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--white); border: 3px solid var(--black); border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--black); padding: 18px 20px;
}
.filtros fieldset { border: none; margin: 0 0 18px; padding: 0; }
.filtros legend { font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--pink); margin-bottom: 8px; padding: 0; }
.filtros label { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 4px 0; cursor: pointer; }
.filtros input[type="checkbox"], .filtros input[type="radio"] { accent-color: var(--pink); width: 16px; height: 16px; }
.filtros select { width: 100%; padding: 9px 12px; border: 2px solid #ccc; border-radius: 10px; font-family: inherit; font-size: 14px; background: var(--white); }
.btn-limpar { width: 100%; background: none; border: 2px solid var(--black); border-radius: 999px; padding: 9px; font-weight: 700; cursor: pointer; }
.btn-limpar:hover { background: var(--yellow); }

/* etiquetas de categoria e nível nos cards */
.etiquetas { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 8px; }
.etiqueta { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #EDEDED; }
.etiqueta.nivel-iniciante { background: #E1F7E7; color: #147A34; }
.etiqueta.nivel-intermediario { background: #FFF4C2; color: #7A5B00; }
.etiqueta.nivel-avancado { background: #FFE1E9; color: #C40036; }

/* colunas do mural com a barra de filtros ao lado */
@media (max-width: 1180px) { #lista-projetos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* celular e tablet: filtros viram um painel que abre no botão */
@media (max-width: 900px) {
  .btn-filtros { display: block; }
  .mural { grid-template-columns: 1fr; }
  .filtros { display: none; position: static; max-height: none; }
  .filtros.aberto { display: block; }
}
@media (max-width: 640px) { #lista-projetos { grid-template-columns: 1fr; } }
/* =====================================================================
   Selos (mural, fórum e moderação)
   ===================================================================== */
.selo {
  display: inline-block; font-size: 12px; font-weight: 900; letter-spacing: .5px; line-height: 1.4;
  padding: 1px 7px; border-radius: 999px; border: 1.5px solid var(--black); text-transform: uppercase; white-space: nowrap;
}
.selo-master { background: var(--yellow); color: var(--black); }
.selo-moderador { background: var(--blue); border-color: var(--blue); color: var(--white); }
.selo-antigas { background: var(--orange); border-color: var(--orange); color: var(--black); }
.selo-fixada { background: #FFF8D6; }
.selo-banido { background: #C40036; border-color: #C40036; color: var(--white); }
.selo-pendente { background: #EDEDED; color: #555; border-color: #999; }
.selo-menor { background: #E3EEFF; color: #0B3D91; border-color: #1D6FFF; }
.project-card .autor .selo { margin-left: 6px; vertical-align: 1px; }

.contador {
  display: inline-block; background: var(--pink); color: var(--white); font-size: 12px; font-weight: 800;
  border-radius: 999px; padding: 1px 7px; line-height: 1.5; vertical-align: 1px;
}

/* Botões gerais */
.btn-secundario, .btn-perigo, .btn-ok, .btn-azul, .btn-laranja {
  border: 2px solid var(--black); border-radius: 999px; padding: 9px 16px; font-weight: 800;
  font-size: 13.5px; font-family: inherit; cursor: pointer; background: var(--white); color: var(--black);
}
.btn-perigo { background: #C40036; color: var(--white); }
.btn-ok { background: var(--green); color: var(--white); }
.btn-azul { background: var(--blue); color: var(--white); }
.btn-laranja { background: var(--orange); color: var(--white); }
.btn-secundario:hover { background: var(--yellow); }
.btn-perigo:disabled, .btn-ok:disabled, .btn-azul:disabled, .btn-laranja:disabled, .btn-secundario:disabled { opacity: .5; cursor: wait; }

/* Aviso rápido no rodapé da tela */
.aviso {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 100;
  background: var(--black); color: var(--white); padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 14px;
  transition: opacity .25s, transform .25s; pointer-events: none; max-width: calc(100% - 32px); text-align: center;
}
.aviso.visivel { opacity: 1; transform: translate(-50%, 0); }
.aviso-erro { background: #C40036; }

/* Caixas de diálogo (denúncia, menções, banimento) */
.dialogo {
  border: 3px solid var(--black); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--black);
  padding: 24px; width: calc(100% - 32px); max-width: 460px; color: var(--black);
}
.dialogo::backdrop { background: rgba(0, 0, 0, .5); }
.dialogo h2 { margin: 0 0 8px; font-size: 20px; }
.dialogo-ajuda { font-size: 13.5px; color: #555; margin: 0 0 14px; line-height: 1.45; }
.dialogo fieldset { border: none; padding: 0; margin: 0 0 6px; }
.dialogo legend { font-weight: 800; margin-bottom: 6px; padding: 0; }
.opcao-motivo { display: flex; align-items: center; gap: 8px; padding: 6px 0; cursor: pointer; font-size: 14.5px; }
.opcao-motivo input { accent-color: var(--pink); width: 17px; height: 17px; }
.dialogo-botoes { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* =====================================================================
   Fórum — um grupo por categoria
   ===================================================================== */
body.pagina-forum { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.pagina-forum .topbar { flex: none; }
.topbar nav a[aria-current="page"] { color: var(--pink); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }

.forum {
  flex: 1; min-height: 0; width: 100%; max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 20px; padding: 20px;
}
.grupos, .conversa {
  background: var(--white); border: 3px solid var(--black); border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--black); overflow: hidden; display: flex; flex-direction: column; min-height: 0;
}

/* lista de grupos */
.grupos-topo {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px 14px; border-bottom: 3px solid var(--black);
}
.grupos-topo h1 { margin: 0; font-size: 24px; }
.grupos-topo .subtitulo { margin: 2px 0 0; color: var(--pink); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.btn-mencoes {
  position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--black);
  background: var(--yellow); font-weight: 900; font-size: 20px; cursor: pointer; font-family: inherit;
}
.btn-mencoes .contador { position: absolute; top: -8px; right: -10px; }
.lista-grupos { list-style: none; margin: 0; padding: 8px; overflow-y: auto; flex: 1; }
.lista-grupos .carregando { padding: 12px; color: #555; }
.grupo {
  width: 100%; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 10px; margin-bottom: 4px; border-radius: 14px; border: 2px solid transparent; background: none;
  text-align: left; cursor: pointer; font-family: inherit; color: var(--black);
}
.grupo:hover { background: #F4F4F4; }
.grupo.ativo { background: var(--yellow); border-color: var(--black); }
.grupo-icone {
  width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--black); background: var(--bg);
  display: grid; place-items: center; font-size: 22px; flex: none;
}
.grupo-info strong { display: block; font-size: 14.5px; }
.grupo-info small { display: block; color: #555; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.nao-lidas {
  background: var(--green); color: var(--white); font-weight: 800; font-size: 12px; min-width: 24px; height: 24px;
  border-radius: 999px; display: grid; place-items: center; padding: 0 7px;
}

/* conversa */
.conversa {
  background-color: #FAF8F2;
  background-image: radial-gradient(#E4DFD2 1.2px, transparent 1.2px);
  background-size: 18px 18px;
}
.conversa-vazia { flex: 1; display: grid; place-content: center; justify-items: center; text-align: center; color: #555; padding: 20px; }
.conversa-ativa { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.conversa-topo {
  flex: none; display: flex; align-items: center; gap: 12px; padding: 12px 18px;
  background: var(--white); border-bottom: 3px solid var(--black);
}
.conversa-titulo h2 { margin: 0; font-size: 18px; }
.conversa-titulo p { margin: 1px 0 0; font-size: 12.5px; color: #555; }
.btn-voltar {
  display: none; flex: none; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--black);
  background: var(--white); font-size: 18px; font-weight: 900; cursor: pointer; place-items: center;
}

.filtro-tags {
  flex: none; display: flex; gap: 8px; padding: 10px 18px; overflow-x: auto;
  background: var(--white); border-bottom: 2px solid #DDD;
}
.chip {
  border: 2px solid var(--black); background: var(--white); color: var(--black); border-radius: 999px;
  padding: 5px 12px; font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; font-family: inherit;
}
.chip.tag-ajuda, .hashtag.tag-ajuda { background: #FFE1E9; color: #C40036; }
.chip.tag-eventos, .hashtag.tag-eventos { background: #E0EBFF; color: #0B4BB0; }
.chip.tag-euqueroexistir, .hashtag.tag-euqueroexistir { background: #FFE9CC; color: #8A4500; }
.chip.ativo { background: var(--black); color: var(--yellow); }

.fixada {
  flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 18px;
  background: #FFF8D6; border-bottom: 2px solid var(--black);
}
.fixada-texto {
  flex: 1; min-width: 0; background: none; border: none; text-align: left; font-family: inherit; font-size: 13.5px;
  cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--black); padding: 0;
}
.fixada-tirar { background: none; border: none; color: #C40036; font-weight: 800; font-size: 12.5px; cursor: pointer; font-family: inherit; }

.mensagens { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 18px 8px; }
.btn-anteriores {
  display: block; margin: 0 auto 12px; background: var(--white); border: 2px solid var(--black); border-radius: 999px;
  padding: 7px 16px; font-weight: 800; font-size: 13px; cursor: pointer; font-family: inherit;
}
.sem-mensagens { text-align: center; color: #555; margin-top: 40px; }
.dia { text-align: center; margin: 14px 0; }
.dia span { background: var(--white); border: 2px solid var(--black); border-radius: 999px; padding: 3px 12px; font-size: 12px; font-weight: 800; }

.msg { display: flex; flex-direction: column; align-items: flex-start; max-width: min(78%, 680px); margin: 0 0 14px; }
.msg.minha { margin-left: auto; align-items: flex-end; }
.msg-bolha {
  position: relative; background: var(--white); border: 2px solid var(--black); border-radius: 4px 16px 16px 16px;
  padding: 7px 12px 5px; box-shadow: 3px 3px 0 var(--black); min-width: 130px; max-width: 100%;
}
.msg.minha .msg-bolha { background: #DFF6E5; border-radius: 16px 4px 16px 16px; }
.msg.me-marcaram:not(.minha) .msg-bolha { background: #FFFBE0; box-shadow: 3px 3px 0 var(--orange); }
.msg-autor { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; margin-bottom: 2px; }
.msg-texto { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; font-size: 15px; }
.mencao { color: #1552C4; font-weight: 700; background: #E0EBFF; border-radius: 6px; padding: 0 3px; }
.mencao-eu { background: var(--yellow); color: var(--black); }
.hashtag { border: none; font: inherit; font-weight: 800; padding: 0 4px; border-radius: 6px; cursor: pointer; }
.hashtag:hover { text-decoration: underline; }
.msg-citacao {
  display: block; width: 100%; text-align: left; border: none; border-left: 4px solid var(--pink); background: rgba(0, 0, 0, .05);
  border-radius: 6px; padding: 5px 8px; margin: 4px 0 6px; font-family: inherit; font-size: 13px; cursor: pointer; color: var(--black);
}
.msg-citacao strong { display: block; color: var(--pink); font-size: 12px; }
.msg-citacao span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #444; }
.msg-aviso { margin: 2px 0; font-style: italic; color: #666; font-size: 14px; }
.msg.estado-analise .msg-bolha, .msg.estado-removida .msg-bolha, .msg.estado-apagada .msg-bolha {
  background: #F3F3F3; border-style: dashed; box-shadow: none;
}
.msg.estado-analise .msg-texto, .msg.estado-removida .msg-texto, .msg.estado-apagada .msg-texto { color: #595959; }
.msg-rodape { display: flex; justify-content: flex-end; align-items: center; gap: 8px; font-size: 12px; color: #666; margin-top: 2px; }
.chip-denuncias { color: #C40036; font-weight: 800; }

.msg-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.msg.minha .msg-acoes { justify-content: flex-end; }
.reacao {
  display: inline-flex; align-items: center; gap: 5px; border: 2px solid var(--black); background: var(--white);
  border-radius: 999px; padding: 2px 9px; font-size: 12.5px; font-weight: 700; cursor: pointer; font-family: inherit; color: var(--black);
}
.reacao:hover { background: #F4F4F4; }
.reacao-joinha.ativa { background: var(--yellow); }
.reacao-ajudou.ativa { background: var(--green); border-color: var(--green); color: var(--white); }
.reacao .qtd { font-weight: 900; }
.reacao.estatica { cursor: default; border-style: dashed; }
.acao { background: none; border: none; color: #555; font-weight: 700; font-size: 12.5px; cursor: pointer; padding: 2px 4px; font-family: inherit; }
.acao:hover { color: var(--black); text-decoration: underline; }

details.mais { position: relative; }
details.mais summary {
  list-style: none; cursor: pointer; padding: 0 9px; font-weight: 900; font-size: 16px; line-height: 22px;
  border-radius: 999px; color: #555; user-select: none;
}
details.mais summary::-webkit-details-marker { display: none; }
details.mais[open] summary, details.mais summary:hover { background: #E8E8E8; color: var(--black); }
.mais .menu {
  position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; display: flex; flex-direction: column;
  background: var(--white); border: 2px solid var(--black); border-radius: 12px; box-shadow: 4px 4px 0 var(--black);
  padding: 6px; min-width: 220px;
}
.msg.minha .mais .menu { left: auto; right: 0; }
.menu button { background: none; border: none; text-align: left; padding: 8px 10px; border-radius: 8px; font-family: inherit; font-size: 14px; cursor: pointer; color: var(--black); }
.menu button:hover:not(:disabled) { background: #F2F2F2; }
.menu button:disabled { color: #888; cursor: default; }

@keyframes piscar { 0%, 100% { background: inherit; } 25%, 60% { background: var(--yellow); } }
.msg.piscar .msg-bolha { animation: piscar 1.4s ease; }

/* escrever mensagem */
.compositor { flex: none; position: relative; background: var(--white); border-top: 3px solid var(--black); padding: 10px 14px 12px; }
.respondendo {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; border-left: 4px solid var(--pink);
  background: #F6F6F6; border-radius: 8px; padding: 6px 10px; margin-bottom: 8px; font-size: 13px;
}
.respondendo > div { min-width: 0; }
.respondendo strong { display: block; color: var(--pink); }
.respondendo span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #444; }
.respondendo button { background: none; border: none; font-size: 20px; font-weight: 800; cursor: pointer; line-height: 1; }
.atalhos-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.atalhos-tags .chip { font-size: 12px; padding: 3px 10px; }
.linha-envio { display: flex; gap: 10px; align-items: flex-end; }
#texto {
  flex: 1; min-width: 0; resize: none; border: 3px solid var(--black); border-radius: 18px; padding: 10px 14px;
  font-family: inherit; font-size: 15px; line-height: 1.4; min-height: 48px; max-height: 160px; background: var(--white);
}
#texto:focus { outline: none; box-shadow: 0 0 0 4px var(--yellow); }
.btn-enviar {
  flex: none; height: 48px; padding: 0 22px; background: var(--green); color: var(--white); border: 3px solid var(--black);
  border-radius: 999px; font-weight: 800; font-size: 15px; cursor: pointer; font-family: inherit;
}
.btn-enviar:disabled { opacity: .6; cursor: wait; }
.sugestoes {
  position: absolute; z-index: 30; left: 14px; bottom: calc(100% - 4px); width: min(360px, calc(100% - 28px));
  list-style: none; margin: 0; padding: 6px; background: var(--white); border: 3px solid var(--black);
  border-radius: 14px; box-shadow: 4px 4px 0 var(--black);
}
.sugestoes li { padding: 8px 10px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.sugestoes li[aria-selected="true"], .sugestoes li:hover { background: var(--yellow); }
.sugestoes .arroba { color: var(--blue); font-weight: 900; margin-right: 2px; }

/* menções recebidas */
.lista-mencoes { list-style: none; margin: 0; padding: 0; max-height: 60vh; overflow-y: auto; }
.lista-mencoes button {
  display: block; width: 100%; text-align: left; background: var(--white); border: 2px solid #DDD; border-radius: 12px;
  padding: 10px 12px; margin-bottom: 8px; font-family: inherit; font-size: 14px; cursor: pointer; color: var(--black);
}
.lista-mencoes button:hover { border-color: var(--black); }
.lista-mencoes .mencao-topo { display: block; font-size: 12px; color: #666; margin-bottom: 2px; }
.lista-mencoes strong { display: block; }
.lista-mencoes .vazio { color: #555; padding: 8px 0; }

/* celular: lista de grupos OU conversa, como no WhatsApp */
@media (max-width: 800px) {
  .forum { grid-template-columns: 1fr; padding: 10px; gap: 0; }
  .forum .conversa { display: none; }
  .forum.com-conversa .grupos { display: none; }
  .forum.com-conversa .conversa { display: flex; }
  .btn-voltar { display: grid; }
  .msg { max-width: 88%; }
  .mensagens { padding: 12px 10px 6px; }
  .filtro-tags { padding: 8px 10px; }
  .conversa-topo { padding: 10px 12px; }
  .pagina-forum .topbar .ola { display: none; }
  .btn-enviar { padding: 0 16px; }
}

/* =====================================================================
   Painel da Moderação
   ===================================================================== */
.abas { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.aba {
  border: 3px solid var(--black); background: var(--white); border-radius: 999px; padding: 10px 18px;
  font-weight: 800; font-size: 14px; cursor: pointer; font-family: inherit; color: var(--black);
}
.aba.ativa { background: var(--black); color: var(--yellow); }
.painel-ajuda { color: #555; font-size: 14px; margin: 0 0 14px; }
.lista-mod { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); align-items: start; }
.lista-mod > .vazio { grid-column: 1 / -1; color: #555; }
.cartao-mod {
  background: var(--white); border: 3px solid var(--black); border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--black); padding: 16px 18px; min-width: 0;
}
.cartao-mod.oculta { border-color: #C40036; box-shadow: 6px 6px 0 #C40036; }
.cartao-mod.banido { background: #F6F6F6; }
.cartao-topo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: #555; margin-bottom: 10px; }
.cartao-topo time { margin-left: auto; }
.cartao-topo .estado-analise { color: #C40036; font-weight: 800; }
.cartao-topo .estado-ok { color: #147A34; font-weight: 700; }
.cartao-autor { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; overflow-wrap: anywhere; }
.cartao-texto {
  white-space: pre-wrap; overflow-wrap: anywhere; background: #F6F6F6; border-radius: 10px;
  padding: 10px 12px; margin: 0 0 10px; font-size: 14.5px; line-height: 1.45;
}
.motivos { list-style: none; margin: 0 0 12px; padding: 0; font-size: 13px; color: #C40036; font-weight: 700; }
.cartao-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.link-grupo { margin-left: auto; color: var(--blue); font-weight: 700; font-size: 13px; text-decoration: none; }
.membro-dados { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: #444; margin: 4px 0; overflow-wrap: anywhere; }
.membro-numeros { font-size: 12.5px; color: #666; margin: 0 0 12px; }
.busca-membros { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.busca-membros input {
  flex: 1; min-width: 220px; padding: 12px 18px; border: 3px solid var(--black); border-radius: 999px;
  font-size: 15px; font-family: inherit; background: var(--white);
}
.busca-membros select {
  padding: 10px 14px; border: 3px solid var(--black); border-radius: 999px; font-family: inherit; font-size: 14px;
  font-weight: 700; background: var(--white);
}
.busca-membros input:focus, .busca-membros select:focus { outline: none; box-shadow: 0 0 0 4px var(--yellow); }
.historico {
  list-style: none; margin: 0; padding: 0; background: var(--white); border: 3px solid var(--black);
  border-radius: var(--radius); box-shadow: 6px 6px 0 var(--black); overflow: hidden;
}
.historico li { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 10px 16px; border-bottom: 1px solid #EEE; font-size: 14px; }
.historico li:last-child { border-bottom: none; }
.historico time { color: #666; font-size: 12.5px; min-width: 140px; }

/* =====================================================================
   Botão EVENTOS em destaque no menu
   ===================================================================== */
.topbar nav a.nav-eventos {
  background: var(--yellow); border: 2px solid var(--black); border-radius: 999px; padding: 6px 14px;
  box-shadow: 3px 3px 0 var(--black); letter-spacing: .5px; font-weight: 900; color: var(--black);
  transition: transform .12s, box-shadow .12s;
}
.topbar nav a.nav-eventos:hover { color: var(--black); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--black); }
.topbar nav a.nav-eventos[aria-current="page"] { background: var(--black); color: var(--yellow); text-decoration: none; box-shadow: 3px 3px 0 var(--pink); }
@media (max-width: 600px) {
  .topbar nav { gap: 6px 12px; }
  .topbar nav a { font-size: 13px; }
  .topbar nav a.nav-eventos { padding: 5px 10px; }
}

/* =====================================================================
   Página de Eventos
   ===================================================================== */
.eventos-pagina { max-width: 1200px; }
.carregando-eventos { color: #555; }
.filtro-eventos { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 22px; }
.chips-eventos { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.filtro-eventos select {
  padding: 8px 14px; border: 2px solid var(--black); border-radius: 999px; font-family: inherit;
  font-size: 13.5px; font-weight: 700; background: var(--white);
}

/* próximo evento */
.ev-destaque-card {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); background: var(--white);
  border: 3px solid var(--black); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--black); overflow: hidden;
}
.ev-visual { position: relative; min-height: 280px; border-right: 3px solid var(--black); }
.ev-capa { display: block; width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.ev-capa-vazia { display: grid; place-items: center; }
.ev-capa-vazia span { font-size: 110px; filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, .25)); }
.ev-visual .ev-data { position: absolute; left: 18px; top: 18px; transform: scale(1.15); transform-origin: top left; }
.ev-corpo { padding: 24px 28px 26px; min-width: 0; }
.faixa-proximo {
  display: inline-block; background: var(--pink); color: var(--white); font-weight: 900; font-size: 12px;
  letter-spacing: 1px; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
}
.ev-linha { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.ev-corpo h2 { margin: 0 0 10px; font-size: 30px; line-height: 1.15; overflow-wrap: anywhere; }
.ev-quando { margin: 0 0 4px; font-weight: 700; }
.ev-onde { margin: 0 0 12px; color: #444; overflow-wrap: anywhere; }
.ev-descricao {
  margin: 0 0 6px; line-height: 1.5; color: #333; white-space: pre-line; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden;
}
.ev-descricao.aberta { display: block; }

.ev-tipo {
  display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px;
  border: 2px solid currentColor; background: var(--white);
}
.ev-contagem {
  display: inline-block; font-size: 12.5px; font-weight: 800; padding: 3px 10px; border-radius: 999px;
  background: #EDEDED; color: var(--black); margin-bottom: 10px;
}
.ev-linha .ev-contagem { margin-bottom: 0; }
.ev-contagem.amanha { background: var(--yellow); }
.ev-contagem.agora { background: var(--green); color: var(--white); animation: pulsar 1.6s ease-in-out infinite; }
@keyframes pulsar { 50% { box-shadow: 0 0 0 5px rgba(31, 166, 76, .25); } }
@media (prefers-reduced-motion: reduce) { .ev-contagem.agora { animation: none; } }

/* bloco de data (dia + mês) */
.ev-data {
  flex: none; display: grid; justify-items: center; align-content: center; min-width: 64px; padding: 6px 10px;
  border: 3px solid var(--black); border-radius: 14px; color: var(--white); box-shadow: 3px 3px 0 var(--black); text-align: center;
}
.ev-dia { font-size: 24px; font-weight: 900; line-height: 1; white-space: nowrap; }
.ev-mes { font-size: 12px; font-weight: 900; letter-spacing: 1px; margin-top: 3px; white-space: nowrap; }

/* ações */
.ev-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.btn-vou, .btn-inscricao, .btn-agenda, .btn-mod {
  display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--black); border-radius: 999px;
  padding: 8px 14px; font-weight: 800; font-size: 13.5px; cursor: pointer; font-family: inherit;
  background: var(--white); color: var(--black); text-decoration: none; list-style: none;
}
.btn-vou { background: var(--yellow); }
.btn-vou.ativo { background: var(--green); color: var(--white); }
.btn-vou .qtd { background: var(--black); color: var(--white); border-radius: 999px; padding: 0 7px; font-size: 12px; }
.btn-vou.ativo .qtd { background: var(--white); color: var(--green); }
.btn-inscricao { background: var(--pink); color: var(--white); }
.btn-agenda::-webkit-details-marker { display: none; }
.btn-mod { font-size: 12.5px; padding: 6px 12px; }
.btn-mod.perigo { color: #C40036; }
details.agenda summary.btn-agenda { color: var(--black); }
details.agenda[open] summary.btn-agenda, details.agenda summary.btn-agenda:hover { background: #F2F2F2; }
.menu a { display: block; padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--black); text-decoration: none; }
.menu a:hover { background: #F2F2F2; }

/* depois dele */
.titulo-secao { margin: 40px 0 16px; font-size: 20px; }
.lista-eventos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 22px; align-items: start; }
.ev-card {
  background: var(--white); border: 3px solid var(--black); border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--black); overflow: hidden; min-width: 0;
}
.ev-miniatura { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-bottom: 3px solid var(--black); }
.ev-card-corpo { padding: 16px 18px 18px; }
.ev-card-topo { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 10px; }
.ev-card-topo > div:last-child { min-width: 0; }
.ev-card h3 { margin: 6px 0 0; font-size: 18px; line-height: 1.2; overflow-wrap: anywhere; }
.ev-card .ev-quando { font-size: 14px; }
.ev-card .ev-onde { font-size: 14px; margin-bottom: 8px; }

.eventos-vazio {
  display: grid; justify-items: center; text-align: center; gap: 8px; padding: 50px 20px; background: var(--white);
  border: 3px dashed var(--black); border-radius: var(--radius); color: #444; font-weight: 600;
}

/* formulário de evento */
.dialogo-largo { max-width: 720px; }
.fechar-dialogo { float: right; background: none; border: none; font-size: 24px; font-weight: 800; cursor: pointer; line-height: 1; }
.grade-form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
.grade-form .largo { grid-column: 1 / -1; }
.grade-form small { font-weight: 500; color: #666; }
.grade-form input[type="file"] { padding: 8px; font-size: 13px; }

@media (max-width: 820px) {
  .ev-destaque-card { grid-template-columns: 1fr; }
  .ev-visual { min-height: 200px; border-right: none; border-bottom: 3px solid var(--black); }
  .ev-corpo { padding: 20px; }
  .ev-corpo h2 { font-size: 24px; }
}
@media (max-width: 560px) {
  .grade-form { grid-template-columns: 1fr; }
}
details.agenda summary.btn-agenda { font-size: 13.5px; line-height: normal; padding: 8px 14px; font-weight: 800; border-radius: 999px; }
@media (max-width: 600px) {
  .filtro-eventos { flex-direction: column; align-items: stretch; }
  .chips-eventos { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
  .chips-eventos .chip { flex: none; }
}
@media (max-width: 600px) {
  .filtro-eventos { display: grid; grid-template-columns: minmax(0, 1fr); }
}
.ev-previa { display: block; margin-top: 8px; max-width: 100%; max-height: 140px; border-radius: 10px; border: 2px solid var(--black); object-fit: contain; background: #F4F4F4; }
/* capa do evento sem cortes */
.ev-midia { position: relative; overflow: hidden; background: var(--black); }
.ev-midia .fundo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(18px) brightness(.55); transform: scale(1.2); }
.ev-midia .frente { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }
.ev-midia.ev-capa { position: absolute; inset: 0; }
.ev-midia.ev-miniatura { aspect-ratio: 16 / 9; border-bottom: 3px solid var(--black); }
/* capas dos eventos em proporção 1:1 */
.ev-destaque-card { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: stretch; }
.ev-visual { min-height: 0; aspect-ratio: 1 / 1; align-self: start; }
.ev-midia.ev-miniatura { aspect-ratio: 1 / 1; }
.ev-previa { width: 140px; height: 140px; object-fit: cover; }
@media (max-width: 820px) { .ev-visual { min-height: 0; } }
.ev-titulo-linha { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.ev-titulo-linha h2 { margin: 0; }
@media (max-width: 820px) {
  .ev-destaque-card { grid-template-columns: 1fr; }
  .ev-visual { border-right: none; border-bottom: 3px solid var(--black); }
}

/* =====================================================================
   Lab do Boli (área premium)
   ===================================================================== */
:root { --roxo: #6A2FD6; --roxo-claro: #EFE6FF; } /* antes #7B3FE4 */
.selo-lab { background: var(--roxo); border-color: var(--roxo); color: var(--white); }
.topbar nav a.nav-lab {
  background: var(--roxo); color: var(--white); border: 2px solid var(--black); border-radius: 999px;
  padding: 6px 14px; box-shadow: 3px 3px 0 var(--black); font-weight: 900; transition: transform .12s, box-shadow .12s;
}
.topbar nav a.nav-lab:hover { color: var(--white); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--black); }
.topbar nav a.nav-lab[aria-current="page"] { text-decoration: none; box-shadow: 3px 3px 0 var(--yellow); }
@media (max-width: 600px) { .topbar nav a.nav-lab { padding: 5px 10px; } }
/* Escondido até o lançamento (o comum.js põe a classe com-lab quando o Lab pode aparecer) */
html:not(.com-lab) .topbar nav a.nav-lab { display: none; }

.lab { max-width: 1200px; margin: 0 auto; padding: 24px 20px 60px; }
.lab-topo {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: var(--roxo); color: var(--white);
  border: 3px solid var(--black); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--black); padding: 20px 24px; margin-bottom: 24px;
  background-image: radial-gradient(rgba(255, 255, 255, .14) 1.5px, transparent 1.5px); background-size: 16px 16px;
}
.lab-boli { background: var(--white); border-radius: 50%; border: 3px solid var(--black); padding: 6px; }
.lab-topo-texto { flex: 1; min-width: 220px; }
.lab-topo h1 { margin: 0; font-size: 34px; letter-spacing: -0.5px; }
.lab-topo p { margin: 4px 0 0; }
.lab-sobre { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--yellow); }
.lab-chip {
  display: inline-block; background: var(--white); color: var(--black); border: 2px solid var(--black); border-radius: 999px;
  padding: 6px 14px; font-weight: 800; font-size: 13px;
}
.lab-chip.ativo { background: var(--yellow); }
.lab-chip.equipe { background: var(--blue); color: var(--white); }
.lab-abas { margin-bottom: 20px; }
.lab-abas .aba { text-decoration: none; }

/* venda */
.lab-venda-grade { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 22px; align-items: start; margin-bottom: 24px; }
.lab-venda-card { background: var(--white); border: 3px solid var(--black); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--black); padding: 22px 24px; }
.lab-venda-card h2 { margin-top: 0; }
.lab-beneficios { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.lab-beneficios li { line-height: 1.45; }
.lab-preco { font-size: 26px; font-weight: 900; margin: 6px 0 12px; }
.btn-lab-grande {
  display: inline-block; background: var(--yellow); color: var(--black); border: 3px solid var(--black); border-radius: 999px;
  padding: 14px 26px; font-weight: 900; font-size: 17px; text-decoration: none; box-shadow: 4px 4px 0 var(--black);
}
.btn-lab-grande[aria-disabled="true"] { opacity: .6; cursor: progress; }
.lab-email-mp { max-width: 420px; margin: 4px 0 14px; }
.lab-email-mp small { display: block; margin-top: 6px; font-size: 13px; color: #444; line-height: 1.4; }
.lab-em-breve { background: var(--roxo-claro); border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.lab-em-breve a { color: var(--roxo); font-weight: 800; }
.lab-responsavel { font-size: 13px; color: #555; }
.lab-gratis { list-style: none; padding: 0; display: grid; gap: 8px; }
.lab-gratis a { display: block; padding: 10px 14px; border: 2px solid var(--black); border-radius: 12px; text-decoration: none; font-weight: 700; }
.lab-gratis a:hover { background: var(--yellow); }
.lab-bloqueado { display: grid; place-items: center; min-height: 60vh; }
.lab-cadeado { text-align: center; max-width: 520px; background: var(--white); border: 3px solid var(--black); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--black); padding: 30px; }

/* trilha */
.barra-progresso { height: 12px; background: #E4E4E4; border: 2px solid var(--black); border-radius: 999px; overflow: hidden; }
.barra-progresso span { display: block; height: 100%; background: var(--green); transition: width .4s; }
.lab-progresso-geral { background: var(--white); border: 3px solid var(--black); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--black); padding: 16px 20px; margin-bottom: 22px; }
.progresso-texto { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.progresso-texto .btn-ok { text-decoration: none; }
.modulos { display: grid; gap: 16px; }
.modulo { background: var(--white); border: 3px solid var(--black); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--black); overflow: hidden; }
.modulo.completo { box-shadow: 6px 6px 0 var(--green); }
.modulo summary { list-style: none; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 20px; cursor: pointer; }
.modulo summary::-webkit-details-marker { display: none; }
.modulo-emoji { width: 56px; height: 56px; border-radius: 16px; border: 3px solid var(--black); background: var(--roxo-claro); display: grid; place-items: center; font-size: 28px; }
.modulo-info small { display: block; color: var(--roxo); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.modulo-info strong { display: block; font-size: 18px; }
.modulo-desc { display: block; color: #555; font-size: 13.5px; margin-top: 2px; }
.modulo-num { font-weight: 900; font-size: 15px; background: var(--bg); border-radius: 999px; padding: 6px 12px; }
.modulo-corpo { padding: 0 20px 18px; border-top: 2px dashed #DDD; padding-top: 14px; }
.lista-aulas { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.item-aula { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--black); border: 2px solid transparent; }
a.item-aula:hover { background: var(--roxo-claro); border-color: var(--black); }
.item-aula.bloqueada { color: #666; }
.aula-check { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--black); display: grid; place-items: center; font-size: 13px; flex: none; }
.item-aula.feita .aula-check { background: var(--green); color: var(--white); border-color: var(--green); }
.item-aula.bloqueada .aula-check { border-color: #BBB; }
.aula-nome { flex: 1; font-weight: 600; }
.item-aula small { color: #666; }
.tag-gratis { background: var(--green); color: var(--white); font-size: 12px; font-weight: 900; padding: 2px 8px; border-radius: 999px; }
.modulo-extras { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.modulo-extras a { text-decoration: none; }
.certificado-bloqueado { font-size: 13px; color: #666; }

/* aula */
.aula { background: var(--white); border: 3px solid var(--black); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--black); padding: 26px clamp(18px, 4vw, 48px) 30px; max-width: 900px; margin: 0 auto; }
.aula-caminho { font-size: 13px; color: #555; margin-bottom: 8px; }
.aula-caminho a { color: var(--roxo); font-weight: 800; text-decoration: none; }
.aula h1 { margin: 0 0 4px; font-size: clamp(24px, 4vw, 34px); line-height: 1.15; }
.aula-meta { color: #666; font-size: 13px; margin: 0 0 18px; }
.aula-conteudo { font-size: 16.5px; line-height: 1.65; }
.aula-conteudo h2 { font-size: 22px; margin: 28px 0 8px; }
.aula-conteudo h3 { font-size: 18px; margin: 22px 0 6px; }
.aula-conteudo p, .aula-conteudo li { overflow-wrap: anywhere; }
.aula-conteudo code { background: #F1ECFB; border-radius: 6px; padding: 1px 6px; font-size: .92em; font-family: Consolas, 'Courier New', monospace; }
.codigo-aula { margin: 14px 0 18px; border: 3px solid var(--black); border-radius: 14px; overflow: hidden; background: #1E1F24; }
.codigo-aula pre { margin: 0; padding: 16px 18px; overflow-x: auto; }
.codigo-aula pre code { background: none; color: #F2F2F2; padding: 0; font-size: 14px; line-height: 1.55; white-space: pre; }
.codigo-acoes { display: flex; gap: 8px; padding: 8px 12px; background: #2B2C33; border-top: 2px solid #000; flex-wrap: wrap; }
.btn-codigo { background: #3B3D47; color: #fff; border: 1px solid #555; border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 700; cursor: pointer; font-family: inherit; }
.btn-codigo.sim { background: var(--yellow); color: var(--black); border-color: var(--black); }
.tabela-aula { overflow-x: auto; margin: 12px 0 18px; }
.tabela-aula table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.tabela-aula th, .tabela-aula td { border: 2px solid var(--black); padding: 7px 10px; text-align: left; }
.tabela-aula th { background: var(--roxo-claro); }
.destaque { border: 2px solid var(--black); border-radius: 14px; padding: 12px 16px; margin: 14px 0; background: #FFF8D6; }
.destaque-atencao { background: #FFE6EC; }
.destaque-sim { background: #E6F0FF; }
.destaque-final { background: var(--roxo-claro); font-weight: 700; }
.destaque-final a { color: var(--roxo); }
.aula-rodape { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-top: 2px dashed #DDD; margin-top: 26px; padding-top: 18px; }
.btn-concluir { background: var(--white); border: 3px solid var(--black); border-radius: 999px; padding: 11px 20px; font-weight: 900; cursor: pointer; font-family: inherit; font-size: 14.5px; }
.btn-concluir.feita { background: var(--green); color: var(--white); }
.aula-navegacao { display: flex; flex-wrap: wrap; gap: 8px; }
.aula-navegacao a { text-decoration: none; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* desafio do mês */
.desafio-topo { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.desafio-topo h2 { margin: 0; font-size: 26px; }
.desafio-topo p { margin: 4px 0 0; color: #444; }
.desafios { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; align-items: start; }
.desafio-card { background: var(--white); border: 3px solid var(--black); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--black); padding: 18px 20px; }
.desafio-card.escolhido { box-shadow: 6px 6px 0 var(--roxo); border-color: var(--roxo); }
.desafio-cab { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tag-sim { font-size: 12px; font-weight: 800; background: #E6F0FF; color: #0B4BB0; border-radius: 999px; padding: 3px 9px; }
.desafio-card h3 { margin: 10px 0 6px; font-size: 19px; }
.desafio-card p { margin: 0 0 10px; line-height: 1.5; }
.desafio-objetivos { margin: 0 0 10px; padding-left: 20px; line-height: 1.5; }
.desafio-pecas { font-size: 13.5px; color: #444; }
.desafio-dica summary { cursor: pointer; font-weight: 800; color: var(--roxo); }
.desafio-dica p { margin-top: 6px; background: #FFF8D6; border-radius: 10px; padding: 8px 10px; }
.desafio-numeros { font-size: 12.5px; color: #595959; }
.desafio-acoes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.desafio-acoes a { text-decoration: none; }
.minha-entrega { background: var(--roxo-claro); border: 3px solid var(--black); border-radius: var(--radius); padding: 18px 22px; margin-top: 24px; }
.minha-entrega h2 { margin-top: 0; }
.form-entrega { display: grid; gap: 4px; max-width: 640px; }
.form-entrega .btn-ok { justify-self: start; }
.galeria-desafios { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.galeria-item { background: var(--white); border: 2px solid var(--black); border-radius: 14px; padding: 12px 14px; }
.galeria-autor { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.galeria-desafio { display: block; font-size: 12.5px; color: var(--roxo); font-weight: 700; margin: 4px 0; }
.galeria-item p { margin: 4px 0; font-size: 14px; }
.galeria-item a { color: var(--pink); font-weight: 800; text-decoration: none; }

/* moderação: liberar o Lab */
.cartao-lab { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 2px dashed #DDD; }
.lab-situacao { font-weight: 800; font-size: 13px; color: #666; margin-right: auto; }
.lab-situacao.ativo { color: var(--roxo); }
.btn-lab { border: 2px solid var(--black); border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 12.5px; cursor: pointer; font-family: inherit; background: var(--roxo); color: var(--white); }

@media (max-width: 820px) {
  .lab-venda-grade { grid-template-columns: 1fr; }
  .modulo summary { grid-template-columns: 44px minmax(0, 1fr) auto; padding: 14px; }
  .modulo-emoji { width: 44px; height: 44px; font-size: 22px; }
  .modulo-desc { display: none; }
}

/* =====================================================================
   Simulador
   ===================================================================== */
.sim { max-width: 1500px; margin: 0 auto; padding: 16px 16px 40px; }
.sim-barra { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.sim-barra h1 { margin: 0; font-size: 24px; }
.sim-voltar { font-weight: 800; color: var(--roxo); text-decoration: none; }
.sim-lang { display: flex; gap: 6px; }
.sim-barra select { padding: 8px 12px; border: 2px solid var(--black); border-radius: 999px; font-family: inherit; font-weight: 700; background: var(--white); }
.sim-acoes { display: flex; gap: 8px; }
.btn-rodar, .btn-parar, .btn-som {
  border: 3px solid var(--black); border-radius: 999px; padding: 8px 18px; font-weight: 900; font-size: 15px; cursor: pointer; font-family: inherit;
}
.btn-rodar { background: var(--green); color: var(--white); box-shadow: 3px 3px 0 var(--black); }
.btn-parar { background: var(--pink); color: var(--white); }
.btn-parar:disabled { opacity: .45; cursor: default; }
.btn-som { background: var(--white); padding: 8px 12px; }
.sim-status { font-weight: 800; font-size: 13px; padding: 5px 12px; border-radius: 999px; background: #E4E4E4; }
.sim-status.rodando { background: var(--green); color: var(--white); }
.sim-status.erro { background: #C40036; color: var(--white); }
.sim-status.ok { background: var(--yellow); }

.sim-grade { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.sim-editor { display: grid; gap: 12px; min-width: 0; }
.editor {
  display: grid; grid-template-columns: auto minmax(0, 1fr); height: min(62vh, 620px); min-height: 320px;
  border: 3px solid var(--black); border-radius: 16px; overflow: hidden; background: #1E1F24; box-shadow: 6px 6px 0 var(--black);
}
.editor-linhas {
  margin: 0; padding: 14px 8px 14px 12px; color: #6E7280; background: #18191D; text-align: right; user-select: none; overflow: hidden;
  font: 14px/1.55 Consolas, 'Courier New', monospace; min-width: 44px;
}
#codigo {
  border: none; resize: none; outline: none; background: transparent; color: #F2F2F2; padding: 14px; margin: 0;
  font: 14px/1.55 Consolas, 'Courier New', monospace; white-space: pre; overflow: auto; tab-size: 4; caret-color: var(--yellow);
}
.sim-erro { background: #FFE6EC; border: 2px solid #C40036; color: #8A0026; border-radius: 12px; padding: 10px 14px; font-weight: 700; white-space: pre-wrap; }
.sim-console { border: 3px solid var(--black); border-radius: 16px; overflow: hidden; background: var(--white); }
.sim-console-topo { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-bottom: 2px solid var(--black); }
.serial { margin: 0; height: 170px; overflow: auto; padding: 10px 12px; background: #0F1A12; color: #7CF29A; font: 13.5px/1.45 Consolas, 'Courier New', monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.serial-enviar { display: flex; gap: 8px; padding: 8px; border-top: 2px solid var(--black); }
.serial-enviar input { flex: 1; min-width: 0; border: 2px solid #CCC; border-radius: 999px; padding: 7px 12px; font-family: inherit; }

.sim-placa { background: #0E5A3A; border: 3px solid var(--black); border-radius: 18px; box-shadow: 6px 6px 0 var(--black); padding: 14px; color: var(--white); min-width: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1.5px, transparent 1.5px); background-size: 14px 14px; }
.sim-placa h2 { margin: 0 0 10px; font-size: 17px; }
.sim-placa h2 small { font-weight: 600; opacity: .7; }
.componentes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.comp { background: var(--white); color: var(--black); border: 2px solid var(--black); border-radius: 14px; padding: 10px; display: grid; justify-items: center; gap: 6px; align-content: start; }
.comp-nome { font-weight: 900; font-size: 13px; text-align: center; }
.comp-nome small { display: block; font-weight: 700; color: #666; font-size: 12px; }
.comp-valor { font-size: 12px; color: #444; font-weight: 700; text-align: center; }
.comp input[type="range"] { width: 100%; accent-color: var(--roxo); }
.comp-leds, .comp-lcd { grid-column: span 2; }
.leds { display: flex; gap: 18px; }
.led-wrap { display: grid; justify-items: center; gap: 4px; font-size: 12px; font-weight: 800; }
.led { width: 30px; height: 30px; border-radius: 50% 50% 45% 45%; border: 2px solid var(--black); opacity: .25; transition: opacity .05s; }
.led-vermelho { background: #FF2A2A; --cor: 255, 42, 42; }
.led-amarelo { background: #FFD000; --cor: 255, 208, 0; }
.led-verde { background: #22D35B; --cor: 34, 211, 91; }
.led.aceso { box-shadow: 0 0 calc(6px + 18px * var(--brilho)) calc(2px + 6px * var(--brilho)) rgba(var(--cor), calc(.3 + .6 * var(--brilho))); }
.buzzer { width: 46px; height: 46px; border-radius: 50%; background: var(--black); display: grid; place-items: center; font-size: 20px; }
.buzzer.tocando { animation: vibrar .12s linear infinite; box-shadow: 0 0 0 6px rgba(255, 222, 23, .5); }
@keyframes vibrar { 50% { transform: translateX(1.5px) rotate(4deg); } }
.servo { width: 110px; height: 74px; }
.motor { width: 70px; height: 70px; }
.lcd {
  font: 15px/1.25 Consolas, 'Courier New', monospace; background: #8BC34A; color: #1B2A0B; border: 4px solid #1B2A0B; border-radius: 6px;
  padding: 6px 8px; white-space: pre; min-height: 50px; width: 100%; max-width: 230px; letter-spacing: 1px; overflow: hidden;
}
.lcd.apagado { background: #4C6B2A; color: #2E4318; }
.botao-fisico {
  width: 76px; height: 76px; border-radius: 50%; border: 3px solid var(--black); background: var(--pink); color: var(--white);
  font-weight: 900; font-size: 12px; cursor: pointer; box-shadow: 0 6px 0 #8A0026; touch-action: none; user-select: none; font-family: inherit;
}
.botao-fisico.apertado { transform: translateY(5px); box-shadow: 0 1px 0 #8A0026; }
.btn-pir { border: 2px solid var(--black); border-radius: 999px; padding: 10px 12px; font-weight: 800; cursor: pointer; background: var(--white); font-family: inherit; }
.btn-pir.ativo { background: var(--yellow); }
.mapa-pinos { margin-top: 12px; background: rgba(0, 0, 0, .25); border-radius: 12px; padding: 8px 12px; }
.mapa-pinos summary { cursor: pointer; font-weight: 800; }
.mapa-pinos table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; }
.mapa-pinos td, .mapa-pinos th { padding: 4px 6px; border-bottom: 1px solid rgba(255, 255, 255, .2); text-align: left; }
@media (max-width: 980px) { .sim-grade { grid-template-columns: 1fr; } .editor { height: 46vh; } }
@media (max-width: 420px) { .comp-leds, .comp-lcd { grid-column: auto; } .leds { gap: 10px; } }

/* =====================================================================
   Certificado
   ===================================================================== */
.pagina-certificado { background: #DADADA; padding: 20px; }
.certificado-acoes { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 18px; }
.certificado-acoes a { text-decoration: none; }
.certificado-msg { text-align: center; font-weight: 700; }
.certificado {
  position: relative; max-width: 1000px; aspect-ratio: 297 / 210; margin: 0 auto; background: var(--white); border: 4px solid var(--black);
  padding: 4.5% 7%; display: flex; flex-direction: column; align-items: center; text-align: center; overflow: hidden;
}
.cert-faixa { position: absolute; inset: 0 0 auto 0; height: 14px; background: linear-gradient(90deg, var(--blue) 0 20%, var(--pink) 20% 40%, var(--orange) 40% 60%, var(--green) 60% 80%, var(--yellow) 80%); }
.cert-topo { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 2%; }
.cert-rotulo { font-weight: 900; letter-spacing: 4px; color: var(--roxo); margin: 0 0 2%; font-size: clamp(13px, 2vw, 20px); }
.cert-texto { margin: 0.6% 0; font-size: clamp(13px, 1.8vw, 18px); color: #333; }
.cert-nome { font-size: clamp(26px, 5vw, 50px); margin: 1% 0; border-bottom: 3px solid var(--black); padding: 0 4% 1%; }
.cert-modulo { font-size: clamp(18px, 3vw, 30px); margin: 1% 0; color: var(--roxo); }
.cert-rodape { margin-top: auto; width: 100%; display: flex; justify-content: space-between; align-items: flex-end; font-size: clamp(11px, 1.4vw, 14px); text-align: left; }
.cert-codigo { text-align: right; }
@media print {
  @page { size: A4 landscape; margin: 0; }
  .pagina-certificado { background: none; padding: 0; }
  .certificado-acoes, .certificado-msg { display: none !important; }
  .certificado { border: none; width: 297mm; height: 210mm; max-width: none; aspect-ratio: auto; }
  .cert-faixa { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.componentes { grid-auto-flow: dense; }

/* Lab: oferta de pré-venda / em breve */
.lab-oferta { border: 3px solid var(--black); border-radius: 16px; padding: 14px 16px; margin: 4px 0 14px; background: var(--yellow); box-shadow: 4px 4px 0 var(--black); }
.lab-oferta p { margin: 4px 0; }
.lab-oferta.em-breve { background: var(--roxo-claro); }
.lab-oferta.garantida { background: #DFF6E5; }
.oferta-faixa { display: inline-block; background: var(--black); color: var(--yellow); font-weight: 900; font-size: 12px; letter-spacing: .5px; padding: 4px 10px; border-radius: 999px; margin-bottom: 6px; }
.oferta-titulo { font-weight: 800; font-size: 15px; }
.oferta-preco { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.oferta-preco s { color: #555; font-weight: 700; font-size: 18px; }
.oferta-preco strong { font-size: 32px; line-height: 1.1; }
.oferta-detalhe { font-size: 13.5px; color: #333; }

/* ==========================================================================
   Novidades do Lab (atualizações trimestrais)
   ========================================================================== */
.lab-novidades {
  background: var(--white); border: 3px solid var(--black); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--black);
  padding: 14px 20px; margin-bottom: 22px;
}
.lab-novidades.com-novidade { background: var(--roxo-claro); box-shadow: 6px 6px 0 var(--roxo); }
.lab-novidades h2 { margin: 8px 0 6px; font-size: 20px; }
.novidades-faixa { display: inline-block; background: var(--roxo); color: var(--white); font-weight: 800; font-size: 13px; padding: 4px 12px; border-radius: 999px; }
.novidades-itens { margin: 6px 0 4px; padding-left: 0; list-style: none; display: grid; gap: 4px; }
.novidades-itens li::before { content: '✅ '; }
.novidades-rodape { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; align-items: center; font-size: 14px; color: #444; }
.lab-novidades.com-novidade .novidades-rodape { margin-top: 10px; padding-top: 10px; border-top: 2px dashed rgba(0, 0, 0, .15); }
.novidades-email { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; cursor: pointer; }
.novidades-email input { width: 18px; height: 18px; accent-color: var(--roxo); }

/* Moderação → Novidades do Lab */
.novidades-situacao { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip-status { display: inline-block; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; border: 2px solid var(--black); background: var(--white); }
.chip-status.alerta { background: #FFE1E1; color: #C40036; border-color: #C40036; }
.chip-status.rascunho { background: #F2F2F2; }
.chip-status.enviando { background: var(--yellow); }
.chip-status.enviado { background: #E1F7E7; color: #147A34; border-color: #147A34; }
.form-novidade, .novidades-previa {
  background: var(--white); border: 3px solid var(--black); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--black);
  padding: 18px 22px; margin-bottom: 22px; max-width: 760px;
}
.form-novidade h2, .novidades-previa h2 { margin: 0 0 12px; font-size: 20px; }
.previa-topo { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.previa-topo h2 { margin: 0; }
.previa-acoes { display: flex; flex-wrap: wrap; gap: 8px; }
#previa-frame { width: 100%; height: 760px; border: 2px solid #ddd; border-radius: 12px; background: #EDEDED; }
.lista-novidades { grid-template-columns: 1fr; max-width: 760px; gap: 10px; padding-left: 0; list-style: none; }
.item-novidade {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--white); border: 2px solid var(--black); border-radius: 14px; padding: 12px 16px;
}
.item-novidade-texto { display: grid; gap: 6px; min-width: 0; justify-items: start; }
.item-novidade-texto strong { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .form-novidade, .novidades-previa { padding: 14px; }
  #previa-frame { height: 620px; }
}

/* Aviso de privacidade no cadastro e no login */
.aviso-lgpd { font-size: 13px; color: #555; line-height: 1.45; margin: 4px 0 14px; text-align: center; }
.aviso-lgpd a { color: var(--blue); font-weight: 700; }
#form-cadastro .aviso-lgpd { grid-column: 1 / -1; }

/* ==========================================================================
   Moderação → Sistema (monitor)
   ========================================================================== */
.sistema-topo { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sistema-geral { font-size: 20px; font-weight: 800; padding: 10px 18px; border: 3px solid var(--black); border-radius: 999px; background: var(--white); }
.sistema-geral.ok { background: #E1F7E7; }
.sistema-geral.atencao { background: #FFF6C2; }
.sistema-geral.falha { background: #FFE1E1; }
.sistema-itens { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.sistema-item { background: var(--white); border: 2px solid var(--black); border-left-width: 8px; border-radius: 14px; padding: 12px 16px; }
.sistema-item.ok { border-left-color: var(--green); }
.sistema-item.atencao { border-left-color: var(--yellow); }
.sistema-item.falha { border-left-color: var(--pink); }
.sistema-item p { margin: 6px 0 0; color: #444; font-size: 14px; overflow-wrap: anywhere; }
.sistema-item-topo { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.sistema-chip { font-size: 13px; font-weight: 700; white-space: nowrap; }

/* ==========================================================================
   Acessibilidade (WCAG 2.2 AA)
   ========================================================================== */
/* Pular direto para o conteúdo (primeira parada do Tab) */
.skip { position: absolute; left: 12px; top: -80px; z-index: 200; background: var(--black); color: var(--white); padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 10px; }
main:focus { outline: none; }
/* Links do menu com área de toque de pelo menos 24 px */
.topbar nav a { display: inline-flex; align-items: center; min-height: 28px; padding-block: 4px; }
/* Campos: foco bem visível, não só a cor da borda */
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; box-shadow: 0 0 0 5px rgba(26, 98, 229, .18); }
/* Quem pede menos movimento no sistema não vê animações nem transições longas */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.dica-teclado { margin: 6px 0 0; font-size: 13px; color: #555; }

/* Termos de assinatura do Lab */
.termos { max-width: 760px; line-height: 1.6; }
.termos h1 { font-size: clamp(28px, 4vw, 38px); margin: 8px 0 6px; }
.termos h2 { font-size: 20px; margin: 28px 0 8px; }
.termos ul { padding-left: 1.2em; display: grid; gap: 6px; }
.termos a { color: var(--blue); font-weight: 700; }
.termos-data { color: #555; }
.lab-aceite { font-size: 13px; color: #444; line-height: 1.5; margin: 12px 0 4px; }
.lab-aceite a { color: var(--blue); font-weight: 700; }

/* Aceites no cadastro */
.aceites { border: 0; padding: 0; margin: 4px 0 14px; display: grid; gap: 10px; }
.aceite { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; cursor: pointer; }
.aceite input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--pink); }
.aceite a { color: var(--blue); font-weight: 700; }
#form-cadastro .aceites { grid-column: 1 / -1; }
#form-cadastro .idade { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
#form-cadastro .idade legend { font-weight: 700; font-size: 13px; margin-bottom: 8px; padding: 0; }
#form-cadastro .idade .aceite { border: 2px solid #ccc; border-radius: 12px; padding: 11px 14px; font-weight: 700; align-items: center; }
#form-cadastro .idade .aceite input { margin: 0; }
#form-cadastro .idade .aceite:has(input:checked) { border-color: var(--black); background: var(--yellow); }
#form-cadastro .responsavel { grid-column: 1 / -1; }
.responsavel small, .reenviar-responsavel small { display: block; margin-top: 6px; font-size: 13px; color: #444; line-height: 1.4; }
.reenviar-responsavel { margin-top: 14px; padding: 14px; border: 2px dashed #999; border-radius: 12px; }
.reenviar-responsavel p { margin: 0 0 10px; font-size: 14px; line-height: 1.45; }
.autorizar-botoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.autorizar-lista { padding-left: 20px; line-height: 1.5; }
/* Alvos de toque de pelo menos 24 px (WCAG 2.2) */
button, summary { min-height: 24px; }
.link-grupo, .sim-voltar, .fixada-texto { display: inline-flex; align-items: center; min-height: 24px; }
.filtros input[type="checkbox"], .filtros input[type="radio"] { width: 20px; height: 20px; }

/* =====================================================================
   Inscrições em eventos (BuzzLine etc.)
   ===================================================================== */
.btn-inscrever {
  display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--black); border-radius: 999px;
  padding: 8px 14px; font-weight: 800; font-size: 13.5px; cursor: pointer; font-family: inherit;
  background: var(--pink); color: var(--white); box-shadow: 3px 3px 0 var(--black);
}
.btn-inscrever.ativo { background: var(--green); }
.insc-encerrada { font-size: 13px; font-weight: 700; color: #555; }
.insc-evento { margin: 0 0 12px; font-weight: 700; color: #444; }
.insc-sobre { border: 2px solid #ddd; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; }
.insc-sobre summary { cursor: pointer; font-weight: 800; }
.insc-descricao { white-space: pre-wrap; line-height: 1.55; font-size: 14.5px; margin-top: 10px; overflow-wrap: anywhere; }
.insc-descricao a { color: var(--blue); font-weight: 700; }
.insc-menor { background: #FFF4D6; border: 2px solid #E8B100; border-radius: 12px; padding: 10px 14px; font-size: 14px; line-height: 1.45; }
.insc-menor a { color: var(--blue); font-weight: 800; }
.insc-regras { margin: 0 0 12px; }
.insc-regras a.btn-mod { color: var(--black); }
.insc-sem-projeto { margin: 6px 0 0; }
.escolha-lista { display: grid; gap: 10px; margin-top: 12px; }
.escolha-opcao {
  display: grid; gap: 4px; text-align: left; width: 100%; padding: 14px 16px; cursor: pointer; font-family: inherit;
  border: 2px solid var(--black); border-radius: 14px; background: var(--white); color: var(--black); box-shadow: 3px 3px 0 var(--black);
}
.escolha-opcao b { font-size: 17px; }
.escolha-opcao span { font-size: 13.5px; color: #444; }
.escolha-opcao:hover, .escolha-opcao:focus-visible { background: #FFF7C2; }
.escolha-opcao.feita { border-color: var(--green); }
.insc-fechada { background: #EDEDED; border-radius: 12px; padding: 10px 14px; font-weight: 700; }
.insc-minhas { margin-bottom: 16px; }
.insc-minhas h3, #form-inscricao h3, #form-editor-inscricao h3 { margin: 14px 0 8px; font-size: 17px; }
.insc-minha, .insc-item { border: 2px solid var(--black); border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; background: var(--white); }
.insc-minha summary, .insc-item summary { cursor: pointer; font-weight: 700; overflow-wrap: anywhere; }
.insc-item.cancelada { opacity: .6; }
.insc-meta { font-weight: 500; color: #555; }
.insc-minha dl, .insc-item dl { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 6px 12px; margin: 12px 0; font-size: 14px; }
.insc-minha dt, .insc-item dt { color: #555; font-weight: 700; }
.insc-minha dd, .insc-item dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.insc-opcoes { border: none; padding: 0; margin: 0 0 16px; }
.insc-opcoes legend { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.obrigatorio-ast { color: #C40036; }
.lista-acoes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.lista-acoes a.btn-mod { text-decoration: none; color: var(--black); }
.ed-modelos { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ed-campos { display: grid; gap: 12px; margin-bottom: 12px; }
.ed-campo { border: 2px solid #ccc; border-radius: 12px; padding: 12px; display: grid; gap: 8px; background: #FAFAFA; }
.ed-campo input[type="text"], .ed-campo select, .ed-campo textarea {
  width: 100%; padding: 9px 12px; border-radius: 10px; border: 2px solid #ccc; font: inherit; font-size: 14px; background: var(--white);
}
.ed-linha1 { display: grid; grid-template-columns: 1fr 210px; gap: 8px; }
.ed-linha2 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ed-linha2 .ed-preencher { width: auto; }
.ed-botoes { margin-left: auto; display: flex; gap: 6px; }
.rotulo-falso { display: block; font-weight: 700; font-size: 13px; margin-bottom: 6px; }
@media (max-width: 640px) {
  .ed-linha1 { grid-template-columns: 1fr; }
  .insc-minha dl, .insc-item dl { grid-template-columns: 1fr; }
}
