/* Portal NAE — identidade do Núcleo de Ações Estratégicas (verde + dourado do logo).
   Os dois sistemas mantêm o próprio visual (azul/teal); aqui só a porta de entrada. */
:root {
  --verde-900: #06331f;
  --verde-800: #0b4a30;
  --verde-700: #0f5f3d;
  --verde-600: #157a4f;
  --verde-100: #e3f1e9;
  --verde-50: #f2f8f4;
  --ouro: #f2b705;
  --ouro-claro: #fff3cc;
  --ouro-texto: #7a5a00;

  --aud: #0e8a8a;          /* Auditorias (teal do sistema) */
  --aud-bg: #e2f4f4;
  --nc: #1565a0;           /* Notificações (azul do sistema) */
  --nc-bg: #e4eff8;

  --bg: #f3f6f4;
  --card: #ffffff;
  --texto: #17261e;
  --muted: #56655c;
  --borda: #dbe5df;
  --grade: #e8eeea;

  --ok: #1e8e5a;   --ok-bg: #e6f5ed;
  --alerta: #b7700c; --alerta-bg: #fdf3e1;
  --erro: #c0392b; --erro-bg: #fdecea;

  --sombra: 0 1px 2px rgba(6,51,31,.06), 0 8px 24px rgba(6,51,31,.07);
  --sombra-forte: 0 2px 4px rgba(6,51,31,.08), 0 16px 40px rgba(6,51,31,.14);
  --raio: 14px;
  font-size: 16px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* estilos com display não podem reexibir o que está escondido */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--texto); background: var(--bg); line-height: 1.5;
}
a { color: var(--verde-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .9em;
       background: var(--verde-50); border: 1px solid var(--borda); border-radius: 5px; padding: .05rem .3rem; }
:focus-visible { outline: 3px solid var(--ouro); outline-offset: 2px; border-radius: 6px; }

.ic { width: 18px; height: 18px; flex: 0 0 auto; vertical-align: -3px; }
.ic-lg { width: 26px; height: 26px; }

/* ---- Botões ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font: inherit; font-weight: 600; font-size: .95rem; line-height: 1;
  padding: .7rem 1.1rem; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: background .15s, box-shadow .15s, transform .15s;
}
.btn:hover { text-decoration: none; }
.btn.primario { background: var(--verde-700); color: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.btn.primario:hover { background: var(--verde-800); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(11,74,48,.25); }
.btn.primario .ic { transition: transform .15s; }
.btn.primario:hover .ic { transform: translateX(3px); }
.btn.grande { width: 100%; padding: .9rem 1.2rem; font-size: 1.02rem; }
.btn.sm { padding: .45rem .75rem; font-size: .85rem; border-radius: 8px; }
.btn.fantasma { background: transparent; color: var(--verde-700); border-color: var(--borda); }
.btn.fantasma:hover { background: var(--verde-50); }
.btn.claro { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }
.btn.claro:hover { background: rgba(255,255,255,.22); }

/* ---- Alertas ---- */
.alerta {
  display: flex; gap: .6rem; align-items: flex-start;
  padding: .75rem .9rem; border-radius: 10px; margin: 0 0 1rem; font-size: .93rem;
  border: 1px solid transparent;
}
.alerta .ic { margin-top: 1px; }
.alerta.erro { background: var(--erro-bg); color: #8e2a1f; border-color: #f5c9c3; }
.alerta.info { background: var(--verde-100); color: var(--verde-800); border-color: #c6e2d2; }
.alerta.dica { background: var(--ouro-claro); color: var(--ouro-texto); border-color: #f5dd8a; }

/* =================================================================
   Login
   ================================================================= */
.login { flex: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.login-marca {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1200px 600px at 110% -10%, rgba(242,183,5,.18), transparent 60%),
    radial-gradient(900px 700px at -20% 120%, rgba(29,147,97,.35), transparent 60%),
    linear-gradient(150deg, var(--verde-800), var(--verde-900));
  display: grid; place-items: center; padding: 3rem 2rem;
}
.login-marca::after {   /* arco dourado, eco do círculo do logo */
  content: ""; position: absolute; width: 780px; height: 780px; border-radius: 50%;
  border: 2px solid rgba(242,183,5,.28); left: 50%; top: 50%; transform: translate(-50%, -52%);
  pointer-events: none;
}
.login-marca-conteudo { position: relative; z-index: 1; text-align: center; max-width: 440px; }
.login-logo-moldura {
  width: min(340px, 70vw); aspect-ratio: 1; margin: 0 auto; border-radius: 50%;
  background: #fff; padding: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.35), 0 0 0 8px rgba(255,255,255,.08);
}
.login-logo { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; display: block; }
.login-lema { margin: 1.6rem 0 1.2rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: .82rem; }
.login-lema span { color: var(--ouro); margin: 0 .35rem; }
.login-sistemas { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; justify-items: center; }
.login-sistemas li {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  padding: .45rem .9rem; border-radius: 999px;
}
.login-sistemas .ic { color: var(--ouro); }

.login-lado { display: flex; flex-direction: column; justify-content: center; padding: 3rem clamp(1.25rem, 5vw, 4.5rem) 1.5rem; background: var(--bg); }
.login-caixa { width: 100%; max-width: 420px; margin: auto; }
.sobretitulo { margin: 0 0 .5rem; color: var(--verde-600); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.login-caixa h1 { font-size: 2.1rem; letter-spacing: -.01em; }
.login-caixa .sub { color: var(--muted); margin: .4rem 0 1.6rem; }
.form-login { display: grid; gap: 1.1rem; margin-top: .4rem; }
.campo label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.campo input {
  width: 100%; font: inherit; font-size: 1rem; padding: .78rem .9rem; border-radius: 10px;
  border: 1px solid #c9d6cf; background: #fff; color: var(--texto); transition: border-color .15s, box-shadow .15s;
}
.campo input:focus { outline: none; border-color: var(--verde-600); box-shadow: 0 0 0 4px rgba(21,122,79,.15); }
.ajuda { margin: .4rem 0 0; font-size: .82rem; color: var(--muted); }
.login-rodape { text-align: center; color: var(--muted); font-size: .8rem; margin-top: 2rem; }

/* =================================================================
   Topo (área logada)
   ================================================================= */
.topo {
  background: linear-gradient(100deg, var(--verde-900), var(--verde-700));
  color: #fff; box-shadow: var(--sombra); position: sticky; top: 0; z-index: 20;
  border-bottom: 3px solid var(--ouro);
}
.topo-wrap { max-width: 1180px; margin: 0 auto; padding: .65rem 1.25rem; display: flex; align-items: center; gap: 1rem; }
.marca { display: flex; align-items: center; gap: .8rem; color: #fff; min-width: 0; }
.marca:hover { text-decoration: none; }
.marca-selo { background: #fff; border-radius: 10px; padding: .3rem .5rem; display: grid; place-items: center; flex: 0 0 auto; }
.marca-selo img { height: 30px; width: auto; display: block; }
.marca-txt { min-width: 0; }
.marca-txt strong { display: block; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.marca-txt span { display: block; font-size: .78rem; opacity: .82; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topo-usuario { margin-left: auto; display: flex; align-items: center; gap: .6rem; flex: 0 0 auto; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ouro); color: var(--verde-900); font-weight: 800; font-size: .82rem;
}
.topo-nome { font-size: .9rem; font-weight: 600; max-width: 16ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* =================================================================
   Tela inicial
   ================================================================= */
.pagina { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 1.8rem 1.25rem 1rem; }
.boas-vindas { margin-bottom: 1.4rem; }
.boas-vindas .data { margin: 0 0 .35rem; color: var(--muted); font-size: .88rem; display: flex; align-items: center; gap: .4rem; }
.boas-vindas h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -.01em; }
.boas-vindas .sub { margin: .3rem 0 0; color: var(--muted); font-size: 1.05rem; }

/* ---- Cartões dos sistemas ---- */
.sistemas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.sistema {
  --cor: var(--aud); --cor-bg: var(--aud-bg);
  position: relative; display: flex; flex-direction: column; gap: 1.1rem;
  background: var(--card); border: 1px solid var(--borda); border-radius: var(--raio);
  padding: 1.35rem 1.4rem 1.3rem; box-shadow: var(--sombra); overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.sistema::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--cor); }
.sistema-notificacoes { --cor: var(--nc); --cor-bg: var(--nc-bg); }
.sistema:not(.sem-acesso):hover { box-shadow: var(--sombra-forte); transform: translateY(-2px); }
.sistema-topo { display: flex; gap: .9rem; align-items: flex-start; }
.sistema-icone {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto;
  background: var(--cor-bg); color: var(--cor);
}
.sistema-titulo { flex: 1; min-width: 0; }
.sistema-titulo h2 { font-size: 1.2rem; }
.sistema-titulo p { margin: .25rem 0 0; color: var(--muted); font-size: .88rem; }
.selo-novo {
  flex: 0 0 auto; background: var(--ouro); color: var(--verde-900); font-weight: 800; font-size: .78rem;
  padding: .3rem .6rem; border-radius: 999px; white-space: nowrap; box-shadow: 0 2px 8px rgba(242,183,5,.35);
}
.sistema-rodape { margin-top: auto; }
.sistema-rodape .btn { width: 100%; padding: .85rem 1rem; background: var(--cor); }
.sistema-rodape .btn:hover { background: var(--cor); filter: brightness(.9); box-shadow: 0 6px 16px rgba(0,0,0,.18); }

.sistema.sem-acesso { background: #fafcfb; box-shadow: none; }
.sistema.sem-acesso::before { background: #c9d4ce; }
.sistema.sem-acesso .sistema-icone { background: #eef2ef; color: #8a978f; }
.sistema-vazio {
  display: flex; gap: .8rem; align-items: flex-start; color: var(--muted); font-size: .9rem;
  background: var(--verde-50); border: 1px dashed #c9d6cf; border-radius: 12px; padding: 1rem;
}
.sistema-vazio p { margin: 0; }
.sistema-vazio strong { color: var(--texto); }

/* Número de destaque + medidor (Auditorias) */
.destaque { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.2rem; align-items: center;
  background: var(--cor-bg); border-radius: 12px; padding: 1rem 1.1rem; }
.destaque-num { display: grid; gap: .15rem; }
.destaque-num .rot { font-size: .8rem; color: var(--muted); font-weight: 600; }
.destaque-num .valor { font-size: 3rem; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.destaque-num .valor small { font-size: 1.4rem; font-weight: 600; margin-left: .1rem; color: var(--muted); }
.destaque-num .valor.vazio { color: #9aa7a0; }
.status { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 700; }
.status .ic { width: 15px; height: 15px; }
.status-ok { color: var(--ok); } .status-alerta { color: var(--alerta); }
.status-erro { color: var(--erro); } .status-vazio { color: var(--muted); }
.status-fundo-ok { background: var(--ok); } .status-fundo-alerta { background: #d98a14; }
.status-fundo-erro { background: var(--erro); } .status-fundo-vazio { background: #9aa7a0; }

.medidor { position: relative; height: 12px; margin: 1.6rem 0 .7rem; }
.medidor-trilho { position: absolute; inset: 0; border-radius: 6px; background: rgba(255,255,255,.9); box-shadow: inset 0 0 0 1px var(--grade); }
.medidor-valor { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; max-width: 100%; }
.medidor-meta { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--texto); border-radius: 1px; }
.medidor-meta span {
  position: absolute; bottom: calc(100% + 3px); left: 50%; transform: translateX(-50%);
  font-size: .72rem; font-weight: 700; color: var(--texto); white-space: nowrap;
}
.delta { margin: 0; font-size: .85rem; font-weight: 700; }
.delta span { font-weight: 500; color: var(--muted); }
.delta.sobe { color: var(--ok); } .delta.desce { color: var(--erro); } .delta.igual { color: var(--muted); }

/* KPIs */
.blocos-kpi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin: 0; }
.kpi { border: 1px solid var(--borda); border-radius: 11px; padding: .7rem .75rem; background: #fff; min-width: 0; }
.kpi dt { font-size: .74rem; color: var(--muted); font-weight: 600; line-height: 1.25; min-height: 2.5em; }
.kpi dt small { font-weight: 500; }
.kpi dd { margin: .3rem 0 0; font-size: 1.55rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi dd small { font-size: .8rem; font-weight: 500; color: var(--muted); }
.kpi-novo { background: var(--ouro-claro); border-color: #f1d98a; }
.kpi-erro { border-color: #f1c3bd; background: var(--erro-bg); }
.kpi-erro dd { color: var(--erro); }
.kpi-alerta { border-color: #f1d8ac; background: var(--alerta-bg); }
.kpi-alerta dd { color: var(--alerta); }

/* Mini visualizações */
.mini h3 { font-size: .84rem; color: var(--muted); font-weight: 700; margin-bottom: .6rem; display: flex; justify-content: space-between; gap: .5rem; }
.mini-total { font-weight: 500; }
.mini-vazio { margin: 0; color: var(--ok); font-size: .88rem; display: flex; gap: .4rem; align-items: center; }

.barras-setor { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.barras-setor li { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) 2.8rem; gap: .6rem; align-items: center; font-size: .86rem; }
.barra-nome { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barra-trilho { height: 10px; border-radius: 5px; background: var(--grade); overflow: hidden; }
.barra { display: block; height: 100%; border-radius: 0 4px 4px 0; }
.barra-nc { background: var(--nc); }
.barra-valor { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

.colunas-dia {
  height: 84px; display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 2px;
  align-items: end; border-bottom: 1px solid #cdd8d1; position: relative;
}
.col { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; cursor: default; outline-offset: 0; }
.col-barra { width: min(100%, 22px); background: #9cc3d9; border-radius: 4px 4px 0 0; transition: background .15s; }
.col.hoje .col-barra { background: var(--nc); }
.col:hover .col-barra, .col:focus .col-barra { background: #0f4f80; }
.col-dica {
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--texto); color: #fff; font-size: .75rem; font-weight: 600; white-space: nowrap;
  padding: .3rem .5rem; border-radius: 6px; pointer-events: none; opacity: 0; transition: opacity .12s; z-index: 2;
}
.col:first-child .col-dica, .col:nth-child(2) .col-dica { left: 0; transform: none; }
.col:last-child .col-dica, .col:nth-last-child(2) .col-dica { left: auto; right: 0; transform: none; }
.col:hover .col-dica, .col:focus .col-dica { opacity: 1; }
.eixo-dias { display: flex; justify-content: space-between; font-size: .74rem; color: var(--muted); margin-top: .3rem; }
.rodape-kpi { margin: -.3rem 0 0; font-size: .84rem; color: var(--muted); }
.rodape-kpi strong { color: var(--texto); }

/* ---- Avisos e pendências ---- */
.colunas { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 1.25rem; margin-top: 1.25rem; align-items: start; }
.bloco { background: var(--card); border: 1px solid var(--borda); border-radius: var(--raio); box-shadow: var(--sombra); padding: 1.1rem 1.2rem; }
.bloco-topo { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .6rem; flex-wrap: wrap; }
.bloco-topo h2 { font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; }
.bloco-topo h2 .ic { color: var(--verde-600); }
.bloco-topo form { margin: 0; }
.contador { background: var(--ouro); color: var(--verde-900); font-size: .74rem; font-weight: 800; padding: .15rem .5rem; border-radius: 999px; }

.lista-avisos { list-style: none; margin: 0; padding: 0; }
.aviso + .aviso { border-top: 1px solid var(--grade); }
.aviso a {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .8rem; align-items: start;
  padding: .75rem .5rem; margin: 0 -.5rem; border-radius: 10px; color: inherit;
}
.aviso a:hover { background: var(--verde-50); text-decoration: none; }
.aviso-icone { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.aviso-icone.tipo-nc { background: var(--nc-bg); color: var(--nc); }
.aviso-icone.tipo-resposta { background: #efe9fb; color: #6541b5; }
.aviso-icone.tipo-auditoria { background: var(--aud-bg); color: var(--aud); }
.aviso-corpo { min-width: 0; display: grid; gap: .1rem; }
.aviso-tipo { font-size: .74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.aviso-titulo { font-weight: 600; font-size: .95rem; }
.aviso-detalhe { color: var(--muted); font-size: .86rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.aviso-meta { display: grid; justify-items: end; gap: .25rem; font-size: .78rem; color: var(--muted); white-space: nowrap; }
.aviso-sistema { border: 1px solid var(--borda); border-radius: 999px; padding: .05rem .5rem; font-size: .72rem; }
.aviso.novo .aviso-titulo::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ouro); box-shadow: 0 0 0 2px var(--card); margin-right: .45rem; vertical-align: 2px;
}
.aviso.novo .aviso-meta time { color: var(--ouro-texto); font-weight: 700; }
.aviso-vazio { color: var(--muted); padding: 1rem 0; }
.etiqueta { text-transform: none; letter-spacing: 0; font-size: .7rem; padding: .05rem .4rem; border-radius: 5px; margin-left: .3rem; }
.etiqueta.etq-erro { background: var(--erro-bg); color: var(--erro); }
.etiqueta.etq-alerta { background: var(--alerta-bg); color: var(--alerta); }

.lista-pendencias { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.pend a {
  display: flex; gap: .65rem; align-items: flex-start; padding: .7rem .75rem; border-radius: 10px;
  border: 1px solid var(--borda); color: var(--texto); background: #fff;
}
.pend a:hover { text-decoration: none; background: var(--verde-50); }
.pend .ic { margin-top: 2px; }
.pend span { display: grid; gap: .1rem; min-width: 0; }
.pend strong { font-size: .9rem; font-weight: 600; }
.pend small { color: var(--muted); font-size: .78rem; }
.pend-sistema { text-transform: uppercase; letter-spacing: .05em; font-weight: 700; font-size: .68rem !important; }
.pend.nivel-erro { border-left: 4px solid var(--erro); }
.pend.nivel-erro .ic { color: var(--erro); }
.pend.nivel-alerta { border-left: 4px solid #d98a14; }
.pend.nivel-alerta .ic { color: var(--alerta); }
.pend.nivel-neutro { border-left: 4px solid var(--aud); }
.pend.nivel-neutro .ic { color: var(--aud); }
.tudo-em-dia { margin: .5rem 0; display: flex; gap: .6rem; align-items: center; color: var(--ok); font-weight: 600; }

.atualizado { color: var(--muted); font-size: .8rem; display: flex; align-items: center; gap: .4rem; justify-content: center; margin: 1.3rem 0 0; }
.atualizado .ic { width: 14px; height: 14px; }
.rodape { text-align: center; color: var(--muted); font-size: .8rem; padding: 1.2rem 1rem 1.6rem; }

/* ---- Página-ponte (entrando em um sistema) ---- */
.pagina-ponte { background: linear-gradient(160deg, var(--verde-50), var(--bg)); }
.ponte { flex: 1; display: grid; place-items: center; padding: 2rem 1rem; }
.ponte-caixa {
  background: var(--card); border: 1px solid var(--borda); border-radius: var(--raio); box-shadow: var(--sombra);
  padding: 2rem 2.2rem; text-align: center; display: grid; gap: .8rem; justify-items: center; max-width: 380px;
}
.ponte-caixa p { margin: 0; font-size: 1.05rem; }
.ponte-icone { width: 56px; height: 56px; border-radius: 14px; background: var(--verde-100); color: var(--verde-700); display: grid; place-items: center; }
.ponte-voltar { font-size: .85rem; }
.carregando { width: 160px; height: 4px; border-radius: 2px; background: var(--grade); overflow: hidden; position: relative; }
.carregando::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 40%; border-radius: 2px; background: var(--verde-600);
  animation: carregando 1s ease-in-out infinite;
}
@keyframes carregando { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* ---- Responsivo ---- */
@media (max-width: 980px) {
  .sistemas, .colunas { grid-template-columns: 1fr; }
  .colunas .pendencias { order: -1; }   /* o que pede ação vem antes da lista de avisos */
}
@media (max-width: 860px) {
  .login { grid-template-columns: 1fr; }
  .login-marca { padding: 2rem 1rem 2.2rem; }
  .login-marca::after { width: 520px; height: 520px; }
  .login-logo-moldura { width: min(210px, 56vw); }
  .login-lema { margin: 1rem 0 .8rem; }
  .login-sistemas { display: none; }
  .login-lado { padding-top: 2rem; }
}
@media (max-width: 620px) {
  .pagina { padding: 1.2rem 1rem .5rem; }
  .topo-wrap { padding: .55rem 1rem; }
  .marca-txt span, .topo-nome, .topo-usuario .btn span { display: none; }
  .marca-txt strong { font-size: .92rem; }
  .sistema { padding: 1.1rem 1rem; }
  .blocos-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .destaque { grid-template-columns: 1fr; gap: .4rem; }
  .barras-setor li { grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr) 2.6rem; }
  .aviso a { grid-template-columns: auto minmax(0, 1fr); }
  .aviso-meta { grid-column: 2; justify-items: start; grid-auto-flow: column; justify-content: start; }
  .bloco { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* =================================================================
   Navegação do topo (todas as telas logadas)
   ================================================================= */
.topo-nav { display: flex; gap: .2rem; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.topo-nav::-webkit-scrollbar { display: none; }
.topo-nav a {
  display: inline-flex; align-items: center; gap: .4rem; color: #fff; white-space: nowrap;
  padding: .45rem .7rem; border-radius: 9px; font-size: .88rem; font-weight: 600; opacity: .88;
}
.topo-nav a:hover { background: rgba(255,255,255,.13); text-decoration: none; opacity: 1; }
.topo-nav a.ativo { background: rgba(255,255,255,.2); opacity: 1; box-shadow: inset 0 -2px 0 var(--ouro); }
.topo-nav .ic { width: 17px; height: 17px; }
.topo-nav + .topo-usuario { margin-left: .4rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Atalhos da tela inicial ---- */
.atalhos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; margin-bottom: 1.25rem; }
.atalho {
  --cor: var(--verde-700); --cor-bg: var(--verde-100);
  display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; border-radius: 14px;
  background: var(--card); border: 1px solid var(--borda); box-shadow: var(--sombra); color: var(--texto);
  transition: transform .15s, box-shadow .15s, border-color .15s; position: relative;
}
.atalho:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--sombra-forte); border-color: var(--cor); }
.atalho-nc { --cor: var(--nc); --cor-bg: var(--nc-bg); }
.atalho-aud { --cor: var(--aud); --cor-bg: var(--aud-bg); }
.atalho-anot { --cor: var(--verde-700); --cor-bg: var(--verde-100); }
.atalho-kz { --cor: #6b46c1; --cor-bg: #efe9fb; }
.atalho-icone { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--cor-bg); color: var(--cor); flex: 0 0 auto; }
.atalho-txt { display: grid; min-width: 0; }
.atalho-txt strong { font-size: 1.02rem; }
.atalho-txt small { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atalho-seta { margin-left: auto; color: var(--cor); opacity: .5; transition: opacity .15s, transform .15s; }
.atalho:hover .atalho-seta { opacity: 1; transform: translateX(3px); }
.atalho.tem-novo::after { content: ""; position: absolute; top: 10px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--ouro); box-shadow: 0 0 0 2px var(--card); }

/* =================================================================
   Anotações
   ================================================================= */
.cabecalho-pagina { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.cabecalho-pagina h1 { font-size: 1.8rem; display: flex; align-items: center; gap: .5rem; }
.cabecalho-pagina h1 .ic { color: var(--verde-600); }
.cabecalho-pagina .sub { margin: .3rem 0 0; color: var(--muted); }
.cab-acoes { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.pagina-estreita { max-width: 820px; }
.pagina-estreita h1 { font-size: 1.6rem; margin: .4rem 0 1rem; }
.voltar { display: inline-flex; align-items: center; gap: .35rem; font-size: .9rem; font-weight: 600; }
.rodape-edicao { color: var(--muted); font-size: .82rem; text-align: center; }

.anot-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.25rem; align-items: start; }
.anot-lateral { display: grid; gap: 1rem; position: sticky; top: 84px; }
.anot-lateral h2 { font-size: .98rem; display: flex; align-items: center; gap: .45rem; margin-bottom: .6rem; }
.anot-lateral h2 .ic { color: var(--verde-600); }
.rel-link { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .7rem .8rem; border-radius: 10px;
  border: 1px solid var(--borda); margin-bottom: .5rem; color: var(--texto); background: var(--verde-50); }
.rel-link:hover { text-decoration: none; border-color: var(--verde-600); }
.rel-link span { display: grid; }
.rel-link small { color: var(--muted); font-size: .8rem; }
.rel-nota { margin: .4rem 0 0; font-size: .8rem; color: var(--muted); }
.contagem-tipos { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.contagem-tipos li { display: flex; justify-content: space-between; align-items: center; font-size: .9rem; padding: .3rem 0; border-bottom: 1px solid var(--grade); }
.contagem-tipos li:last-child { border-bottom: 0; }
.contagem-tipos span { display: inline-flex; align-items: center; gap: .45rem; }
.dicas ul { margin: 0; padding-left: 1.1rem; font-size: .85rem; color: var(--muted); display: grid; gap: .4rem; }
.dicas strong { color: var(--texto); }

/* Cores por tipo */
.tipo-acao { --t: var(--ok); --t-bg: var(--ok-bg); }
.tipo-planejamento { --t: var(--nc); --t-bg: var(--nc-bg); }
.tipo-ideia { --t: #a36b00; --t-bg: var(--ouro-claro); }
.tipo-kaizen { --t: #6b46c1; --t-bg: #efe9fb; }
.contagem-tipos li .ic { color: var(--t); }

/* Compositor */
.compositor { margin-bottom: 1rem; padding: 0; }
.compositor > summary {
  list-style: none; cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; font-size: 1.02rem;
  display: flex; align-items: center; gap: .5rem; color: var(--verde-700);
}
.compositor > summary::-webkit-details-marker { display: none; }
.compositor[open] > summary { border-bottom: 1px solid var(--grade); }
.compositor .form-anot { padding: 1.1rem 1.2rem 1.2rem; }
.form-anot { display: grid; gap: 1rem; }
.form-anot textarea, .form-anot select {
  width: 100%; font: inherit; font-size: 1rem; padding: .7rem .85rem; border-radius: 10px; border: 1px solid #c9d6cf;
  background: #fff; color: var(--texto); resize: vertical;
}
.form-anot textarea:focus, .form-anot select:focus { outline: none; border-color: var(--verde-600); box-shadow: 0 0 0 4px rgba(21,122,79,.15); }
.campo small { font-weight: 400; color: var(--muted); }
.tipos { border: 0; margin: 0; padding: 0; }
.tipos legend, .rel legend { font-weight: 600; font-size: .9rem; margin-bottom: .45rem; padding: 0; }
.tipos-opcoes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.tipo { position: relative; }
.tipo input { position: absolute; opacity: 0; pointer-events: none; }
.tipo span {
  display: flex; align-items: center; justify-content: center; gap: .4rem; text-align: center;
  padding: .7rem .5rem; border-radius: 11px; border: 1.5px solid var(--borda); background: #fff; cursor: pointer;
  font-weight: 600; font-size: .9rem; color: var(--muted); transition: all .15s;
}
.tipo span .ic { color: var(--t); }
.tipo:hover span { border-color: var(--t); }
.tipo input:checked + span { border-color: var(--t); background: var(--t-bg); color: var(--texto); box-shadow: inset 0 0 0 1px var(--t); }
.tipo input:focus-visible + span { outline: 3px solid var(--ouro); outline-offset: 2px; }
.linha-campos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.kz-campos { display: none; gap: .8rem; padding: .9rem; border-radius: 12px; background: #f6f2fd; border: 1px solid #e2d8f6; }
.form-anot[data-tipo="kaizen"] .kz-campos { display: grid; }
.form-anot:not([data-tipo="kaizen"]):not([data-tipo="planejamento"]) .campo-resp { visibility: hidden; }
.segmentado { display: inline-flex; border: 1px solid var(--borda); border-radius: 10px; overflow: hidden; background: #fff; }
.segmentado label { position: relative; }
.segmentado input { position: absolute; opacity: 0; }
.segmentado span { display: block; padding: .5rem .9rem; font-size: .88rem; font-weight: 600; color: var(--muted); cursor: pointer; border-right: 1px solid var(--borda); }
.segmentado label:last-child span { border-right: 0; }
.segmentado input:checked + span { background: #6b46c1; color: #fff; }
.segmentado input:focus-visible + span { outline: 3px solid var(--ouro); outline-offset: -3px; }

/* Anexos */
.dropzone {
  position: relative; display: flex; align-items: center; gap: .8rem; padding: 1rem; border-radius: 12px;
  border: 1.5px dashed #b9cbc1; background: var(--verde-50); cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.arrastando { border-color: var(--verde-600); background: var(--verde-100); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dz-icone { color: var(--verde-600); }
.dz-txt { display: grid; }
.dz-txt small { color: var(--muted); font-size: .8rem; }
.previa-arquivos, .anexos-atuais { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .4rem; }
.previa-arquivos:empty { display: none; }
.previa-arquivos li, .anexos-atuais label {
  display: flex; align-items: center; gap: .6rem; padding: .4rem .5rem; border: 1px solid var(--borda); border-radius: 10px; background: #fff; font-size: .88rem;
}
.previa-arquivos img, .anexos-atuais img { width: 44px; height: 44px; object-fit: cover; border-radius: 7px; flex: 0 0 auto; }
.arq-ic { width: 44px; height: 44px; border-radius: 7px; display: grid; place-items: center; background: var(--verde-50); color: var(--verde-600); flex: 0 0 auto; }
.arq-nome { flex: 1; min-width: 0; display: grid; overflow: hidden; }
.arq-nome small { color: var(--muted); }
.previa-arquivos button { margin-left: auto; }
.anexos-atuais-rot { margin: 0; font-weight: 600; font-size: .9rem; }
.anexos-atuais label { cursor: pointer; }
.anexos-atuais input { accent-color: var(--erro); }
.arq-remover { color: #b0bdb5; }
.anexos-atuais label:has(input:checked) { border-color: var(--erro); background: var(--erro-bg); }
.anexos-atuais label:has(input:checked) .arq-nome { text-decoration: line-through; }
.anexos-atuais label:has(input:checked) .arq-remover { color: var(--erro); }

.rodape-form { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; padding-top: .3rem; border-top: 1px solid var(--grade); }
.rel { border: 0; margin: 0; padding: .6rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; }
.rel legend { float: left; width: 100%; }
.chk { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; cursor: pointer; }
.chk input { width: 18px; height: 18px; accent-color: var(--verde-600); }
.rel-dica { color: var(--muted); font-size: .8rem; }

/* Filtros */
.filtros { margin: 0 0 1rem; display: grid; gap: .6rem; }
.abas { display: flex; gap: .35rem; flex-wrap: wrap; }
.abas a { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--borda);
  background: #fff; color: var(--muted); font-size: .86rem; font-weight: 600; }
.abas a .ic { width: 15px; height: 15px; }
.abas a:hover { text-decoration: none; border-color: var(--verde-600); color: var(--texto); }
.abas a.on { background: var(--verde-700); border-color: var(--verde-700); color: #fff; }
.filtros-linha { display: flex; gap: .5rem; flex-wrap: wrap; }
.filtros-linha select { font: inherit; font-size: .88rem; padding: .45rem .6rem; border-radius: 9px; border: 1px solid var(--borda); background: #fff; }
.busca { flex: 1; min-width: 200px; display: flex; align-items: center; gap: .4rem; padding: 0 .7rem; border-radius: 9px; border: 1px solid var(--borda); background: #fff; color: var(--muted); }
.busca input { border: 0; outline: 0; font: inherit; font-size: .9rem; padding: .5rem 0; width: 100%; background: transparent; color: var(--texto); }
.busca:focus-within { border-color: var(--verde-600); box-shadow: 0 0 0 3px rgba(21,122,79,.12); }

/* Linha do tempo */
.semana { margin-bottom: 1.4rem; }
.semana-cab { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; font-size: 1.1rem; padding: .3rem 0; border-bottom: 2px solid var(--verde-700); margin-bottom: .6rem; }
.semana-cab small { color: var(--muted); font-weight: 500; font-size: .85rem; }
.semana-rel { margin-left: auto; font-size: .8rem; font-weight: 600; display: inline-flex; align-items: center; gap: .3rem; }
.semana-rel .ic { width: 15px; height: 15px; }
.dia { margin-bottom: .6rem; }
.dia-cab { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: .7rem 0 .45rem; }

.anot {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .9rem; padding: 1rem 1.1rem; margin-bottom: .6rem;
  background: var(--card); border: 1px solid var(--borda); border-left: 4px solid var(--t); border-radius: 12px; box-shadow: var(--sombra);
  scroll-margin-top: 90px;
}
.anot:target { box-shadow: 0 0 0 3px var(--ouro), var(--sombra); }
.anot-icone { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--t-bg); color: var(--t); }
.anot-tipo { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--t); display: inline-flex; gap: .4rem; align-items: center; }
.anot-cab h3 { font-size: 1.05rem; margin: .15rem 0 .2rem; }
.anot-meta { margin: 0; display: flex; flex-wrap: wrap; gap: .3rem .9rem; color: var(--muted); font-size: .82rem; }
.anot-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.anot-meta .ic { width: 14px; height: 14px; }
.anot-texto { margin-top: .55rem; white-space: pre-wrap; font-size: .95rem; overflow-wrap: anywhere; }
.kz-status { text-transform: none; letter-spacing: 0; font-size: .72rem; padding: .08rem .45rem; border-radius: 999px; background: #eef2ef; color: var(--muted); }
.kz-andamento { background: var(--ouro-claro); color: var(--ouro-texto); }
.kz-concluido { background: var(--ok-bg); color: var(--ok); }
.kz-resumo { display: grid; gap: .35rem; margin: .6rem 0 0; padding: .6rem .75rem; border-radius: 10px; background: #f8f5fe; }
.kz-resumo div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .5rem; font-size: .9rem; }
.kz-resumo dt { font-weight: 700; color: #6b46c1; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; padding-top: .1rem; }
.kz-resumo dd { margin: 0; white-space: pre-wrap; }
.anot-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .45rem; margin-top: .7rem; }
.anot-fotos a { display: block; aspect-ratio: 4 / 3; border-radius: 9px; overflow: hidden; border: 1px solid var(--borda); }
.anot-fotos img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.anot-fotos a:hover img { transform: scale(1.04); }
.anot-arquivos { list-style: none; margin: .6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.anot-arquivos a { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .65rem; border: 1px solid var(--borda); border-radius: 999px; font-size: .84rem; background: var(--verde-50); }
.anot-arquivos small { color: var(--muted); }
.anot-rodape { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: .8rem; padding-top: .6rem; border-top: 1px dashed var(--grade); }
.rel-chips { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.rel-chips form, .anot-acoes form { margin: 0; }
.chip-rel {
  display: inline-flex; align-items: center; gap: .3rem; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer;
  padding: .28rem .65rem; border-radius: 999px; border: 1px dashed #b9c7bf; background: #fff; color: var(--muted);
}
.chip-rel .ic { width: 14px; height: 14px; }
.chip-rel:hover { border-color: var(--verde-600); color: var(--verde-700); }
.chip-rel.on { border-style: solid; border-color: var(--verde-600); background: var(--verde-100); color: var(--verde-800); }
.fora { font-size: .78rem; color: #8a978f; font-style: italic; }
.anot-acoes { display: flex; align-items: center; gap: .2rem; flex-wrap: wrap; }
.btn-link {
  display: inline-flex; align-items: center; gap: .3rem; font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer;
  padding: .3rem .55rem; border-radius: 8px; border: 0; background: transparent; color: var(--verde-700); list-style: none;
}
.btn-link .ic { width: 15px; height: 15px; }
.btn-link:hover { background: var(--verde-50); text-decoration: none; }
.btn-link.ok { color: var(--ok); }
.btn-link.perigo { color: var(--erro); }
.btn-link.perigo:hover { background: var(--erro-bg); }
.excluir { position: relative; }
.excluir > summary::-webkit-details-marker { display: none; }
.excluir-caixa {
  position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 5; width: 250px; display: grid; gap: .5rem;
  padding: .8rem; border-radius: 10px; background: #fff; border: 1px solid #f1c3bd; box-shadow: var(--sombra-forte); font-size: .88rem;
}
.btn.perigo { background: var(--erro); color: #fff; }
.btn.perigo:hover { filter: brightness(.92); }
.vazio-grande { display: grid; justify-items: center; gap: .5rem; text-align: center; padding: 2.5rem 1rem; color: var(--muted);
  border: 1.5px dashed var(--borda); border-radius: var(--raio); background: #fafcfb; }
.vazio-grande .ic { color: #9fb2a7; width: 34px; height: 34px; }
.vazio-grande p { margin: 0; }

/* =================================================================
   Kaizens (quadro)
   ================================================================= */
.busca-cab { margin: 0; }
.busca-cab .busca { min-width: 220px; }
.quadro { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.coluna { background: #eef3f0; border-radius: var(--raio); padding: .8rem; min-height: 160px; border-top: 4px solid #9aa7a0; }
.coluna-andamento { border-top-color: var(--ouro); }
.coluna-concluido { border-top-color: var(--ok); }
.coluna h2 { font-size: .95rem; display: flex; align-items: center; justify-content: space-between; margin: 0 .2rem .7rem; }
.contador-col { font-size: .78rem; background: #fff; border-radius: 999px; padding: .1rem .55rem; color: var(--muted); }
.coluna-vazia { color: var(--muted); font-size: .88rem; text-align: center; padding: 1.2rem .5rem; margin: 0; }
.kz-card { background: #fff; border: 1px solid var(--borda); border-radius: 12px; padding: .85rem .9rem; margin-bottom: .6rem; box-shadow: var(--sombra); scroll-margin-top: 90px; }
.kz-card:target { box-shadow: 0 0 0 3px var(--ouro); }
.kz-card h3 { font-size: .98rem; margin: 0 0 .3rem; }
.kz-card h3 a { color: var(--texto); }
.kz-linha { margin: .35rem 0 0; font-size: .86rem; }
.kz-rot { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #6b46c1; }
.kz-res .kz-rot { color: var(--ok); }
.kz-fotos { display: flex; gap: .3rem; margin-top: .5rem; align-items: center; }
.kz-fotos img { width: 54px; height: 42px; object-fit: cover; border-radius: 6px; }
.kz-fotos span { font-size: .8rem; color: var(--muted); }
.kz-rodape { display: flex; justify-content: space-between; align-items: center; gap: .4rem; margin-top: .6rem; padding-top: .5rem; border-top: 1px dashed var(--grade); }
.kz-rel { display: flex; gap: .25rem; flex-wrap: wrap; }
.mini-chip { display: inline-flex; align-items: center; gap: .2rem; font-size: .72rem; font-weight: 600; padding: .1rem .45rem; border-radius: 999px; background: var(--verde-100); color: var(--verde-800); }
.mini-chip .ic { width: 12px; height: 12px; }
.kz-mover { display: flex; gap: .25rem; }
.kz-mover form { margin: 0; }
.ic-btn { display: inline-flex; align-items: center; gap: .2rem; font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer;
  padding: .3rem .45rem; border-radius: 8px; border: 1px solid var(--borda); background: #fff; color: var(--muted); }
.ic-btn .ic { width: 15px; height: 15px; }
.ic-btn:hover { border-color: #6b46c1; color: #6b46c1; }
.ic-btn.avancar { color: #6b46c1; border-color: #d8ccf3; background: #f8f5fe; }
.kz-explica { margin-top: 1.25rem; }
.kz-explica h2 { font-size: 1rem; display: flex; align-items: center; gap: .45rem; margin-bottom: .5rem; }
.kz-explica ol { margin: 0 0 .5rem; padding-left: 1.2rem; display: grid; gap: .3rem; font-size: .9rem; }
.kz-explica p { margin: 0; font-size: .88rem; color: var(--muted); }

@media (max-width: 1440px) {
  .topo-nav ~ .topo-usuario .topo-nome { display: none; }
  .marca-txt:has(~ .topo-nav), .marca:has(~ .topo-nav) .marca-txt { display: none; }
}
@media (max-width: 1100px) {
  .topo-nav span { display: none; }
  .topo-nav a { padding: .5rem .6rem; }
}
@media (max-width: 980px) {
  .anot-layout { grid-template-columns: 1fr; }
  .anot-lateral { position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .quadro { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .topo-wrap { flex-wrap: wrap; row-gap: .4rem; }
  .topo-nav { order: 3; flex-basis: 100%; margin: 0 -.3rem; justify-content: space-between; }
  .topo-nav span { display: none; }
  .topo-nav a { padding: .55rem .7rem; position: relative; }
  .topo-nav .ic { width: 21px; height: 21px; }
  .topo-nav .badge-nav { position: absolute; top: 1px; right: -2px; }
  .tipos-opcoes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .linha-campos { grid-template-columns: 1fr; }
  .form-anot:not([data-tipo="kaizen"]):not([data-tipo="planejamento"]) .campo-resp { display: none; }
  .anot { grid-template-columns: 1fr; gap: .5rem; padding: .9rem; }
  .anot-icone { display: none; }
  .cabecalho-pagina h1 { font-size: 1.5rem; }
  .excluir-caixa { right: auto; left: 0; }
  .segmentado { display: flex; }
  .segmentado label { flex: 1; }
  .segmentado span { text-align: center; padding: .5rem .3rem; }
}

/* =================================================================
   Mural de Ideias
   ================================================================= */
.ic-xl { width: 44px; height: 44px; }
.badge-nav { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; margin-left: .1rem;
  border-radius: 999px; background: var(--ouro); color: var(--verde-900); font-size: .7rem; font-weight: 800; line-height: 1; }
.atalho-mural { --cor: #d9480f; --cor-bg: #fff0e6; }
.atalho-contador { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px;
  background: #d9480f; color: #fff; font-size: .8rem; font-weight: 800; margin-left: auto; box-shadow: 0 2px 8px rgba(217,72,15,.35); }
.atalho-contador + .atalho-seta { margin-left: .4rem; }
.mural-emoji { font-size: 1.6rem; line-height: 1; }
.mural-emoji.grande { font-size: 2.4rem; }
.n-membros { background: var(--verde-100); color: var(--verde-800); border-radius: 999px; padding: .05rem .45rem; font-size: .75rem; }
.dica-aba { margin: -.2rem 0 1rem; padding: .65rem .9rem; border-radius: 10px; background: var(--ouro-claro); color: var(--ouro-texto); font-size: .9rem; }

.posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.post {
  display: grid; grid-template-rows: auto 1fr auto; background: var(--card); border: 1px solid var(--borda); border-radius: 16px;
  overflow: hidden; box-shadow: var(--sombra); transition: transform .18s, box-shadow .18s; scroll-margin-top: 90px;
}
.post:hover { transform: translateY(-3px); box-shadow: var(--sombra-forte); }
.post.post-novo { border-color: var(--ouro); box-shadow: 0 0 0 2px rgba(242,183,5,.35), var(--sombra); }
.post-capa { position: relative; display: block; aspect-ratio: 16 / 7; overflow: hidden;
  background: linear-gradient(135deg, var(--t-bg), #fff); }
.post-capa img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.post:hover .post-capa img { transform: scale(1.04); }
.capa-vazia { position: absolute; inset: 0; display: grid; place-items: center; color: var(--t); opacity: .55;
  background:
    radial-gradient(circle at 20% 25%, rgba(255,255,255,.7) 0 12%, transparent 13%),
    radial-gradient(circle at 85% 80%, rgba(255,255,255,.55) 0 18%, transparent 19%),
    linear-gradient(135deg, var(--t-bg), rgba(255,255,255,.4)); }
.post-tipo { position: absolute; left: .7rem; top: .7rem; background: rgba(255,255,255,.92); color: var(--t);
  font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: .25rem .6rem; border-radius: 999px; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.post-alta { position: absolute; right: .7rem; top: .7rem; background: #fff0e6; color: #b93c07; font-size: .74rem; font-weight: 800;
  padding: .25rem .6rem; border-radius: 999px; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.post-alta.inline { position: static; box-shadow: none; text-transform: none; letter-spacing: 0; }
.post-corpo { padding: .95rem 1.1rem .4rem; min-width: 0; }
.post-titulo { font-size: 1.08rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-titulo a { color: var(--texto); }
.post-titulo a:hover { color: var(--verde-700); text-decoration: none; }
.post-trecho { margin: .35rem 0 0; color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-autor { display: flex; align-items: center; gap: .5rem; margin: .7rem 0 0; font-size: .82rem; color: var(--muted); min-width: 0; }
.post-autor > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-autor strong { color: var(--texto); }
.post-autor .ic { width: 14px; height: 14px; }
.post-autor.grande { font-size: .9rem; margin: .5rem 0 0; }
.post-autor.grande > span:last-child { white-space: normal; }
.mini-avatar { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--verde-700); color: #fff; font-size: .7rem; font-weight: 800; font-style: normal; }
.post-rodape { display: flex; align-items: center; gap: .4rem; padding: .6rem 1.1rem .8rem; border-top: 1px dashed var(--grade); flex-wrap: wrap; }
.post-rodape form { margin: 0; }
.reacao {
  display: inline-flex; align-items: center; gap: .35rem; font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer;
  padding: .38rem .75rem; border-radius: 999px; border: 1px solid var(--borda); background: #fff; color: var(--texto); transition: all .15s;
}
.reacao:hover { border-color: var(--verde-600); background: var(--verde-50); text-decoration: none; transform: translateY(-1px); }
.reacao.on { background: var(--verde-100); border-color: var(--verde-600); color: var(--verde-800); }
.reacao span { font-variant-numeric: tabular-nums; }
.reacao.grande { padding: .55rem 1rem; font-size: .92rem; }
.reacao.whats { color: #128c3e; }
.reacao .ic { width: 16px; height: 16px; }
.novo-badge { background: var(--ouro); color: var(--verde-900); font-size: .72rem; font-weight: 800; padding: .2rem .55rem; border-radius: 999px; }
.post-vis { margin-left: auto; font-size: .95rem; opacity: .75; }
.mural-vazio { grid-column: 1 / -1; }

.pagina-media { max-width: 860px; }
.post-detalhe { background: var(--card); border: 1px solid var(--borda); border-radius: 18px; overflow: hidden; box-shadow: var(--sombra); margin-top: .8rem; }
.detalhe-capa { display: block; max-height: 380px; overflow: hidden; background: #eef2ef; }
.detalhe-capa img { width: 100%; max-height: 380px; object-fit: cover; display: block; }
.detalhe-corpo { padding: 1.3rem 1.5rem 1.2rem; }
.detalhe-corpo h1 { font-size: 1.7rem; margin: .35rem 0 0; letter-spacing: -.01em; }
.detalhe-texto { font-size: 1rem; margin-top: 1rem; }
.detalhe-acoes { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.detalhe-acoes form { margin: 0; }
.apoiadores, .audiencia { margin: .8rem 0 0; font-size: .86rem; color: var(--muted); }
.audiencia { padding-top: .8rem; border-top: 1px dashed var(--grade); }

.conversa { margin-top: 1.4rem; }
.conversa h2 { font-size: 1.15rem; display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem; }
.coment { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .7rem; align-items: start; padding: .8rem .9rem;
  background: var(--card); border: 1px solid var(--borda); border-radius: 14px; margin-bottom: .55rem; scroll-margin-top: 90px; }
.coment.meu { background: var(--verde-50); }
.coment.meu .mini-avatar { background: var(--ouro); color: var(--verde-900); }
.coment.novo { border-color: var(--ouro); box-shadow: 0 0 0 2px rgba(242,183,5,.25); }
.coment:target { box-shadow: 0 0 0 3px var(--ouro); }
.coment-cab { margin: 0; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .88rem; }
.coment-cab time { color: var(--muted); font-size: .8rem; }
.coment-texto { margin-top: .2rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.conversa-vazia { color: var(--muted); text-align: center; padding: 1.2rem; border: 1.5px dashed var(--borda); border-radius: 14px; margin: 0 0 .8rem; }
.form-coment { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .6rem; align-items: start; padding: .8rem;
  background: var(--card); border: 1px solid var(--borda); border-radius: 14px; box-shadow: var(--sombra); margin-top: .8rem; }
.form-coment textarea { width: 100%; font: inherit; font-size: .98rem; padding: .6rem .75rem; border-radius: 10px; border: 1px solid #c9d6cf; resize: vertical; min-height: 44px; }
.form-coment textarea:focus { outline: none; border-color: var(--verde-600); box-shadow: 0 0 0 4px rgba(21,122,79,.15); }
.form-coment .mini-avatar { background: var(--ouro); color: var(--verde-900); margin-top: .35rem; }

/* Quem vê (formulário) */
.quem-ve { border: 0; margin: 0; padding: 0; display: grid; gap: .55rem; }
.quem-ve legend { font-weight: 600; font-size: .9rem; margin-bottom: .45rem; padding: 0; }
.segmentado.vis input:checked + span { background: var(--verde-700); }
.pessoas-lista { display: none; flex-wrap: wrap; gap: .4rem; }
.form-anot[data-vis="pessoas"] .pessoas-lista { display: flex; }
.pessoa-chk { position: relative; }
.pessoa-chk input { position: absolute; opacity: 0; }
.pessoa-chk span { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem .3rem .3rem; border-radius: 999px;
  border: 1.5px solid var(--borda); background: #fff; cursor: pointer; font-size: .86rem; font-weight: 600; color: var(--muted); }
.pessoa-chk .mini-avatar { width: 24px; height: 24px; font-size: .62rem; background: #9fb2a7; }
.pessoa-chk input:checked + span { border-color: var(--verde-600); background: var(--verde-100); color: var(--verde-800); }
.pessoa-chk input:checked + span .mini-avatar { background: var(--verde-700); }
.pessoa-chk input:focus-visible + span { outline: 3px solid var(--ouro); outline-offset: 2px; }
.vis-vazio { margin: 0; font-size: .85rem; color: var(--muted); }
.vis-dica { color: var(--muted); font-size: .8rem; }
.form-anot[data-vis="privada"] .vis-dica { display: none; }
.chip-mural { display: inline-flex; align-items: center; gap: .25rem; font-size: .78rem; font-weight: 700; padding: .28rem .65rem;
  border-radius: 999px; background: #fff0e6; color: #b93c07; border: 1px solid #fbd3bd; }
.chip-mural:hover { text-decoration: none; border-color: #d9480f; }

/* Pessoas */
.titulo-simples { font-size: 1.6rem; margin: .6rem 0 .3rem; }
.lista-pessoas { display: grid; gap: .1rem; margin-top: 1rem; padding: .6rem; }
.pessoa-linha { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: .6rem .6rem;
  border-radius: 10px; cursor: pointer; }
.pessoa-linha:hover { background: var(--verde-50); }
.pessoa-linha input { width: 19px; height: 19px; accent-color: var(--verde-600); }
.pessoa-linha.adm { cursor: default; }
.pessoa-nome { display: grid; min-width: 0; }
.pessoa-nome small { color: var(--muted); }
.pessoa-sist { display: flex; gap: .25rem; flex-wrap: wrap; justify-content: flex-end; }
.mini-chip.adm { background: var(--ouro-claro); color: var(--ouro-texto); }
.lista-pessoas .rodape-form { margin-top: .6rem; padding: .8rem .4rem .2rem; }

@media (max-width: 980px) {
  .posts { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .detalhe-corpo { padding: 1rem; }
  .detalhe-corpo h1 { font-size: 1.35rem; }
  .form-coment { grid-template-columns: minmax(0, 1fr); }
  .form-coment .mini-avatar { display: none; }
  .coment { grid-template-columns: auto minmax(0, 1fr); }
  .coment .excluir { grid-column: 2; justify-self: end; }
  .pessoa-linha { grid-template-columns: auto auto minmax(0, 1fr); }
  .pessoa-sist { grid-column: 3; justify-content: flex-start; }
  .post-capa { aspect-ratio: 16 / 8; }
}

/* =================================================================
   Cowork NAE — Anotações, Kaizens e Mural numa área só
   ================================================================= */
.atalho-cowork { --cor: #0f5f3d; --cor-bg: linear-gradient(135deg, #e3f1e9, #fff3cc); }
.atalho-cowork .atalho-icone { background: linear-gradient(135deg, #e3f1e9, #fff3cc); }
.atalho-sub { color: var(--verde-700) !important; font-weight: 700; }
.cowork-topo { padding-bottom: 0; flex: 0 0 auto; }
.cowork-topo + .pagina { padding-top: .6rem; }
.cowork-cab {
  position: relative; overflow: hidden; margin-bottom: 1.3rem; border-radius: 18px; color: #fff;
  background:
    radial-gradient(600px 200px at 100% 0%, rgba(242,183,5,.28), transparent 70%),
    radial-gradient(500px 220px at 0% 100%, rgba(107,70,193,.25), transparent 70%),
    linear-gradient(120deg, var(--verde-900), var(--verde-700));
  box-shadow: var(--sombra);
}
.cowork-titulo { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.3rem .9rem; }
.cowork-selo { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: 0 0 auto;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); color: var(--ouro); }
.cowork-titulo h1 { font-size: 1.45rem; letter-spacing: -.01em; }
.cowork-titulo p { margin: .15rem 0 0; opacity: .85; font-size: .92rem; }
.cowork-abas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; padding: 0 .9rem .9rem; }
.aba-cw {
  position: relative; display: flex; align-items: center; gap: .65rem; padding: .7rem .9rem; border-radius: 12px;
  color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); transition: background .15s, transform .15s;
}
.aba-cw:hover { background: rgba(255,255,255,.18); text-decoration: none; transform: translateY(-1px); }
.aba-cw .ic { width: 22px; height: 22px; flex: 0 0 auto; }
.aba-txt { display: grid; min-width: 0; line-height: 1.25; }
.aba-txt strong { font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aba-txt small { font-size: .78rem; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aba-cw.on { background: #fff; color: var(--texto); border-color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.aba-cw.on small { color: var(--muted); opacity: 1; }
.aba-anot.on .ic { color: var(--verde-600); }
.aba-kz.on .ic { color: #6b46c1; }
.aba-mural.on .ic { color: #d9480f; }
.aba-cw .badge-nav { position: absolute; top: 8px; right: 10px; }
.secao-titulo { font-size: 1.25rem; display: flex; align-items: center; gap: .45rem; }
.secao-titulo .ic { width: 22px; height: 22px; color: var(--verde-600); }
.cabecalho-pagina .secao-titulo + .sub { margin-top: .2rem; }

@media (max-width: 720px) {
  .cowork-titulo { padding: .9rem 1rem .7rem; }
  .cowork-titulo p { display: none; }
  .cowork-titulo h1 { font-size: 1.2rem; }
  .cowork-selo { width: 40px; height: 40px; }
  .cowork-abas { gap: .35rem; padding: 0 .6rem .6rem; }
  .aba-cw { flex-direction: column; align-items: center; text-align: center; gap: .25rem; padding: .55rem .3rem; }
  .aba-txt strong { font-size: .8rem; }
  .aba-txt small { font-size: .68rem; }
  .aba-cw .badge-nav { top: 4px; right: 4px; }
}
@media (max-width: 720px) { .so-largo { display: none; } }

/* Caixas de texto nunca menores que ~3 linhas (o ajuste automático só aumenta) */
.form-anot textarea { min-height: 76px; }
.form-anot textarea[name="texto"] { min-height: 110px; }

/* =================================================================
   QualiBot
   ================================================================= */
.atalho-bot { --cor: #128c3e; --cor-bg: #e3f7ea; }
.bot-cab { display: flex; align-items: center; gap: 1rem; margin: .4rem 0 1.1rem; flex-wrap: wrap; }
.bot-avatar { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; flex: 0 0 auto;
  background: linear-gradient(135deg, #25d366, #128c3e); color: #fff; box-shadow: 0 8px 22px rgba(18,140,62,.3); }
.bot-cab-txt { flex: 1; min-width: 220px; }
.bot-cab-txt h1 { font-size: 1.8rem; letter-spacing: -.01em; }
.bot-cab-txt p { margin: .2rem 0 0; color: var(--muted); }
.bot-status { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 700;
  background: #eef2ef; color: var(--muted); }
.bot-status i { width: 10px; height: 10px; border-radius: 50%; background: #9aa7a0; }
.bot-status.st-conectado { background: var(--ok-bg); color: var(--ok); }
.bot-status.st-conectado i { background: #25d366; box-shadow: 0 0 0 4px rgba(37,211,102,.2); }
.bot-status.st-aguardando_qr, .bot-status.st-conectando { background: var(--ouro-claro); color: var(--ouro-texto); }
.bot-status.st-aguardando_qr i, .bot-status.st-conectando i { background: var(--ouro); animation: piscar 1.2s ease-in-out infinite; }
.bot-status.st-indisponivel { background: var(--erro-bg); color: var(--erro); }
.bot-status.st-indisponivel i { background: var(--erro); }
@keyframes piscar { 50% { opacity: .35; } }

.bot-bloco { margin-bottom: 1rem; display: grid; gap: .8rem; }
.bot-bloco h2 { font-size: 1.08rem; display: flex; align-items: center; gap: .55rem; }
.h2-sep { margin-top: .6rem; padding-top: 1rem; border-top: 1px solid var(--grade); }
.passo { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--verde-700); color: #fff; font-size: .8rem; }
.bot-bloco p { margin: 0; }
.bot-aviso { font-size: .84rem; color: var(--ouro-texto); background: var(--ouro-claro); border-radius: 10px; padding: .6rem .8rem; }
.bot-dica { color: var(--muted); font-size: .9rem; }

/* Blocos que aparecem conforme o estado */
.so-desconectado, .so-qr, .so-conectando, .so-conectado, .so-conectado-bloco { display: none; }
#qualibot[data-estado="desconectado"] .so-desconectado,
#qualibot[data-estado="aguardando_qr"] .so-qr,
#qualibot[data-estado="conectando"] .so-conectando { display: grid; gap: .8rem; }
#qualibot[data-estado="conectado"] .so-conectado { display: flex; }
#qualibot[data-estado="conectado"] .so-conectado-bloco { display: grid; gap: .6rem; }
#qualibot[data-estado="conectado"] .so-sem-conexao { display: none; }
#qualibot[data-estado="aguardando_qr"] .so-qr { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1.4rem; }
.bot-qr figure { margin: 0; text-align: center; }
.bot-qr img { width: 260px; height: 260px; border-radius: 14px; border: 1px solid var(--borda); padding: 8px; background: #fff; box-shadow: var(--sombra); image-rendering: pixelated; }
.bot-qr figcaption { font-size: .78rem; color: var(--muted); margin-top: .35rem; }
.bot-passos { margin: 0; padding-left: 1.2rem; display: grid; gap: .55rem; font-size: .95rem; }
.carregando-linha { display: flex; align-items: center; gap: .7rem; color: var(--muted); }
.bot-conta { align-items: center; gap: .8rem; padding: .8rem .9rem; border-radius: 12px; background: var(--ok-bg); border: 1px solid #bfe5cf; }
.bot-conta-ic { color: var(--ok); }
.bot-conta-txt { flex: 1; display: grid; }
.bot-conta-txt strong { font-size: 1.1rem; }
.bot-conta-txt small { color: var(--muted); }

.bot-atual { font-size: .92rem; color: var(--muted); }
.bot-atual strong { color: var(--texto); }
.lista-conversas { list-style: none; margin: 0; padding: .3rem; max-height: 300px; overflow-y: auto; border: 1px solid var(--borda); border-radius: 12px; background: #fff; }
.lista-conversas label { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border-radius: 9px; cursor: pointer; }
.lista-conversas label:hover { background: var(--verde-50); }
.lista-conversas input { accent-color: var(--verde-600); width: 17px; height: 17px; }
.lista-conversas label:has(input:checked) { background: var(--verde-100); }
.conv-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #eef2ef; font-size: .95rem; flex: 0 0 auto; }
.conv-ic.grupo { background: #e3f7ea; }
.conv-txt { display: grid; min-width: 0; }
.conv-txt strong { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-txt small { color: var(--muted); font-size: .76rem; }
.lista-vazia { color: var(--muted); font-size: .88rem; padding: .8rem; text-align: center; list-style: none; }
.bot-num { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .88rem; color: var(--muted); }
.bot-num input, .bot-regra input, .bot-regra textarea {
  font: inherit; font-size: .98rem; padding: .6rem .8rem; border-radius: 10px; border: 1px solid #c9d6cf; background: #fff; color: var(--texto); width: 100%; }
.bot-num input { width: 200px; }
.bot-regra textarea { resize: vertical; min-height: 70px; }
.bot-num input:focus, .bot-regra input:focus, .bot-regra textarea:focus { outline: none; border-color: var(--verde-600); box-shadow: 0 0 0 4px rgba(21,122,79,.15); }
.bot-regra { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: .9rem; }
.bot-regra small { color: var(--muted); font-size: .78rem; }
.chave { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; cursor: pointer; width: fit-content; }
.chave input { position: absolute; opacity: 0; }
.chave-trilho { width: 44px; height: 24px; border-radius: 999px; background: #c9d6cf; position: relative; transition: background .15s; }
.chave-trilho::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.chave input:checked + .chave-trilho { background: #25d366; }
.chave input:checked + .chave-trilho::after { transform: translateX(20px); }
.chave input:focus-visible + .chave-trilho { outline: 3px solid var(--ouro); outline-offset: 2px; }
.bot-previa { display: grid; gap: .4rem; padding: .9rem; border-radius: 12px; background: #efe7dd; }
.balao { max-width: 80%; padding: .45rem .7rem; border-radius: 10px; font-size: .92rem; box-shadow: 0 1px 1px rgba(0,0,0,.08); display: grid; }
.balao small { font-size: .72rem; font-weight: 700; }
.balao-in { background: #fff; justify-self: start; }
.balao-in small { color: #6b46c1; }
.balao-out { background: #d9fdd3; justify-self: end; }
.balao-out small { color: #128c3e; }
.bot-atividade { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; max-height: 320px; overflow-y: auto; }
.bot-atividade li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .6rem; font-size: .86rem; padding: .45rem .6rem; border-radius: 8px; background: var(--verde-50); }
.bot-atividade time { color: var(--muted); font-size: .8rem; }
.bot-atividade .at-resposta { background: #e3f7ea; }
.bot-atividade .at-erro { background: var(--erro-bg); color: #8e2a1f; }

@media (max-width: 720px) {
  #qualibot[data-estado="aguardando_qr"] .so-qr { grid-template-columns: 1fr; justify-items: center; }
  .bot-qr img { width: 240px; height: 240px; }
  .bot-regra { grid-template-columns: 1fr; }
  .bot-atividade li { grid-template-columns: 1fr; gap: .1rem; }
  .bot-cab-txt h1 { font-size: 1.5rem; }
  .bot-avatar { width: 52px; height: 52px; }
}
