/*
 * vestigia · interface forense local
 * Sem frameworks, fontes externas ou requisições de rede.
 */

:root {
  color-scheme: light;
  --noite: #07110f;
  --noite-2: #0b1815;
  --noite-3: #12231f;
  --superficie: #eef1ec;
  --cartao: #fffef9;
  --cartao-2: #f6f7f2;
  --campo: #fbfcf8;
  --tinta: #15231f;
  --tinta-2: #52635d;
  --tinta-3: #788781;
  --linha: #d9dfd9;
  --linha-forte: #bdc8c1;
  --evidencia: #19b889;
  --evidencia-forte: #08785a;
  --evidencia-suave: #dff5ed;
  --ouro: #c69645;
  --integro: #08785a;
  --integro-bg: #e5f7ef;
  --integro-borda: #9ed8c3;
  --violado: #b33a32;
  --violado-bg: #fcedea;
  --violado-borda: #edb7b0;
  --aviso: #8b641e;
  --aviso-bg: #fff8e7;
  --aviso-borda: #e7d29f;
  --sombra: 0 18px 50px rgba(4, 20, 15, 0.09);
  --sombra-suave: 0 8px 24px rgba(4, 20, 15, 0.06);
  --raio: 18px;
  --raio-menor: 11px;
  --mono: ui-monospace, 'SFMono-Regular', 'Cascadia Code', 'Roboto Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--noite);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 15% 5%, rgba(25, 184, 137, 0.12), transparent 28rem),
    radial-gradient(circle at 90% 18%, rgba(198, 150, 69, 0.08), transparent 24rem),
    var(--noite);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea { font: inherit; }

button { -webkit-tap-highlight-color: transparent; }
a { color: var(--evidencia-forte); }
code, .hash { font-family: var(--mono); }

.folha {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 40px;
}

/* ===== Marca ===== */
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 0 4px 28px;
  color: #f4f8f5;
}

.masthead__marca,
.masthead__acoes {
  display: flex;
  align-items: center;
}

.masthead__marca { gap: 1rem; }
.masthead__acoes { gap: 0.8rem; }

.selo-marca {
  width: 54px;
  height: 54px;
  flex: none;
  display: block;
  filter: drop-shadow(0 8px 20px rgba(25, 184, 137, 0.18));
}

.selo-marca svg { width: 100%; height: 100%; }
.selo-marca__anel { fill: rgba(25, 184, 137, 0.08); stroke: var(--evidencia); stroke-width: 2; }
.selo-marca__anel-int { fill: none; stroke: var(--evidencia); stroke-width: 1; stroke-dasharray: 2.2 2.2; opacity: 0.65; }
.selo-marca__grifo { fill: none; stroke: #d9fff3; stroke-width: 2; stroke-linecap: round; }

.masthead__eyebrow,
.hero-app__kicker,
.painel-intro__kicker {
  margin: 0 0 0.35rem;
  color: var(--evidencia);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.masthead__nome {
  margin: 0;
  color: #f7fbf8;
  font-family: var(--mono);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.masthead__tagline {
  margin: 0.4rem 0 0;
  color: #99aaa4;
  font-size: 0.78rem;
}

.status-local,
.link-codigo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 38px;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(215, 238, 230, 0.14);
  border-radius: 999px;
  color: #cbd8d3;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-decoration: none;
}

.status-local span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--evidencia);
  box-shadow: 0 0 0 4px rgba(25, 184, 137, 0.12);
}

.link-codigo { transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease; }
.link-codigo:hover { color: #fff; border-color: rgba(25, 184, 137, 0.5); background: rgba(25, 184, 137, 0.08); }

/* ===== Abertura ===== */
.hero-app {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(1.7rem, 3vw, 2.6rem);
  border: 1px solid rgba(218, 239, 232, 0.12);
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  background: var(--noite-2);
  color: #f4f8f5;
}

.hero-app h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 680;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.hero-app__texto > p:last-child {
  max-width: 62ch;
  margin: 0.9rem 0 0;
  color: #aebdb8;
  font-size: clamp(0.96rem, 1.6vw, 1.08rem);
}

.hero-app__ficha {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid rgba(214, 237, 228, 0.15);
}

.hero-app__ficha div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(214, 237, 228, 0.15);
}

