/* Convites · sistema visual
   Celular: listas retas de ponta a ponta, títulos grandes, barra de abas flutuante, folhas que sobem.
   Computador: menu lateral, lista e detalhe lado a lado. */
@font-face { font-family: 'Geist'; src: url('/static/geist.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --fundo: #ffffff;
  --fundo-2: #f7f7f8;
  --fundo-3: #f0f0f2;
  --tinta: #111113;
  --tinta-2: #5e6068;
  --tinta-3: #8e9099;
  --linha: #ececee;
  --linha-forte: #e0e0e4;
  --acento: #3e63dd;
  --acento-suave: #edf2fe;
  --acento-texto: #3451b2;
  --verde: #18794e; --verde-suave: #e6f6eb; --verde-forte: #30a46c;
  --vermelho: #ce2c31; --vermelho-suave: #feebec; --vermelho-forte: #e5484d;
  --ambar: #ab6400; --ambar-suave: #fff4d5; --ambar-forte: #ffc53d;
  --azul: #0d74ce; --azul-suave: #e6f4fe;
  --sombra: 0 1px 2px rgba(17, 17, 19, 0.04), 0 4px 16px rgba(17, 17, 19, 0.06);
  --sombra-alta: 0 12px 48px rgba(17, 17, 19, 0.16), 0 2px 6px rgba(17, 17, 19, 0.06);
  --seg-baixo: env(safe-area-inset-bottom, 0px);
  --seg-topo: env(safe-area-inset-top, 0px);
  --fonte: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
html.travado { overflow: hidden; }
body { margin: 0; background: var(--fundo); color: var(--tinta); font: 400 16px/1.45 var(--fonte); letter-spacing: -0.006em; font-feature-settings: 'tnum'; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 32px; line-height: 1.12; font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: 17px; font-weight: 650; letter-spacing: -0.02em; }
h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.ic { width: 22px; height: 22px; flex: none; }
.sub { color: var(--tinta-2); font-size: 14px; }
.vazio { color: var(--tinta-3); }
.texto-vermelho { color: var(--vermelho); }
.texto-ambar { color: var(--ambar); }
.so-desktop { display: none !important; }

/* ───── Estrutura ───── */
.conteudo { padding: calc(var(--seg-topo) + 8px) 0 calc(110px + var(--seg-baixo)); min-height: 100vh; }
.conteudo-login { display: grid; place-items: center; padding: 24px; min-height: 100dvh; }
.pagina-estreita { padding: 0 16px; max-width: 720px; margin: 0 auto; }
.tela-lista .coluna-detalhe { display: none; }
.tela-detalhe .coluna-lista { display: none; }

/* Barra de abas flutuante */
.abas { position: fixed; z-index: 40; left: 0; right: 0; bottom: calc(10px + var(--seg-baixo)); display: flex; justify-content: center; pointer-events: none; }
.abas-pilula { pointer-events: auto; display: flex; gap: 2px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.82); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border: 0.5px solid rgba(0, 0, 0, 0.08); box-shadow: 0 8px 30px rgba(17, 17, 19, 0.12); }
.abas a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 76px; padding: 7px 0 6px; border-radius: 999px; color: var(--tinta-3); font-size: 11px; font-weight: 550; }
.abas a .ic { width: 24px; height: 24px; }
.abas a[aria-current] { color: var(--tinta); background: rgba(17, 17, 19, 0.06); }
.aba-ponto { position: absolute; top: 3px; left: 50%; margin-left: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--vermelho-forte); color: #fff; font-size: 11px; font-weight: 650; display: grid; place-items: center; border: 2px solid #fff; }
.lateral { display: none; }