.hero-app__ficha dt {
  color: #7f918a;
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-app__ficha dd {
  margin: 0;
  color: #e7f0ed;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-align: right;
}

/* ===== Aviso e navegação ===== */
.aviso-permanente {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin: 0;
  padding: 1rem clamp(1.2rem, 4vw, 2.2rem);
  border-inline: 1px solid rgba(218, 239, 232, 0.12);
  background: #0e1d19;
  color: #99aaa4;
  font-size: 0.78rem;
}

.aviso-permanente__tag {
  flex: none;
  margin-top: 0.05rem;
  padding: 0.18rem 0.48rem;
  border: 1px solid rgba(198, 150, 69, 0.48);
  border-radius: 999px;
  color: #e6bd77;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.aviso-permanente strong { color: #dce7e3; }

.abas {
  display: flex;
  gap: 0.45rem;
  margin: 0;
  padding: 0 1.25rem;
  border-inline: 1px solid rgba(218, 239, 232, 0.12);
  background: #0e1d19;
}

.aba {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 58px;
  padding: 0 1rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #81938c;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.aba span { color: #5e716a; font-family: var(--mono); font-size: 0.61rem; }
.aba:hover { color: #e6efec; }
.aba--ativa { color: #f7fbf9; border-bottom-color: var(--evidencia); }
.aba--ativa span { color: var(--evidencia); }

/* ===== Área de trabalho ===== */
.conteudo {
  min-height: 540px;
  padding: clamp(1.4rem, 4vw, 3.2rem);
  border-radius: 0 0 26px 26px;
  background: var(--superficie);
  box-shadow: var(--sombra);
}

.painel.oculto,
.oculto { display: none !important; }

.painel-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin: 0 0 2rem;
}

.painel-intro h2 {
  max-width: 25ch;
  margin: 0;
  color: var(--tinta);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.painel-intro > div > p:last-child {
  max-width: 65ch;
  margin: 0.65rem 0 0;
  color: var(--tinta-2);
  font-size: 0.92rem;
}

.toolbar {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.grade-blocos { display: grid; gap: 1rem; }
.grade-blocos--dupla { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.bloco {
  margin: 0 0 1rem;
  padding: clamp(1.25rem, 3vw, 1.8rem);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  background: var(--cartao);
  box-shadow: var(--sombra-suave);
}

.grade-blocos .bloco { margin-bottom: 0; }

.bloco__cab {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.25rem;
}

.bloco__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-width: 34px;
  height: 26px;
  padding: 0 0.45rem;
  border: 1px solid #a9d9c9;
  border-radius: 999px;
  background: var(--evidencia-suave);
  color: var(--evidencia-forte);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bloco__cab h2 {
  margin: 0;
  color: var(--tinta);
  font-size: 1.04rem;
  font-weight: 750;
  letter-spacing: -0.018em;
}

.texto-auxiliar {
  max-width: 68ch;
  margin: -0.35rem 0 1.1rem;
  color: var(--tinta-2);
  font-size: 0.8rem;
}

.campo .texto-auxiliar { margin: 0.12rem 0 0; }

/* ===== Campos ===== */
.campo {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  margin-bottom: 1rem;
}

.campo label { color: #344840; font-size: 0.76rem; font-weight: 750; }

input[type='text'],
input[type='datetime-local'],
input[type='file'],
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--linha-forte);
  border-radius: var(--raio-menor);
  outline: none;
  background: var(--campo);
  color: var(--tinta);
  font-size: 0.86rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input::placeholder,
textarea::placeholder { color: #92a09a; }

input[type='file'] {
  padding: 0.48rem;
  color: var(--tinta-2);
  font-family: var(--mono);
  font-size: 0.72rem;
}

input[type='file']::file-selector-button {
  margin-right: 0.8rem;
  padding: 0.52rem 0.78rem;
  border: 0;
  border-radius: 8px;
  background: var(--noite-3);
  color: #eef7f4;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 750;
  cursor: pointer;
}

textarea { min-height: 88px; resize: vertical; }

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--evidencia-forte);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(25, 184, 137, 0.11);
}

button:focus-visible,
.aba:focus-visible,
a:focus-visible { outline: 3px solid rgba(25, 184, 137, 0.4); outline-offset: 3px; }

.form-evento {
  padding: 1.15rem;
  border: 1px solid var(--linha);
  border-radius: 14px;
  background: var(--cartao-2);
}

.form-evento__grade {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 0.9rem;
}

/* ===== Botões ===== */
.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.62rem 1rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.botao:hover:not(:disabled) { transform: translateY(-1px); }
.botao:active:not(:disabled) { transform: translateY(0); }
.botao:disabled { opacity: 0.42; cursor: not-allowed; }

.botao--primario {
  border-color: var(--noite-3);
  background: var(--noite-3);
  color: #f4faf7;
  box-shadow: 0 7px 16px rgba(8, 24, 20, 0.12);
}
.botao--primario:hover:not(:disabled) { border-color: #174d3f; background: #174d3f; }

.botao--secundario { border-color: #9fccc0; background: var(--evidencia-suave); color: #075e47; }
.botao--secundario:hover:not(:disabled) { border-color: var(--evidencia-forte); background: #d1f0e5; }

.botao--fantasma { border-color: var(--linha-forte); background: rgba(255,255,255,0.55); color: var(--tinta-2); }
.botao--fantasma:hover { border-color: #86978f; color: var(--tinta); background: #fff; }
.botao--perigo:hover { border-color: #d3a29d; color: var(--violado); }

.botao-icone {
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--linha-forte);
  border-radius: 7px;
  background: #fff;
  color: var(--tinta-2);
  font-family: var(--mono);
  font-size: 0.64rem;
  cursor: pointer;
}
.botao-icone:hover { border-color: var(--evidencia-forte); color: var(--evidencia-forte); }

.acoes-evento { display: flex; flex-wrap: wrap; gap: 0.35rem; min-width: 120px; }

.botoes-linha { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 0.7rem; }

/* ===== Mensagens e progresso ===== */
.mensagem {
  margin-top: 0.85rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.8rem;
}
.mensagem--erro { border-color: var(--violado-borda); background: var(--violado-bg); color: #7f2a24; }
.mensagem--sucesso { border-color: var(--integro-borda); background: var(--integro-bg); color: #075b44; }
.mensagem--aviso { border-color: var(--aviso-borda); background: var(--aviso-bg); color: #6e4c12; }
.mensagem--topo { margin: -1rem 0 1.4rem; }

.progresso { margin: 0.9rem 0; }
.progresso__barra-fundo { height: 7px; overflow: hidden; border-radius: 999px; background: #dce5df; }
.progresso__barra { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--evidencia-forte), var(--evidencia)); transition: width 0.12s ease; }
.progresso span { display: inline-block; margin-top: 0.45rem; color: var(--tinta-2); font-family: var(--mono); font-size: 0.68rem; }

/* ===== Selo e dados ===== */
.selo {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #b8ded1;
  border-radius: 14px;
  background: linear-gradient(135deg, #f0faf6, #f8fbf8);
}

.selo__medalha {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border: 2px solid var(--evidencia-forte);
  border-radius: 50%;
  color: var(--evidencia-forte);
  font-family: var(--mono);
  line-height: 1;
  box-shadow: 0 0 0 4px #e2f6ef;
}

.selo__algoritmo { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.14em; }
.selo__num { margin-top: 0.15rem; font-size: 1.25rem; font-weight: 800; }

.selo__previa {
  grid-column: 1 / -1;
  margin: 0 0 0.15rem;
}

.selo__previa img {
  display: block;
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border: 1px solid var(--linha);
  border-radius: 10px;
  background: #101815;
}

.selo__previa figcaption {
  margin-top: 0.4rem;
  color: var(--tinta-3);
  font-size: 0.68rem;
}

.selo__ficha,
.lista-definicao {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.42rem 0.85rem;
  margin: 0;
  font-size: 0.78rem;
}

.selo__ficha dt,
.lista-definicao dt {
  padding-top: 0.12rem;
  color: var(--tinta-3);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.arquivo-input-real {
  position: absolute;
  width: 1px !important;
  height: 1px;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.arquivo-drop {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 70px;
  padding: 0.7rem;
  border: 1px dashed #777d78;
  background:
    repeating-linear-gradient(135deg, transparent 0 9px, rgba(23, 28, 26, 0.025) 9px 10px),
    #f7f5ed;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.arquivo-drop:hover { border-color: var(--sinal); background-color: #fff8ef; }
.arquivo-input-real:focus-visible + .arquivo-drop { outline: 3px solid rgba(255, 105, 56, 0.3); outline-offset: 2px; }
.arquivo-drop__marca {
  display: grid;
  place-items: center;
  flex: none;
  min-width: 54px;
  height: 42px;
  padding: 0 0.45rem;
  background: var(--sinal);
  color: #171c1a;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 900;
}
.arquivo-drop strong, .arquivo-drop small { display: block; }
.arquivo-drop strong { color: var(--tinta); font-family: var(--mono); font-size: 0.7rem; }
.arquivo-drop small { margin-top: 0.18rem; color: var(--tinta-3); font-size: 0.64rem; font-weight: 500; }

.selo__ficha dd,
.lista-definicao dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }

.selo__hash { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; }
.selo__hash .hash { flex: 1 1 320px; word-break: break-all; }

.metadados-exif {
  margin-top: 0.85rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--linha);
  border-radius: 12px;
  background: var(--cartao-2);
}

.metadados-exif__cab { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.metadados-exif__cab h3 { margin: 0; font-size: 0.88rem; }
.metadados-exif__contador {
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: var(--evidencia-suave);
  color: var(--evidencia-forte);
  font-family: var(--mono);
  font-size: 0.64rem;
  white-space: nowrap;
}
.metadados-exif__lista { margin-top: 0.75rem; padding: 0; border: 0; background: transparent; }
.metadados-exif__lista dt small { display: block; margin-top: 0.12rem; font-size: 0.55rem; opacity: 0.72; }

.lista-definicao {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--linha);
  border-radius: 12px;
  background: var(--cartao-2);
}

.hash {
  display: inline-block;
  padding: 0.32rem 0.45rem;
  border: 1px solid #d6ded8;
  border-radius: 7px;
  background: #f2f5f1;
  color: #23423a;
  font-size: 0.72rem;
}

.lista-definicao dd.hash,
.cotejo .hash { display: block; word-break: break-all; }

/* ===== Tabelas ===== */
.ledger-wrap { overflow-x: auto; }

.tabela {
  width: 100%;
  margin-top: 1rem;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.77rem;
}

.tabela th,
.tabela td {
  padding: 0.72rem 0.65rem;
  border-bottom: 1px solid var(--linha);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.tabela thead th {
  border-bottom: 1px solid var(--linha-forte);
  color: var(--tinta-3);
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.tabela tbody tr:hover { background: #f7faf7; }

.ledger tbody { counter-reset: elo; }
.ledger tbody tr { counter-increment: elo; }
.ledger tbody td:first-child {
  position: relative;
  min-width: 150px;
  padding-left: 2.45rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  white-space: nowrap;
}
.ledger tbody td:first-child::before {
  content: counter(elo, decimal-leading-zero);
  position: absolute;
  z-index: 1;
  left: 0.45rem;
  top: 0.65rem;
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: var(--noite-3);
  color: #eafff7;
  font-size: 0.57rem;
}
.ledger tbody td:first-child::after {
  content: '';
  position: absolute;
  left: calc(1.175rem - 1px);
  top: 0;
  bottom: 0;
  width: 2px;
  background: #cbd8d1;
}
.ledger tbody tr:first-child td:first-child::after { top: 0.65rem; }
.ledger tbody tr:last-child td:first-child::after { bottom: auto; height: 0.65rem; }

.estado-vazio {
  margin-top: 0.7rem;
  padding: 1rem;
  border: 1px dashed var(--linha-forte);
  border-radius: 12px;
  color: var(--tinta-3);
  font-size: 0.8rem;
  text-align: center;
}

.cotejo { table-layout: fixed; }
.cotejo th { width: 35%; color: var(--tinta-2); font-size: 0.67rem; text-transform: uppercase; }

/* ===== Veredito ===== */
.resultado-verificacao {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: 1.8rem 1.2rem;
  border: 1px solid var(--linha);
  border-radius: 14px;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.resultado-verificacao::before { content: ''; width: 82px; height: 82px; background: center / contain no-repeat; }
.resultado-verificacao--integro { border-color: var(--integro-borda); background: var(--integro-bg); color: #075b44; }
.resultado-verificacao--integro::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2080%2080'%3E%3Ccircle%20cx='40'%20cy='40'%20r='30'%20fill='none'%20stroke='%2308785a'%20stroke-width='3'/%3E%3Ccircle%20cx='40'%20cy='40'%20r='23'%20fill='none'%20stroke='%2308785a'%20stroke-width='1.4'%20stroke-dasharray='3%203'/%3E%3Cpath%20d='M29%2041%20l7%208%20l16%20-18'%20fill='none'%20stroke='%2308785a'%20stroke-width='4'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E"); }
.resultado-verificacao--violado { border-color: var(--violado-borda); background: var(--violado-bg); color: #812b25; }
.resultado-verificacao--violado::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2080%2080'%3E%3Ccircle%20cx='40'%20cy='40'%20r='30'%20fill='none'%20stroke='%23b33a32'%20stroke-width='3'/%3E%3Ccircle%20cx='40'%20cy='40'%20r='23'%20fill='none'%20stroke='%23b33a32'%20stroke-width='1.4'%20stroke-dasharray='3%203'/%3E%3Cpath%20d='M40%206%20l-7%2019%20l11%209%20l-11%2013%20l9%2027'%20fill='none'%20stroke='%23b33a32'%20stroke-width='4'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* ===== Texto técnico ===== */
.documento { padding: clamp(1.5rem, 5vw, 3rem); }
.documento p, .documento h3 { font-family: var(--serif); }
.documento p { max-width: 72ch; margin: 0 0 1.15rem; color: #33413c; font-size: 1rem; line-height: 1.78; }
.documento h3 { margin: 2rem 0 0.55rem; color: var(--tinta); font-size: 1.14rem; }

/* ===== Rodapé ===== */
.rodape { padding: 2rem 1rem 0; color: #81938c; font-family: var(--mono); font-size: 0.68rem; text-align: center; }
.rodape p { margin: 0.25rem 0; }
.rodape strong { color: #c7d5d0; }
.rodape__aviso { color: #60736c; }

/* ===== Responsividade ===== */
@media (max-width: 900px) {
  .hero-app { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero-app__ficha { max-width: 520px; }
  .grade-blocos--dupla { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .folha { width: 100%; padding: 20px 0 28px; }
  .masthead { padding-inline: 18px; align-items: flex-start; }
  .masthead__acoes { align-items: flex-end; flex-direction: column; }
  .status-local { display: none; }
  .hero-app { padding: 1.5rem 1.25rem; border-inline: 0; border-radius: 20px 20px 0 0; }
  .hero-app h2 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .aviso-permanente { border-inline: 0; }
  .abas { overflow-x: auto; padding-inline: 0.65rem; border-inline: 0; scrollbar-width: none; }
  .abas::-webkit-scrollbar { display: none; }
  .aba { flex: 0 0 auto; padding-inline: 0.7rem; }
  .conteudo { padding: 1.2rem; border-radius: 0 0 20px 20px; }
  .painel-intro { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .toolbar { justify-content: flex-start; }
  .form-evento__grade { grid-template-columns: 1fr; }
  .selo { grid-template-columns: 1fr; }
  .selo__medalha { margin: 0 auto; }
  .selo__ficha, .lista-definicao { grid-template-columns: 1fr; gap: 0.15rem; }
  .selo__ficha dd, .lista-definicao dd { margin-bottom: 0.55rem; }
  .botoes-linha .botao { flex: 1 1 100%; }
  .cotejo { table-layout: auto; }
  .cotejo th, .cotejo td { display: block; width: 100%; }
  .cotejo th { padding-bottom: 0.2rem; border-bottom: 0; }
  .cotejo td { padding-top: 0.2rem; }
}

@media (max-width: 440px) {
  .masthead__tagline { display: none; }
  .masthead__acoes { display: none; }
  .aviso-permanente { flex-direction: column; }
  .bloco { padding: 1.1rem; border-radius: 14px; }
  .toolbar .botao { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  body { background: #fff; }
  .folha { width: 100%; padding: 0; }
  .masthead { color: var(--tinta); }
  .masthead__nome { color: var(--tinta); }
  .masthead__acoes, .hero-app, .aviso-permanente, .abas, .toolbar, .rodape { display: none; }
  .conteudo { padding: 0; box-shadow: none; background: #fff; }
  .bloco { break-inside: avoid; box-shadow: none; }
}

/* Recursos operacionais v2 */
.pular-conteudo {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 0.65rem 0.9rem;
  transform: translateY(-150%);
  background: #fff;
  color: #111;
  font-weight: 800;
}
.pular-conteudo:focus { transform: translateY(0); }
.status-rascunho {
  padding: 0.32rem 0.5rem;
  border: 1px solid #43504b;
  color: #9cafaa;
  font: 700 0.57rem/1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.status-rascunho--pendente { border-color: #b78b42; color: #f0c67c; }
.caso-barra {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
  padding: 0.85rem;
  border: 1px solid #c9c7bd;
  border-left: 4px solid var(--evidencia);
  background: #ebe9e0;
}
.caso-barra__kicker { display: block; margin-bottom: 0.3rem; color: #68726e; font: 800 0.56rem var(--mono); letter-spacing: 0.11em; text-transform: uppercase; }
.caso-barra input { width: 100%; font-weight: 750; }
.caso-barra__acoes { display: flex; align-items: end; flex-wrap: wrap; gap: 0.4rem; }
.caso-barra__acoes select { min-height: 38px; max-width: 210px; }
.caso-evidencias { display: flex; grid-column: 1 / -1; gap: 0.4rem; overflow-x: auto; }
.caso-evidencias__vazio { color: #777e7a; font: 0.65rem var(--mono); }
.caso-evidencia { min-width: 185px; padding: 0.55rem 0.65rem; border: 1px solid #bbbcb4; background: #f6f4ed; text-align: left; cursor: pointer; }
.caso-evidencia strong, .caso-evidencia small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.caso-evidencia small { margin-top: 0.2rem; color: #68716d; font: 0.58rem var(--mono); }
.caso-evidencia--ativa { border-color: #146c55; box-shadow: inset 3px 0 #16a77e; }
.arquivo-drop--ativo { border-color: var(--evidencia) !important; background: #e6f7f1 !important; }
.ledger-ferramentas { display: grid; grid-template-columns: auto minmax(180px, 360px) 1fr; align-items: center; gap: 0.6rem; margin-top: 1rem; }
.ledger-ferramentas label, .ledger-ferramentas__contador { color: #68716d; font: 750 0.62rem var(--mono); }
.ledger-ferramentas__contador { text-align: right; }
.elo-selo { display: block; width: max-content; margin-top: 0.3rem; padding: 0.15rem 0.27rem; background: #26332f; color: #b6d8cd; font: 700 0.49rem var(--mono); text-transform: uppercase; }
.elo-selo--rascunho { background: #e4d9bd; color: #71571f; }
.evento--bloqueado td { background: #ecece7 !important; }
.retificacao-ref, .anexos-resumo { display: block; margin-top: 0.3rem; color: #69736f; font: 0.56rem var(--mono); word-break: break-all; }
.estado-manifesto { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.8rem; }
.estado-manifesto span { padding: 0.3rem 0.5rem; border: 1px solid #c4c5be; background: #efeee8; color: #58615e; font: 700 0.58rem var(--mono); }
.painel-qr { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1rem; margin-top: 1rem; padding: 0.8rem; border: 1px solid #c5c6bf; background: #f4f2eb; }
.painel-qr h3 { margin: 0 0 0.25rem; font-size: 0.85rem; }
.painel-qr p { margin: 0; color: #65706b; font: 0.6rem var(--mono); word-break: break-all; }
.codigo-qr svg { display: block; width: 104px; height: 104px; background: #fff; }
.comparacao-revisoes { margin-top: 0.8rem; }
.comparacao-resumo { display: flex; justify-content: space-between; gap: 1rem; padding: 0.65rem; border-left: 4px solid #16805f; background: #e5f1ec; }
.comparacao-resumo--alerta { border-color: #ae3c31; background: #f6e7e4; }
.comparacao-resumo span { color: #59635f; font-size: 0.72rem; }

@media (max-width: 760px) {
  .caso-barra { grid-template-columns: 1fr; }
  .caso-barra__acoes { align-items: stretch; }
  .caso-evidencias { grid-column: 1; }
  .ledger-ferramentas { grid-template-columns: 1fr; }
  .ledger-ferramentas__contador { text-align: left; }
  .painel-qr { grid-template-columns: 1fr; }
  .codigo-qr svg { width: 140px; height: 140px; }
}

/* ===========================================================================
   VESTIGIA 1.4 · DOSSIÊ FORENSE
   Uma linguagem de bancada técnica: papel, carimbo, trilha e terminal.
   ========================================================================== */

:root {
  --noite: #111615;
  --noite-2: #171d1b;
  --noite-3: #202824;
  --superficie: #e9e7df;
  --cartao: #f8f6ef;
  --cartao-2: #efede5;
  --campo: #fffdf6;
  --tinta: #171c1a;
  --tinta-2: #505a56;
  --tinta-3: #78807c;
  --linha: #d0cec4;
  --linha-forte: #aaa99f;
  --evidencia: #20d6a4;
  --evidencia-forte: #087e60;
  --evidencia-suave: #d8f4e9;
  --sinal: #ff6938;
  --sinal-suave: #fff0e9;
  --sombra: 10px 12px 0 rgba(0, 0, 0, 0.2);
  --sombra-suave: 4px 5px 0 rgba(17, 22, 21, 0.08);
  --raio: 5px;
  --raio-menor: 3px;
}

html { background: #0d1110; }

body {
  background-color: #0d1110;
  background-image:
    linear-gradient(rgba(54, 76, 68, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(54, 76, 68, 0.12) 1px, transparent 1px),
    radial-gradient(circle at 12% 5%, rgba(32, 214, 164, 0.09), transparent 28rem);
  background-size: 32px 32px, 32px 32px, auto;
}

.folha {
  width: min(1240px, calc(100% - 48px));
  padding: 22px 0 38px;
}

.masthead {
  min-height: 66px;
  padding: 0 2px 14px;
}

.masthead__marca { gap: 0.75rem; }
.selo-marca { width: 42px; height: 42px; filter: none; }
.selo-marca__anel { fill: #17221e; stroke: var(--sinal); stroke-width: 1.8; }
.selo-marca__grifo { fill: none; stroke: var(--evidencia); stroke-width: 1.7; stroke-linecap: round; }
.masthead__eyebrow { margin-bottom: 0.1rem; color: #8da09a; font-size: 0.56rem; }
.masthead__nome { font-size: 1.75rem; letter-spacing: -0.06em; }
.masthead__tagline { margin-top: 0.15rem; color: #74847e; font-family: var(--mono); font-size: 0.63rem; }
.status-local, .link-codigo { min-height: 32px; border-radius: 3px; font-size: 0.63rem; }
.status-local { border-color: rgba(32, 214, 164, 0.3); }

.hero-app {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(470px, 0.9fr);
  gap: 2rem;
  min-height: auto;
  padding: 1.25rem 1.6rem;
  border: 1px solid #37423e;
  border-top: 3px solid var(--sinal);
  border-radius: 4px 4px 0 0;
  background:
    linear-gradient(90deg, rgba(255, 105, 56, 0.035), transparent 32%),
    #151b19;
}

.hero-app::after {
  content: 'VSTG // LOCAL // SHA256';
  position: absolute;
  right: 1.2rem;
  top: -0.72rem;
  padding: 0.18rem 0.48rem;
  background: var(--sinal);
  color: #161a18;
  font-family: var(--mono);
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero-app__kicker { margin-bottom: 0.25rem; color: var(--evidencia); font-size: 0.57rem; }
.hero-app h2 { font-family: var(--mono); font-size: clamp(1.35rem, 2.4vw, 1.9rem); letter-spacing: -0.055em; }
.hero-app__texto > p:last-child { margin-top: 0.45rem; font-size: 0.82rem; line-height: 1.5; }
.hero-app__ficha { grid-template-columns: repeat(3, 1fr); border: 1px solid #313b37; }
.hero-app__ficha div { display: block; padding: 0.72rem 0.8rem; border: 0; border-right: 1px solid #313b37; }
.hero-app__ficha div:last-child { border-right: 0; }
.hero-app__ficha dt { font-size: 0.53rem; }
.hero-app__ficha dd { margin-top: 0.32rem; font-size: 0.66rem; text-align: left; }

.aviso-permanente {
  align-items: center;
  padding: 0.65rem 1.35rem;
  border: 1px solid #37423e;
  border-top: 3px solid var(--sinal);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  background: #1b211f;
  color: #94a09c;
  font-size: 0.68rem;
}

.aviso-permanente__tag {
  border: 0;
  border-radius: 2px;
  background: #3a2b20;
  color: #ffb08f;
}

.abas {
  position: sticky;
  z-index: 20;
  top: 0;
  gap: 0;
  padding: 0;
  border: 1px solid #37423e;
  border-top: 0;
  background: rgba(17, 22, 21, 0.96);
  backdrop-filter: blur(10px);
}

.aba {
  min-height: 44px;
  padding: 0 1.35rem;
  border-right: 1px solid #303936;
  border-bottom-width: 3px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.01em;
}
.aba--ativa { background: #1a211e; border-bottom-color: var(--sinal); }
.aba--ativa span { color: var(--sinal); }

.conteudo {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2.25rem);
  border-radius: 0 0 4px 4px;
  background-color: var(--superficie);
  background-image:
    linear-gradient(rgba(23, 28, 26, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 28, 26, 0.028) 1px, transparent 1px);
  background-size: 24px 24px;
  box-shadow: var(--sombra);
}

.conteudo::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: repeating-linear-gradient(to bottom, var(--sinal) 0 28px, #1b211f 28px 38px);
}

.painel-intro { align-items: center; margin-bottom: 1.25rem; }
.painel-intro__kicker { margin-bottom: 0.2rem; color: var(--sinal); font-size: 0.58rem; }
.painel-intro h2 { max-width: none; font-family: var(--mono); font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
.painel-intro > div > p:last-child { margin-top: 0.3rem; font-size: 0.78rem; }

.toolbar { gap: 0.4rem; }

.grade-blocos { gap: 0.8rem; }
.grade-blocos--dupla { grid-template-columns: minmax(0, 1.45fr) minmax(285px, 0.75fr); }

.bloco {
  position: relative;
  margin-bottom: 0.8rem;
  padding: clamp(1.05rem, 2.4vw, 1.4rem);
  border: 1px solid var(--linha-forte);
  border-radius: var(--raio);
  background: var(--cartao);
  box-shadow: var(--sombra-suave);
}

.bloco::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-top: 1px solid #b9b6aa;
  border-right: 1px solid #b9b6aa;
}

.bloco__cab { gap: 0.65rem; margin-bottom: 0.9rem; }
.bloco__label {
  min-width: 31px;
  height: 24px;
  border: 0;
  border-radius: 2px;
  background: var(--tinta);
  color: #f8f6ef;
  font-size: 0.58rem;
  transform: rotate(-1.5deg);
}
.bloco__cab h2 { font-family: var(--mono); font-size: 0.92rem; letter-spacing: -0.03em; }
.texto-auxiliar { font-size: 0.72rem; }

.campo { gap: 0.3rem; margin-bottom: 0.8rem; }
.campo label { font-family: var(--mono); font-size: 0.65rem; letter-spacing: -0.01em; }

input[type='text'], input[type='datetime-local'], input[type='file'], select, textarea {
  min-height: 43px;
  border: 1px solid #aaa99f;
  border-radius: 3px;
  background: #fffdf7;
  font-size: 0.78rem;
}

input[type='file'] {
  min-height: 68px;
  padding: 0.62rem;
  border: 1px dashed #777d78;
  background:
    repeating-linear-gradient(135deg, transparent 0 9px, rgba(23, 28, 26, 0.025) 9px 10px),
    #f7f5ed;
}

input[type='file']::file-selector-button {
  min-height: 42px;
  border-radius: 2px;
  background: var(--sinal);
  color: #171c1a;
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
}

input:focus-visible, select:focus-visible, textarea:focus-visible {
  border-color: var(--sinal);
  box-shadow: 0 0 0 3px rgba(255, 105, 56, 0.16);
}

.form-evento {
  padding: 1rem;
  border: 1px solid #b7b5aa;
  border-left: 4px solid var(--evidencia-forte);
  border-radius: 2px;
  background: #efede5;
}

.botao {
  min-height: 38px;
  padding: 0.55rem 0.8rem;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
}
.botao--primario { border-color: #171c1a; background: #171c1a; box-shadow: 3px 3px 0 rgba(255, 105, 56, 0.35); }
.botao--primario:hover:not(:disabled) { border-color: #252d2a; background: #252d2a; }
.botao--secundario { border-color: #078060; background: #dff5ed; color: #075b46; }
.botao--fantasma { background: #f8f6ef; }
.botao-icone { border-radius: 2px; font-size: 0.59rem; text-transform: uppercase; }

.mensagem { border-radius: 2px; font-family: var(--mono); font-size: 0.68rem; }
.progresso__barra-fundo, .progresso__barra { border-radius: 0; }
.progresso__barra { background: linear-gradient(90deg, var(--sinal), var(--evidencia)); }

.selo {
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0.9rem;
  border: 1px solid #343e3a;
  border-radius: 3px;
  background: #171d1b;
  color: #dbe4e0;
}

.selo__medalha {
  width: 60px;
  height: 60px;
  border-color: var(--sinal);
  border-radius: 3px;
  color: var(--sinal);
  box-shadow: 4px 4px 0 rgba(32, 214, 164, 0.15);
  transform: rotate(-2deg);
}
.selo__ficha dt { color: #7f918a; }
.selo__ficha dd { color: #e4ece8; }
.selo__previa img { border-radius: 2px; background: #090c0b; }
.selo__previa figcaption { color: #84938e; }
.selo .hash { border-color: #35433e; background: #0e1311; color: #57e3bc; }
.selo .botao-icone { border-color: #495853; background: #222b28; color: #d8e2de; }

.metadados-exif {
  border: 1px solid #35403c;
  border-radius: 3px;
  background: #1b211f;
  color: #d9e2de;
}
.metadados-exif__cab h3 { color: #f2f6f4; font-family: var(--mono); font-size: 0.75rem; }
.metadados-exif__contador { border-radius: 2px; background: #303d38; color: var(--evidencia); }
.metadados-exif .texto-auxiliar { color: #8d9b96; }
.metadados-exif__lista { grid-template-columns: minmax(130px, 0.45fr) minmax(0, 1fr); }
.metadados-exif__lista dt { color: #71817b; }
.metadados-exif__lista dd { color: #dfe8e4; font-family: var(--mono); font-size: 0.69rem; }

.lista-definicao { border-radius: 3px; }
.hash { border-radius: 2px; }

.ledger-wrap { margin-top: 0.5rem; overflow: visible; }
.ledger { border-collapse: separate; border-spacing: 0 7px; }
.ledger thead th { padding-bottom: 0.35rem; border: 0; color: #6c7470; }
.ledger tbody td {
  padding: 0.75rem 0.62rem;
  border-top: 1px solid #c8c6bc;
  border-bottom: 1px solid #c8c6bc;
  background: #f2f0e8;
}
.ledger tbody td:first-child { border-left: 3px solid var(--sinal); }
.ledger tbody td:last-child { border-right: 1px solid #c8c6bc; }
.ledger tbody tr:hover td { background: #fffaf0; }
.ledger tbody td:first-child::before { border-radius: 2px; background: var(--sinal); color: #171c1a; }
.ledger tbody td:first-child::after { background: #b8b5a9; }

.estado-vazio { border-radius: 2px; background: rgba(255, 255, 255, 0.25); font-family: var(--mono); }
.resultado-verificacao { border-radius: 3px; }
.documento p { color: #373d3a; }

.rodape { padding-top: 1.4rem; color: #74837d; }

@media (max-width: 900px) {
  .hero-app { grid-template-columns: 1fr; gap: 0.9rem; }
  .hero-app__ficha { max-width: none; }
  .grade-blocos--dupla { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .folha { width: 100%; padding-top: 12px; }
  .masthead { padding-inline: 14px; }
  .hero-app { padding: 1.1rem 1rem; border-inline: 0; border-radius: 0; }
  .hero-app::after { right: 0.8rem; }
  .hero-app h2 { font-size: 1.35rem; }
  .hero-app__texto > p:last-child { font-size: 0.75rem; }
  .hero-app__ficha { display: none; }
  .abas { border-inline: 0; }
  .conteudo { padding: 1.1rem 0.9rem 1.3rem 1.05rem; border-radius: 0; }
  .painel-intro { align-items: flex-start; }
  .selo { grid-template-columns: 1fr; }
  .selo__medalha { margin: 0; }
  .metadados-exif__lista { grid-template-columns: 1fr; }
  .ledger-wrap { overflow: visible; }
  .ledger, .ledger tbody { display: block; }
  .ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ledger tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 0.75rem;
    border: 1px solid #c8c6bc;
    border-left: 4px solid var(--sinal);
    background: #f2f0e8;
  }
  .ledger tbody td, .ledger tbody td:first-child, .ledger tbody td:last-child {
    display: block;
    min-width: 0;
    padding: 0.65rem;
    border: 0;
    background: transparent;
    white-space: normal;
  }
  .ledger tbody td:first-child { grid-column: 1 / -1; padding-left: 2.55rem; border-bottom: 1px solid #d3d0c6; }
  .ledger tbody td:nth-child(5) { grid-column: 1 / -1; }
  .ledger tbody td:last-child { grid-column: 1 / -1; border-top: 1px solid #d3d0c6; }
  .ledger tbody td:first-child::after { display: none; }
  .ledger tbody td:nth-child(n+2)::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.2rem;
    color: #7a817d;
    font-family: var(--mono);
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
}

@media (max-width: 440px) {
  .masthead__marca { gap: 0.55rem; }
  .selo-marca { width: 36px; height: 36px; }
  .masthead__nome { font-size: 1.5rem; }
  .aviso-permanente { align-items: flex-start; flex-direction: row; padding-inline: 1rem; font-size: 0.62rem; }
  .bloco { padding: 0.95rem; border-radius: 3px; }
  .toolbar { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .toolbar #btn-continuar { grid-column: 1 / -1; }
  .toolbar .botao { min-width: 0; }
  .ledger tbody tr { grid-template-columns: 1fr; }
  .ledger tbody td { grid-column: 1 / -1; }
}

@media print {
  .conteudo::before, .hero-app::after { display: none; }
  .bloco, .conteudo { box-shadow: none; }
  .selo, .metadados-exif { color: #111; background: #fff; }
}

/* ===== Fluxo simples e recursos recolhidos ===== */
.fluxo-passos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 0.35rem;
  padding: 0;
  list-style: none;
}

.fluxo-passos li {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.55rem;
  padding: 0.55rem 0.7rem 0.65rem;
  border-top: 2px solid #c9cec9;
  color: #7b8580;
}

.fluxo-passos li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -1px;
  width: 1.2rem;
  height: 2px;
  background: #c9cec9;
}

.fluxo-passos li span {
  grid-row: 1 / -1;
  color: #8b958f;
  font: 700 0.6rem/1 var(--mono);
}

.fluxo-passos li strong {
  font-size: 0.74rem;
  line-height: 1.1;
}

.fluxo-passos li small {
  margin-top: 0.18rem;
  font-size: 0.64rem;
  line-height: 1.2;
}

.fluxo-passos li.fluxo-passo--ativo {
  border-top-color: var(--sinal);
  color: var(--tinta);
}

.fluxo-passos li.fluxo-passo--ativo span { color: var(--sinal); }
.fluxo-passos li.fluxo-passo--concluido { border-top-color: var(--evidencia-forte); color: #4f625b; }
.fluxo-passos li.fluxo-passo--concluido span { color: var(--evidencia-forte); }

.orientacao-fluxo {
  margin: 0 0 1rem;
  color: #68736d;
  font: 0.66rem var(--mono);
}

.recursos-avancados {
  margin: 0 0 0.9rem;
  border: 1px solid #c9cec9;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.34);
}

.recursos-avancados > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 42px;
  padding: 0.62rem 0.8rem;
  color: #4d5d56;
  font: 700 0.68rem var(--mono);
  cursor: pointer;
  list-style: none;
}

.recursos-avancados > summary::-webkit-details-marker { display: none; }
.recursos-avancados > summary::before { content: '+'; margin-right: 0.45rem; color: var(--sinal); font-size: 1rem; line-height: 0.5; }
.recursos-avancados[open] > summary::before { content: '−'; }
.recursos-avancados > summary small { color: #7b8580; font: 0.6rem var(--mono); }
.recursos-avancados > summary:hover { color: var(--tinta); background: rgba(255,255,255,0.42); }
.recursos-avancados[open] > summary { border-bottom: 1px solid #d3d8d3; }
.recursos-avancados > .caso-barra,
.recursos-avancados > .bloco,
.recursos-avancados > .botoes-linha,
.recursos-avancados > .estado-manifesto,
.recursos-avancados > .painel-qr { margin-inline: 0.8rem; }
.recursos-avancados > .caso-barra { margin-top: 0.8rem; }
.recursos-avancados--interno { margin: 0.35rem 0 0.8rem; background: #f7f5ed; }
.recursos-avancados--interno > summary { min-height: 37px; padding-block: 0.45rem; }
.recursos-avancados--interno .campo { margin: 0 0.8rem 0.8rem; }
.estado-manifesto--avancado { margin-top: 0.2rem; margin-bottom: 0.8rem; }

@media (max-width: 680px) {
  .fluxo-passos li { padding-inline: 0.35rem; column-gap: 0.35rem; }
  .fluxo-passos li small { display: none; }
  .fluxo-passos li strong { font-size: 0.62rem; }
  .recursos-avancados > summary { align-items: flex-start; flex-direction: column; gap: 0.15rem; }
}