/* Cabeçalho */
.cab { padding: 10px 16px 14px; }
.cab-linha { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cab-voltar { display: inline-grid; place-items: center; width: 40px; height: 40px; margin: 0 0 6px -8px; border-radius: 50%; color: var(--tinta); }
.cab-voltar .ic { width: 26px; height: 26px; }
.cab-voltar:active { background: var(--fundo-3); }
.pagina-estreita .cab { padding-left: 0; padding-right: 0; }

/* Botões */
.botao { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 22px; border: 0; border-radius: 14px; background: var(--tinta); color: #fff; font: 600 16px var(--fonte); letter-spacing: -0.01em; cursor: pointer; white-space: nowrap; transition: transform .12s ease, opacity .15s; }
.botao:active { transform: scale(0.98); }
.botao .ic { width: 20px; height: 20px; }
.botao-sec { background: var(--fundo-3); color: var(--tinta); }
.botao-largo { width: 100%; }
.botao-p { height: 38px; padding: 0 14px; border-radius: 10px; font-size: 14.5px; }
.botao-redondo { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--fundo-3); color: var(--tinta); cursor: pointer; flex: none; }
.botao-redondo .ic { width: 22px; height: 22px; }
.botao.enviando { opacity: .55; }
button:disabled { opacity: .45; cursor: default; }

/* Campos */
input, select, textarea { width: 100%; font: 16px var(--fonte); color: var(--tinta); background: var(--fundo-2); border: 1px solid transparent; border-radius: 12px; padding: 12px 14px; min-height: 48px; -webkit-appearance: none; appearance: none; transition: border-color .15s, background .15s; }
textarea { resize: vertical; line-height: 1.5; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e9099' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; background: #fff; border-color: var(--acento); box-shadow: 0 0 0 4px rgba(62, 99, 221, 0.12); }
::placeholder { color: var(--tinta-3); }
.campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.campo label { font-size: 13.5px; font-weight: 550; color: var(--tinta-2); }
.grade { display: grid; grid-template-columns: 1fr; gap: 14px; }
.largo { grid-column: 1 / -1; }
.acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.erro-campo { background: var(--vermelho-suave); color: var(--vermelho); padding: 10px 14px; border-radius: 12px; font-size: 15px; }

/* ───── Lista ───── */
.faixa-modo { display: flex; align-items: center; gap: 8px; margin: 0 16px 12px; padding: 10px 12px 10px 14px; border-radius: 12px; background: var(--ambar-suave); color: var(--ambar); font-size: 14px; font-weight: 600; }
.faixa-modo .ic { width: 16px; height: 16px; margin-left: auto; }
.faixa-sub { font-weight: 400; opacity: .85; }
.ponto-modo { width: 8px; height: 8px; border-radius: 50%; background: var(--ambar-forte); box-shadow: 0 0 0 3px rgba(255, 197, 61, .25); }
.busca { position: relative; margin: 0 16px 12px; }
.busca .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--tinta-3); }
.busca input { min-height: 40px; height: 40px; padding: 8px 12px 8px 38px; background: var(--fundo-3); border-radius: 11px; font-size: 16px; }
.segmento { display: flex; margin: 0 16px 6px; padding: 2px; border-radius: 10px; background: var(--fundo-3); }
.segmento a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 34px; border-radius: 8px; font-size: 14px; font-weight: 550; color: var(--tinta-2); }
.segmento a span { font-size: 12.5px; color: var(--tinta-3); font-weight: 500; }
.segmento a[aria-current] { background: #fff; color: var(--tinta); box-shadow: 0 1px 3px rgba(17, 17, 19, .1), 0 0 0 .5px rgba(17, 17, 19, .04); }
.grupo { margin-top: 18px; }
.grupo-titulo { display: flex; align-items: baseline; gap: 8px; padding: 0 16px 4px; font-size: 15px; font-weight: 700; letter-spacing: -0.015em; }
.grupo-n { color: var(--tinta-3); font-weight: 500; font-size: 14px; }
.linha { display: flex; gap: 14px; padding: 13px 16px; position: relative; transition: background .12s; }
.linha::after { content: ''; position: absolute; left: 76px; right: 0; bottom: 0; height: 0.5px; background: var(--linha-forte); }
.linhas .linha:last-child::after { display: none; }
.linha:active { background: var(--fundo-2); }
.linha-corpo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.linha-org { font-size: 13px; color: var(--tinta-2); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.linha-titulo { font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; margin-top: 1px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.linha-meta { font-size: 14px; color: var(--tinta-2); margin-top: 2px; }
.linha-estado { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.linha-det { font-size: 13px; color: var(--tinta-3); }
.vazio-grande { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 70px 20px; color: var(--tinta-3); font-size: 15px; }
.vazio-grande .ic { width: 34px; height: 34px; stroke-width: 1.4; }

/* Capa (iniciais da instituição) */
.capa { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; font-size: 15px; font-weight: 650; letter-spacing: -0.02em; }
.capa-g { width: 64px; height: 64px; border-radius: 18px; font-size: 22px; }
.capa-p { width: 30px; height: 30px; border-radius: 9px; font-size: 11.5px; }
.capa-indigo { background: #e6edfe; color: #3451b2; }
.capa-jade { background: #e1f5ec; color: #1a7a4f; }
.capa-ambar { background: #fef3c7; color: #9a5b00; }
.capa-rosa { background: #fde8ef; color: #b5225a; }
.capa-ceu { background: #e0f2fe; color: #0b6aa3; }
.capa-violeta { background: #efe9fc; color: #6a3fc7; }
.capa-laranja { background: #ffeadb; color: #b4480d; }
.capa-oliva { background: #edf1e3; color: #546b1f; }

/* Pílulas de estado */
.pilula { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap; }
.pilula-acento { background: var(--acento-suave); color: var(--acento-texto); }
.pilula-verde { background: var(--verde-suave); color: var(--verde); }
.pilula-vermelho { background: var(--vermelho-suave); color: var(--vermelho); }
.pilula-ambar { background: var(--ambar-suave); color: var(--ambar); }
.pilula-azul { background: var(--azul-suave); color: var(--azul); }
.pilula-neutro { background: var(--fundo-3); color: var(--tinta-2); }
.pulso { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulso 1.3s ease-in-out infinite; flex: none; }
@keyframes pulso { 50% { opacity: .25; transform: scale(.75); } }

/* ───── Detalhe ───── */
.detalhe { padding: 0 16px; }
.detalhe-topo { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.detalhe-topo .cab-voltar { margin: 0 0 0 -8px; }
.detalhe-codigo { font-size: 13px; color: var(--tinta-3); margin-right: auto; }
.detalhe-cabeca { padding: 14px 0 18px; }
.detalhe-cabeca .capa { margin-bottom: 14px; }
.detalhe-org { font-size: 15px; color: var(--tinta-2); font-weight: 500; margin-bottom: 4px; }
.detalhe-cabeca h1 { font-size: 28px; line-height: 1.15; letter-spacing: -0.03em; }
.info { margin: 0 0 18px; display: flex; flex-direction: column; }
.info-l { display: flex; gap: 14px; padding: 11px 0; border-top: 0.5px solid var(--linha-forte); }
.info-l:last-child { border-bottom: 0.5px solid var(--linha-forte); }
.info-l > .ic { color: var(--tinta-3); margin-top: 1px; }
.info dt { font-size: 12.5px; color: var(--tinta-3); font-weight: 500; }
.info dd { margin: 1px 0 0; font-size: 16px; font-weight: 550; letter-spacing: -0.01em; }
.info dd span { display: block; font-size: 14px; color: var(--tinta-2); font-weight: 400; }
.info-l.urgente > .ic, .info-l.urgente dd span { color: var(--vermelho); }

.veredito { border: 1px solid var(--linha); border-radius: 20px; padding: 18px; margin-bottom: 14px; box-shadow: var(--sombra); }
.veredito-rotulo { font-size: 13px; font-weight: 600; color: var(--tinta-3); }
.veredito-titulo { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; margin: 2px 0 8px; }
.tom-verde { color: var(--verde); } .tom-vermelho { color: var(--vermelho); } .tom-ambar { color: var(--ambar); } .tom-azul { color: var(--azul); } .tom-neutro { color: var(--tinta); }
.veredito-texto { font-size: 16px; line-height: 1.5; color: var(--tinta); }
.veredito-linha { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.veredito .sub { margin-top: 10px; }
.veredito-linha .sub { margin-top: 0; }
.com-ic { display: flex; align-items: center; gap: 6px; }
.com-ic .ic { width: 16px; height: 16px; }
.motivos { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.motivos li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; font-size: 14.5px; line-height: 1.4; }
.motivos .ic { width: 18px; height: 18px; margin-top: 1px; }
.m-vermelho { background: var(--vermelho-suave); color: #8c1d22; } .m-vermelho .ic { color: var(--vermelho); }
.m-ambar { background: var(--ambar-suave); color: #6e4100; } .m-ambar .ic { color: var(--ambar); }
.veredito-botoes { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.veredito-rodando { display: flex; align-items: center; gap: 14px; color: var(--acento-texto); background: var(--acento-suave); border-color: transparent; box-shadow: none; }
.veredito-rodando .pulso { width: 10px; height: 10px; }
.veredito-rodando .veredito-titulo { font-size: 18px; margin: 0; }
.veredito-rodando .sub { margin: 0; color: var(--acento-texto); opacity: .8; }

.cartao { border: 1px solid var(--linha); border-radius: 20px; padding: 16px 18px; margin-bottom: 14px; }
.cartao-titulo { font-size: 13px; font-weight: 600; color: var(--tinta-3); margin-bottom: 8px; }
.verif { display: flex; gap: 12px; padding: 8px 0; align-items: flex-start; }
.verif p { font-size: 15px; font-weight: 500; }
.verif .sub { font-weight: 400; font-size: 13.5px; margin-top: 1px; }
.verif a { color: var(--acento-texto); }
.v { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; margin-top: 1px; }
.v .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.v-ok { background: var(--verde-suave); color: var(--verde); }
.v-nao { background: var(--vermelho-suave); color: var(--vermelho); }
.v-talvez { background: var(--fundo-3); color: var(--tinta-2); }
.fatos-web { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.fato-web { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--fundo-2); font-size: 14px; line-height: 1.4; }
.fato-web .fonte { font-size: 12.5px; color: var(--acento-texto); }
.fato-risco { background: var(--vermelho-suave); }
.fato-estado { background: var(--ambar-suave); }
.verif-resumo { margin-top: 10px; }

.secoes { margin: 6px 0 20px; border-top: 0.5px solid var(--linha-forte); }
details.secao { border-bottom: 0.5px solid var(--linha-forte); }
details.secao > summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 54px; cursor: pointer; font-size: 16px; font-weight: 550; }
details.secao > summary::-webkit-details-marker { display: none; }
details.secao > summary > span:first-of-type { flex: 1; }
details.secao > summary > .ic:first-child { color: var(--tinta-3); }
details.secao > summary > .ic:last-child { width: 18px; height: 18px; color: var(--tinta-3); transition: transform .2s; }
details.secao[open] > summary > .ic:last-child { transform: rotate(180deg); }
.secao-dado { font-size: 14px; color: var(--tinta-3); font-weight: 400; }
.secao-corpo { padding: 2px 0 20px; font-size: 15px; }
.etapa { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 12px 0; border-top: 0.5px solid var(--linha); }
.etapa:first-child { border-top: 0; padding-top: 0; }
.etapa-num { width: 22px; height: 22px; border-radius: 7px; background: var(--fundo-3); font-size: 12px; font-weight: 650; display: grid; place-items: center; color: var(--tinta-2); }
.etapa-num:empty { background: none; }
.etapa-corpo p + p { margin-top: 4px; }
.itens { margin: 4px 0 0; padding-left: 18px; }
.itens li { margin: 3px 0; }
.matriz { display: flex; flex-direction: column; }
.mz { display: grid; grid-template-columns: 1fr 64px; gap: 2px 12px; align-items: center; padding: 8px 0; border-bottom: 0.5px solid var(--linha); }
.mz label { font-weight: 500; }
.mz-motivo { grid-column: 1 / -1; font-size: 13px; }
.nota-input { text-align: center; font-weight: 650; min-height: 40px; padding: 6px; }
.mz-total { display: flex; align-items: center; gap: 12px; padding-top: 12px; }
.mz-total strong { font-size: 22px; margin-right: auto; }
.rodape-ia { font-size: 12px; color: var(--tinta-3); margin-top: 12px; }
.dados { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0 0 12px; font-size: 14.5px; }
.dados dt { color: var(--tinta-3); }
.dados dd { margin: 0; word-break: break-word; }
.original { white-space: pre-wrap; word-break: break-word; background: var(--fundo-2); border-radius: 14px; padding: 14px; font-size: 14.5px; line-height: 1.55; max-height: 60vh; overflow: auto; }
.anexos { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.anexos a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--fundo-2); }
.anexos a span:first-of-type { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.anexos .ic { width: 18px; height: 18px; color: var(--tinta-3); }
.msg { margin-top: 14px; }
.msg .sub { margin-bottom: 6px; font-size: 13px; }
.msg-enviada .original { background: var(--acento-suave); }
.historico { list-style: none; padding: 0; margin: 0 0 14px; }
.historico li { display: flex; flex-direction: column; padding: 9px 0; border-bottom: 0.5px solid var(--linha); }
.h-acao { font-weight: 500; }
.h-acao .sub { display: block; font-weight: 400; font-size: 13.5px; }
.h-quando { font-size: 12.5px; color: var(--tinta-3); }
.historico-acoes { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.linha-form { display: flex; gap: 8px; align-items: center; }
.linha-form select { min-height: 38px; height: 38px; padding: 6px 36px 6px 12px; font-size: 14.5px; }

/* ───── Folha (decidir) ───── */
dialog.folha { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 560px; max-height: 94dvh; border-radius: 26px 26px 0 0; background: #fff; color: var(--tinta); box-shadow: var(--sombra-alta); overflow: auto; overscroll-behavior: contain; }
dialog.folha[open] { animation: sobe .32s cubic-bezier(.16, 1, .3, 1); }
dialog.folha::backdrop { background: rgba(10, 10, 12, .32); backdrop-filter: blur(2px); }
@keyframes sobe { from { transform: translateY(30%); opacity: .3; } }
.folha-form { padding: 6px 18px calc(18px + var(--seg-baixo)); display: flex; flex-direction: column; gap: 16px; }
.folha-topo { display: flex; align-items: center; justify-content: space-between; position: relative; padding-top: 18px; }
.folha-alca { position: absolute; top: 4px; left: 50%; width: 36px; height: 5px; border-radius: 3px; background: #dcdce0; transform: translateX(-50%); }
.folha-topo h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.025em; }
.botao-fechar { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--fundo-3); color: var(--tinta-2); display: grid; place-items: center; cursor: pointer; }
.botao-fechar .ic { width: 16px; height: 16px; stroke-width: 2.2; }
.botao-fechar:focus:not(:focus-visible) { outline: none; }
.escolhas { display: flex; flex-wrap: wrap; gap: 8px; }
.escolha { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 16px; border-radius: 999px; background: var(--fundo-3); font-size: 15px; font-weight: 550; cursor: pointer; transition: background .15s, color .15s; }
.escolha input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; pointer-events: none; }
.escolha em { font-style: normal; font-size: 11.5px; font-weight: 650; padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, .7); }
.escolha:has(input:checked) { background: var(--tinta); color: #fff; }
.escolha-verde:has(input:checked) { background: var(--verde-forte); }
.escolha-vermelho:has(input:checked) { background: var(--vermelho-forte); }
.escolha-ambar:has(input:checked) { background: #d68800; }
.escolha-azul:has(input:checked) { background: var(--acento); }
.escolha:has(input:checked) em { background: rgba(255, 255, 255, .22); color: #fff; }
.escolha:has(input:focus-visible) { outline: 2px solid var(--acento); outline-offset: 2px; }
.interruptor { display: flex; align-items: center; gap: 12px; font-size: 15px; cursor: pointer; }
.interruptor input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.int-trilho { flex: none; width: 51px; height: 31px; border-radius: 16px; background: #e5e5ea; position: relative; transition: background .2s; }
.int-trilho::after { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); transition: transform .2s cubic-bezier(.3, 1.3, .5, 1); }
.interruptor input:checked + .int-trilho { background: var(--verde-forte); }
.interruptor input:checked + .int-trilho::after { transform: translateX(20px); }
.nota-folha { font-size: 14px; color: var(--tinta-2); background: var(--fundo-2); padding: 12px 14px; border-radius: 12px; }
.folha-acoes { display: flex; flex-direction: column; gap: 8px; }

/* ───── Agenda ───── */
.legenda { display: flex; gap: 14px; margin: -6px 0 6px; font-size: 13.5px; color: var(--tinta-2); flex-wrap: wrap; }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg::before { content: ''; width: 8px; height: 8px; border-radius: 50%; }
.lg-verde::before { background: var(--verde-forte); } .lg-ambar::before { background: var(--ambar-forte); } .lg-neutro::before { background: #c4c4cb; }
.dia { margin-top: 22px; }
.dia-titulo { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.dia-titulo.hoje { color: var(--acento-texto); }
.ag { display: grid; grid-template-columns: 58px 3px 1fr; gap: 12px; padding: 12px 0; border-bottom: 0.5px solid var(--linha-forte); align-items: stretch; }
.ag-hora { font-size: 15px; font-weight: 600; padding-top: 1px; }
.ag-barra { border-radius: 2px; background: #c4c4cb; }
.ag-verde { background: var(--verde-forte); } .ag-ambar { background: var(--ambar-forte); }
.ag-corpo { display: flex; flex-direction: column; min-width: 0; }
.ag-titulo { font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.ag-sub { font-size: 14px; color: var(--tinta-2); margin-top: 2px; }

/* ───── Células (perfil, ajustes, indicadores) ───── */
.celulas { border: 1px solid var(--linha); border-radius: 18px; overflow: hidden; margin-bottom: 22px; background: #fff; }
.celula { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 54px; padding: 10px 16px; border: 0; border-bottom: 0.5px solid var(--linha); background: none; font: 500 16px var(--fonte); color: var(--tinta); text-align: left; cursor: pointer; list-style: none; }
.celulas > :last-child, .celulas > :last-child > .celula, .celulas > form:last-child .celula { border-bottom: 0; }
.celula > span:first-of-type { flex: 1; }
.celula > .ic:first-child { color: var(--tinta-2); }
.celula > .ic:last-child { width: 18px; height: 18px; color: var(--tinta-3); }
.celula .sub { display: block; font-size: 13.5px; font-weight: 400; }
.celula-dado { flex: none !important; color: var(--tinta-3); font-weight: 400; font-size: 15px; }
.celula-dado.forte { color: var(--tinta); font-weight: 600; }
.celula-estatica { cursor: default; }
.celula-perigo, .celula-perigo .ic { color: var(--vermelho) !important; }
.celula-radio { align-items: flex-start; }
.celula-radio input { width: 22px; height: 22px; min-height: 0; padding: 0; border-radius: 50%; border: 2px solid #c7c7cc; background: #fff; margin-top: 2px; flex: none; }
.celula-radio input:checked { border: 7px solid var(--acento); }
.celula-radio strong { display: block; font-weight: 600; }
.celula-botao { padding: 12px 16px; }
.celula-det > summary::-webkit-details-marker { display: none; }
.celula-det[open] > summary .ic:last-child { transform: rotate(180deg); }
.celula-det { border-bottom: 0.5px solid var(--linha); }
.celulas > .celula-det:last-child { border-bottom: 0; }
.celula-det > summary { border-bottom: 0; }
.det-corpo { padding: 4px 16px 18px; }
.estado { flex: none; font-size: 14px; color: var(--tinta-3); font-weight: 400; max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.estado.ok { color: var(--verde); }
.formulario-cel { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.bloco-config { margin-bottom: 6px; }
.bloco-config > .grupo-titulo, .pagina-estreita > .grupo-titulo { padding: 0 4px 8px; font-size: 13px; font-weight: 600; color: var(--tinta-3); }
.inativo { opacity: .5; }
.perfil-topo { display: flex; align-items: center; gap: 14px; margin: 4px 0 22px; }
.perfil-nome { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }
.passos section { padding: 16px; border-bottom: 0.5px solid var(--linha); }
.passos section:last-child { border-bottom: 0; }
.passos ol { margin: 8px 0 0; padding-left: 20px; }
.passos li { margin: 4px 0; }
.numeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 24px; }
.numero { border: 1px solid var(--linha); border-radius: 18px; padding: 14px; }
.numero span { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.numero p { font-size: 13px; color: var(--tinta-2); line-height: 1.3; }
.barra-linha { display: grid; grid-template-columns: 1fr 1fr auto; }
.barra { height: 6px; background: var(--fundo-3); border-radius: 3px; overflow: hidden; }
.barra span { display: block; height: 100%; background: var(--acento); border-radius: 3px; }
.pagina-estreita > .segmento { margin: 0 0 6px; }

/* Registrar */
.formulario { display: flex; flex-direction: column; gap: 14px; }
.formulario > textarea { min-height: 200px; }
.campo-arquivo { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; height: 56px; border: 1.5px dashed var(--linha-forte); border-radius: 14px; color: var(--tinta-2); font-weight: 550; cursor: pointer; }
.campo-arquivo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; min-height: 0; }

/* Login */
.login { width: 100%; max-width: 360px; text-align: center; }
.login-icone { border-radius: 18px; box-shadow: 0 10px 30px rgba(17, 17, 19, .25); margin-bottom: 20px; }
.login h1 { font-size: 28px; margin-bottom: 26px; }
.login form { display: flex; flex-direction: column; gap: 10px; }
.login .botao { margin-top: 8px; }

/* Aviso */
.aviso { position: fixed; z-index: 70; left: 50%; bottom: calc(96px + var(--seg-baixo)); transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: var(--tinta); color: #fff; font-size: 15px; font-weight: 550; box-shadow: var(--sombra-alta); white-space: nowrap; animation: aparece .35s cubic-bezier(.16, 1, .3, 1); transition: opacity .35s, transform .35s; }
.aviso .ic { width: 18px; height: 18px; color: #4cc38a; stroke-width: 2.4; }
.aviso.saindo { opacity: 0; transform: translate(-50%, 12px); pointer-events: none; }
@keyframes aparece { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ───── Computador ───── */
@media (min-width: 900px) {
  .so-desktop { display: inline-flex !important; }
  .so-celular { display: none !important; }
  .abas { display: none; }
  .lateral { display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; width: 248px; padding: 18px 12px 14px; background: var(--fundo-2); border-right: 1px solid var(--linha); z-index: 20; }
  .marca { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
  .marca img { border-radius: 8px; }
  .botao-novo { height: 38px; border-radius: 10px; font-size: 14.5px; margin: 0 4px 16px; padding: 0 12px; }
  .botao-novo .ic { width: 18px; height: 18px; }
  .lateral-itens { display: flex; flex-direction: column; gap: 1px; flex: 1; }
  .lateral-itens a { display: flex; align-items: center; gap: 11px; height: 36px; padding: 0 10px; border-radius: 9px; color: var(--tinta-2); font-size: 14.5px; font-weight: 550; }
  .lateral-itens a .ic { width: 19px; height: 19px; }
  .lateral-itens a:hover { background: rgba(17, 17, 19, .04); color: var(--tinta); }
  .lateral-itens a[aria-current] { background: #fff; color: var(--tinta); box-shadow: 0 1px 2px rgba(17, 17, 19, .06), 0 0 0 .5px rgba(17, 17, 19, .06); }
  .contador { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--vermelho-forte); color: #fff; font-size: 11.5px; font-weight: 650; display: grid; place-items: center; }
  .lateral-usuario { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; font-size: 14.5px; font-weight: 550; }
  .lateral-usuario:hover { background: rgba(17, 17, 19, .04); }
  .com-nav .conteudo { margin-left: 248px; padding: 0; min-height: 100vh; }
  .tela-lista .coluna-detalhe, .tela-detalhe .coluna-lista { display: block; }
  .dividido { display: grid; grid-template-columns: 400px minmax(0, 1fr); height: 100vh; }
  .coluna-lista { border-right: 1px solid var(--linha); height: 100vh; overflow-y: auto; padding-top: 18px; }
  .coluna-lista .cab h1 { font-size: 24px; }
  .coluna-lista .cab { padding-top: 4px; }
  .coluna-detalhe { height: 100vh; overflow-y: auto; }
  .detalhe { max-width: 720px; margin: 0 auto; padding: 22px 40px 60px; }
  .detalhe-cabeca h1 { font-size: 34px; }
  .linha { margin: 0 8px; padding: 12px 10px; border-radius: 12px; }
  .linha::after { left: 70px; right: 10px; }
  .linha:hover { background: var(--fundo-2); }
  .linha.selecionada { background: var(--acento-suave); }
  .linha.selecionada::after, .linha:has(+ .linha.selecionada)::after { display: none; }
  .pagina-estreita { padding: 34px 40px 60px; max-width: 760px; margin: 0; }
  .grade { grid-template-columns: 1fr 1fr; }
  dialog.folha { margin: auto; border-radius: 24px; max-height: 88vh; }
  .folha-alca { display: none; }
  .veredito-botoes { flex-direction: row; }
  .veredito-botoes > * { flex: 1; }
  .veredito-botoes form .botao { width: 100%; }
  .aviso { bottom: 28px; left: calc(50% + 124px); }
}

.motivo-auto { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; }
.mais-fatos > summary { list-style: none; cursor: pointer; font-size: 14px; font-weight: 550; color: var(--acento-texto); padding: 6px 2px; }
.mais-fatos > summary::-webkit-details-marker { display: none; }
.mais-fatos[open] > summary { display: none; }

/* Respostas ao organizador */
.bloco-resposta { margin-bottom: 14px; }
.bloco-resposta .cartao-titulo { padding: 0 2px; }
.email { border: 1px solid var(--linha); border-radius: 18px; overflow: hidden; background: #fff; }
.email + .email { margin-top: 10px; }
.email-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--linha); background: var(--fundo-2); }
.email-rotulo { font-size: 13px; font-weight: 650; display: inline-flex; align-items: center; gap: 6px; }
.email-rotulo::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--tinta-3); }
.email-enviada .email-rotulo { color: var(--verde); } .email-enviada .email-rotulo::before { background: var(--verde-forte); }
.email-previa .email-rotulo { color: var(--ambar); } .email-previa .email-rotulo::before { background: var(--ambar-forte); }
.email-cab { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; padding: 12px 14px 0; font-size: 14px; }
.email-cab dt { color: var(--tinta-3); }
.email-cab dd { margin: 0; word-break: break-word; }
.email-corpo { white-space: pre-wrap; padding: 12px 14px 16px; font-size: 15px; line-height: 1.55; }
.resp { margin-bottom: 18px; }
.resp-convite { display: flex; align-items: center; gap: 12px; padding: 4px 2px 10px; }
.resp-convite .capa { width: 34px; height: 34px; border-radius: 10px; font-size: 12.5px; }
.resp-convite > span:not(.capa) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.resp-org { font-size: 12.5px; color: var(--tinta-2); }
.resp-titulo { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resp-convite .ic { width: 16px; height: 16px; color: var(--tinta-3); }
.pagina-respostas .grupo-titulo { padding: 14px 2px 10px; }

.campo-codigo { text-align: center; font-size: 30px; font-weight: 650; letter-spacing: .35em; height: 64px; }
.login-sub { color: var(--tinta-2); margin: -16px 0 24px; }
.link-voltar { display: inline-block; margin-top: 18px; color: var(--tinta-2); font-size: 15px; }

/* Decisão: Aceitar / Recusar */
.par-botoes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.botao-acao { background: var(--fundo-3); color: var(--tinta); }
.botao-acao.acao-verde { color: var(--verde); }
.botao-acao.acao-vermelho { color: var(--vermelho); }
.botao-acao.acao-azul { color: var(--acento-texto); }
.botao-acao.sugerida.acao-verde { background: var(--verde-forte); color: #fff; }
.botao-acao.sugerida.acao-vermelho { background: var(--vermelho-forte); color: #fff; }
.botao-acao.sugerida.acao-azul, .botao-acao.sugerida.acao-neutro, .botao-acao.sugerida.acao-ambar { background: var(--tinta); color: #fff; }
.botao-texto-neutro { background: none; border: 0; color: var(--tinta-2); font: 550 15px var(--fonte); padding: 10px; cursor: pointer; }
@media (min-width: 900px) { .veredito-botoes { flex-direction: column; } .veredito-botoes > .botao-acao { width: 100%; } }

/* Agenda do dia */
.agenda-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.link-sutil { font-size: 13.5px; color: var(--acento-texto); font-weight: 550; }
.aviso-choque, .aviso-proximo { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; font-size: 14.5px; margin: 4px 0 8px; }
.aviso-choque { background: var(--vermelho-suave); color: #8c1d22; } .aviso-choque .ic { color: var(--vermelho); }
.aviso-proximo { background: var(--ambar-suave); color: #6e4100; } .aviso-proximo .ic { color: var(--ambar); }
.aviso-choque .ic, .aviso-proximo .ic { width: 18px; height: 18px; margin-top: 1px; }
.linha-tempo { list-style: none; margin: 4px 0 0; padding: 0; }
.lt { display: grid; grid-template-columns: 96px 1fr auto; gap: 10px; align-items: baseline; padding: 9px 0 9px 10px; border-left: 3px solid #e3e3e8; margin-left: 2px; }
.lt + .lt { border-top: 0.5px solid var(--linha); }
.lt-hora { font-size: 14px; color: var(--tinta-2); font-weight: 550; }
.lt-titulo { font-size: 15px; min-width: 0; }
.lt-tag { font-size: 12px; font-weight: 650; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.lt-este { border-left-color: var(--acento); background: var(--acento-suave); border-radius: 0 10px 10px 0; }
.lt-este .lt-titulo { font-weight: 650; } .lt-este .lt-tag { background: #fff; color: var(--acento-texto); }
.lt-conflito { border-left-color: var(--vermelho-forte); } .lt-conflito .lt-tag { background: var(--vermelho-suave); color: var(--vermelho); }
.lt-dia_todo { border-left-color: var(--vermelho-forte); } .lt-dia_todo .lt-tag { background: var(--vermelho-suave); color: var(--vermelho); }
.lt-proximo { border-left-color: var(--ambar-forte); } .lt-proximo .lt-tag { background: var(--ambar-suave); color: var(--ambar); }
.lt-analise, .lt-livre { color: var(--tinta-2); } .lt-analise .lt-tag { background: var(--fundo-3); color: var(--tinta-2); }
.choque-folha { display: flex; flex-direction: column; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--vermelho-suave); color: #8c1d22; }
.choque-folha[hidden] { display: none; }
.choque-folha p { display: flex; gap: 8px; font-size: 14.5px; } .choque-folha .ic { width: 18px; height: 18px; color: var(--vermelho); flex: none; margin-top: 1px; }

/* Barra fina de carregamento durante a troca de tela */
html.navegando::before { content: ''; position: fixed; z-index: 100; top: 0; left: 0; height: 2.5px; width: 100%; background: var(--acento); transform-origin: left; animation: carrega 1.2s cubic-bezier(.2, .8, .2, 1) infinite; }
@keyframes carrega { 0% { transform: scaleX(0); opacity: 1 } 70% { transform: scaleX(.85); opacity: 1 } 100% { transform: scaleX(1); opacity: 0 } }

/* Registro de atividades */
.integridade { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; font-size: 14px; font-weight: 550; margin-bottom: 14px; }
.integridade .ic { width: 18px; height: 18px; flex: none; }
.integridade.ok { background: var(--verde-suave); color: var(--verde); }
.integridade.falha { background: var(--vermelho-suave); color: var(--vermelho); }
.filtros-aud { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.filtros-aud .busca { margin: 0; }
.filtros-linha { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.filtros-linha select { min-height: 40px; height: 40px; padding: 6px 30px 6px 10px; font-size: 14px; background-color: var(--fundo-3); }
.filtros-aud > .botao { align-self: flex-start; }
.aud-dia { margin-top: 20px; }
.aud-lista { list-style: none; margin: 0; padding: 0; }
.aud { display: grid; grid-template-columns: 62px 30px 1fr; gap: 10px; padding: 11px 0; border-bottom: 0.5px solid var(--linha); align-items: start; }
.aud-hora { font-size: 13px; color: var(--tinta-3); padding-top: 5px; }
.aud-robo { background: var(--fundo-3); color: var(--tinta-2); }
.aud-robo .ic { width: 15px; height: 15px; }
.aud-sistema .aud-linha strong { color: var(--tinta-2); }
.aud-corpo { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 15px; }
.aud-linha strong { font-weight: 650; }
.aud-alvo { font-size: 14px; color: var(--acento-texto); font-weight: 500; }
.aud-detalhe { font-size: 13.5px; color: var(--tinta-2); word-break: break-word; }
.aud-origem { font-size: 12.5px; color: var(--tinta-3); }
.aud-acesso .aud-linha strong { color: var(--tinta); }
@media (max-width: 520px) { .filtros-linha { grid-template-columns: 1fr 1fr; } .filtros-linha select:last-child { grid-column: 1 / -1; } }
