/* Banco de Minutas. Direção: legislação compilada com acabamento de software de precisão. */

@font-face {
  font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fontes/onest-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("fontes/source-serif-4-latin-opsz-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4"; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url("fontes/source-serif-4-latin-opsz-italic.woff2") format("woff2");
}

:root {
  /* Superfícies */
  --fundo: #f6f7f9;
  --painel: #ffffff;
  --sobre: #fbfbfc;
  --hover: #eef0f3;
  --borda: rgb(17 24 39 / 8%);
  --borda-forte: rgb(17 24 39 / 14%);
  --regra: #eceef2;

  /* Texto */
  --tx-1: #111318;
  --tx-2: #4b5161;
  --tx-3: #6b7180;
  --tx-4: #9aa0ad;

  /* Acento azul-tinta */
  --acento: #2f45c8;
  --acento-forte: #2335b0;
  --acento-suave: #eef1fd;
  --acento-anel: rgb(47 69 200 / 22%);

  /* Estados */
  --ok: #157347;
  --ok-fundo: rgb(21 115 71 / 9%);
  --alerta: #a65a00;
  --alerta-ponto: #e08a00;
  --alerta-fundo: rgb(224 138 0 / 10%);
  --rev: #b4271a;
  --rev-fundo: rgb(196 55 42 / 9%);
  --ins-fundo: rgb(21 115 71 / 8%);

  --ui: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serifa: "Source Serif 4", Georgia, serif;

  --r-1: 6px;
  --r-2: 8px;
  --r-3: 12px;

  --sombra-1: 0 1px 1px rgb(17 24 39 / 4%), 0 1px 2px rgb(17 24 39 / 4%);
  --sombra-2: 0 1px 2px rgb(17 24 39 / 4%), 0 4px 10px -2px rgb(17 24 39 / 6%), 0 12px 32px -8px rgb(17 24 39 / 8%);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fundo);
  color: var(--tx-1);
  font: 400 0.875rem/1.5 var(--ui);
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: #dbe1fb; color: var(--tx-1); }
a { color: var(--acento); text-decoration: none; }
a:hover { color: var(--acento-forte); }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.ico {
  width: 1rem; height: 1rem; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

* { scrollbar-width: thin; scrollbar-color: #d6d9e0 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #d6d9e0; border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }

/* ---------------------------------------------------------------- estrutura */

.app {
  display: grid;
  grid-template-columns: 14rem 18.5rem minmax(0, 1fr);
  height: 100dvh;
}
.app:not(:has(.indice)) { grid-template-columns: 14rem minmax(0, 1fr); }

/* ---------------------------------------------------------------- trilho */

.trilho {
  display: flex; flex-direction: column; gap: 1.25rem;
  padding: 0.875rem 0.625rem;
  overflow-y: auto;
}

.marca {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.375rem 0.5rem; border-radius: var(--r-2);
  color: var(--tx-1);
}
.marca:hover { color: var(--tx-1); background: var(--hover); }
.marca__sinal { width: 1.625rem; height: 1.625rem; flex: none; filter: drop-shadow(0 1px 1px rgb(17 24 39 / 8%)); }
.marca__nome { font-weight: 600; font-size: 0.875rem; letter-spacing: -0.012em; }

.trilho__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }

.trilho__item {
  position: relative;
  display: flex; align-items: center; gap: 0.625rem;
  height: 2rem; padding: 0 0.625rem; border-radius: var(--r-1);
  color: var(--tx-2); font-weight: 500;
  border: 1px solid transparent;
  transition: background-color 120ms var(--ease), color 120ms var(--ease);
}
.trilho__item .ico { color: var(--tx-3); }
.trilho__item:hover { background: var(--hover); color: var(--tx-1); }
.trilho__item.is-atual {
  background: var(--painel); color: var(--tx-1);
  border-color: var(--borda); box-shadow: var(--sombra-1);
}
.trilho__item.is-atual .ico { color: var(--acento); }

.contador {
  font-variant-numeric: tabular-nums;
  margin-left: auto; min-width: 1.25rem; padding: 0 0.375rem;
  border-radius: 999px; background: var(--alerta-fundo); color: var(--alerta);
  font-size: 0.6875rem; font-weight: 600; line-height: 1.25rem; text-align: center;
}

.trilho__nota {
  margin-top: auto; padding: 0.75rem 0.625rem 0.25rem;
  color: var(--tx-3); font-size: 0.75rem; line-height: 1.5;
}

/* ---------------------------------------------------------------- índice */

.indice {
  display: flex; flex-direction: column;
  padding: 0.875rem 0.625rem 1rem 0.375rem;
  overflow-y: auto;
}

.busca { position: relative; margin-bottom: 0.5rem; }
.busca__ico { position: absolute; left: 0.625rem; top: 0.5625rem; color: var(--tx-3); pointer-events: none; }
.busca__atalho {
  position: absolute; right: 0.5rem; top: 0.4375rem;
  min-width: 1.25rem; height: 1.25rem; padding: 0 0.3rem; border-radius: 4px;
  background: var(--sobre); border: 1px solid var(--borda-forte); box-shadow: 0 1px 0 var(--borda);
  color: var(--tx-3); font: 500 0.6875rem/1.15rem var(--ui); text-align: center;
}

input[type="search"], select {
  width: 100%; height: 2.125rem;
  border: 1px solid var(--borda-forte); border-radius: var(--r-1);
  background: var(--painel); color: var(--tx-1);
  font: inherit; box-shadow: var(--sombra-1);
  transition: border-color 120ms var(--ease), box-shadow 120ms var(--ease);
}
input[type="search"] { padding: 0 2rem 0 2rem; }
input[type="search"]::-webkit-search-cancel-button { display: none; }
input[type="search"]::placeholder { color: var(--tx-4); }
select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  padding: 0 2rem 0 0.625rem; color: var(--tx-2);
  background: var(--painel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7180' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 0.5rem center / 1rem;
}
input[type="search"]:hover, select:hover { border-color: rgb(17 24 39 / 22%); }
input[type="search"]:focus, select:focus {
  outline: none; border-color: var(--acento); box-shadow: 0 0 0 3px var(--acento-anel);
}

.indice__titulo {
  display: flex; align-items: center; gap: 0.375rem;
  margin: 1.25rem 0 0.375rem; padding: 0 0.625rem;
  font-size: 0.75rem; font-weight: 500; color: var(--tx-3);
}
.indice__titulo span { color: var(--tx-3); font-weight: 400; }

.indice__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }

.ato {
  display: grid; gap: 0.125rem;
  padding: 0.5625rem 0.625rem; border-radius: var(--r-2);
  color: var(--tx-1); border: 1px solid transparent;
  transition: background-color 120ms var(--ease);
}
a.ato:hover { background: var(--hover); color: var(--tx-1); }
.ato.is-atual { background: var(--painel); border-color: var(--borda); box-shadow: var(--sombra-1); }
.ato__nome { font-weight: 500; line-height: 1.35; letter-spacing: -0.008em; }
.ato__meta { font-size: 0.75rem; color: var(--tx-3); }
.ato .estado { margin-top: 0.25rem; }
.ato--vazio { cursor: default; }
.ato--vazio .ato__nome { color: var(--tx-3); }

/* ---------------------------------------------------------------- estado (ponto + texto) */

.estado {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 0.75rem; font-weight: 500; color: var(--tx-2); white-space: nowrap;
}
.estado::before {
  content: ""; width: 0.4375rem; height: 0.4375rem; border-radius: 50%; flex: none;
  background: var(--tx-4); box-shadow: 0 0 0 3px rgb(154 160 173 / 18%);
}
.estado--ok { color: var(--ok); }
.estado--ok::before { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-fundo); }
.estado--alerta { color: var(--alerta); }
.estado--alerta::before { background: var(--alerta-ponto); box-shadow: 0 0 0 3px var(--alerta-fundo); }
.estado--revogado { color: var(--rev); }
.estado--revogado::before { background: var(--rev); box-shadow: 0 0 0 3px var(--rev-fundo); }
.estado--neutro { color: var(--tx-3); }

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

.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  height: 2.125rem; padding: 0 0.875rem; border-radius: var(--r-1);
  border: 1px solid transparent;
  font: 500 0.8125rem/1 var(--ui); letter-spacing: -0.005em; white-space: nowrap;
  cursor: pointer;
  transition: background-color 120ms var(--ease), box-shadow 120ms var(--ease), transform 120ms var(--ease);
}
.botao:active { transform: translateY(0.5px); }
.botao:disabled { opacity: 0.5; cursor: not-allowed; }
.botao--pri {
  background: linear-gradient(#3a50d4, var(--acento));
  color: #fff; border-color: var(--acento-forte);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 16%), 0 1px 2px rgb(35 53 176 / 25%), 0 4px 12px -4px rgb(35 53 176 / 45%);
}
.botao--pri:hover { background: linear-gradient(#3349cc, var(--acento-forte)); color: #fff; }
.botao--pri .ico { color: #dfe4ff; }
.botao--sec { background: var(--painel); color: var(--tx-1); border-color: var(--borda-forte); box-shadow: var(--sombra-1); }
.botao--sec:hover { background: var(--sobre); color: var(--tx-1); }

/* ---------------------------------------------------------------- painel do documento */

.painel {
  min-width: 0; margin: 0.5rem 0.5rem 0.5rem 0;
  background: var(--painel);
  border: 1px solid var(--borda); border-radius: var(--r-3);
  box-shadow: var(--sombra-2);
  overflow-y: auto; overscroll-behavior: contain;
  scroll-padding-top: 9.5rem;
}

.painel__cabeca {
  position: sticky; top: 0; z-index: 3;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  padding: 1.375rem clamp(1.25rem, 3.5vw, 3rem) 1.125rem;
  background: rgb(255 255 255 / 86%);
  -webkit-backdrop-filter: saturate(1.6) blur(12px); backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--regra);
}
.painel__titulo { flex: 1 1 26rem; min-width: 0; }
.painel__cabeca > form { flex: none; }
.trilha {
  display: flex; align-items: center; gap: 0.375rem;
  margin-bottom: 0.375rem; color: var(--tx-3); font-size: 0.75rem; font-weight: 500;
}
.trilha .ico { width: 0.75rem; height: 0.75rem; color: var(--tx-4); }
.trilha a { display: inline-flex; align-items: center; gap: 0.375rem; color: var(--tx-3); }
.trilha a:hover { color: var(--tx-1); }
.painel__cabeca h1 {
  font: 600 1.625rem/1.2 var(--ui); letter-spacing: -0.028em; color: var(--tx-1);
}
.doc-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.125rem;
  margin-top: 0.5rem; color: var(--tx-3); font-size: 0.8125rem;
}

.painel__corpo {
  max-width: 64rem;
  padding: 1.25rem clamp(1.25rem, 3.5vw, 3rem) 4rem;
}

.aviso-demo { margin-top: 0.375rem; color: var(--tx-3); font-size: 0.75rem; }

.linha-alerta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.875rem;
  padding: 0.625rem 0; margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--regra); font-size: 0.8125rem; color: var(--tx-2);
}
.linha-alerta strong { color: var(--tx-1); font-weight: 600; }
.linha-alerta a { margin-left: auto; display: inline-flex; align-items: center; gap: 0.25rem; font-weight: 500; }
.linha-alerta a .ico { width: 0.875rem; height: 0.875rem; transition: transform 160ms var(--ease); }
.linha-alerta a:hover .ico { transform: translateX(2px); }

/* ---------------------------------------------------------------- verificação */

.verificacao {
  margin-bottom: 0.75rem; padding: 0.75rem 0 0.875rem;
  border-bottom: 1px solid var(--regra);
  animation: abrir 200ms var(--ease) both;
}
.verificacao:focus { outline: none; }
.verificacao h2 { font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.5rem; }
.verificacao dl { margin: 0; display: grid; gap: 0.375rem; }
.verificacao dl > div { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: 1rem; align-items: baseline; }
.verificacao dt { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; font-size: 0.8125rem; }
.verificacao dt::before { content: ""; width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: currentColor; }
.verificacao dd { margin: 0; color: var(--tx-2); font-size: 0.8125rem; }
.verificacao .is-alerta dt { color: var(--alerta); }
.verificacao .is-ok dt { color: var(--ok); }

@keyframes abrir {
  from { opacity: 0; transform: translateY(-3px); filter: blur(3px); }
  to { opacity: 1; transform: none; filter: none; }
}
@media (prefers-reduced-motion: reduce) { .verificacao { animation: none; } }

/* ---------------------------------------------------------------- diff compilado */

.diff {
  margin: 0.25rem 0 1rem; padding: 0.75rem 0 0.25rem;
  border-top: 1px solid var(--regra); border-bottom: 1px solid var(--regra);
}
.diff__cabeca {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.875rem;
  margin-bottom: 0.25rem; font-size: 0.8125rem;
}
.diff__alvo { font-weight: 600; color: var(--tx-1); }
.diff__meta { color: var(--tx-3); }
.diff__par { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.diff__par { gap: 1.5rem; }
.diff__par > div { padding: 0.5rem 0; }
.diff__par > div + div { padding-left: 1.5rem; border-left: 1px solid var(--regra); }
.diff__rotulo { margin-bottom: 0.375rem; color: var(--tx-3); font-size: 0.6875rem; font-weight: 500; }
.diff__texto { font: 400 0.9375rem/1.65 var(--serifa); color: var(--tx-1); }
.diff del {
  background: var(--rev-fundo); color: var(--rev);
  text-decoration-color: rgb(180 39 26 / 55%); text-decoration-thickness: 1px;
  border-radius: 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.diff ins {
  background: var(--ins-fundo); color: #0f5132; text-decoration: none;
  border-radius: 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.diff .nota-redacao { padding-bottom: 0.5rem; font-size: 0.8125rem; }

/* ---------------------------------------------------------------- cláusulas */

.clausulas { list-style: none; margin: 0; padding: 0; }

.clausula {
  display: grid; grid-template-columns: minmax(0, 41rem) 10.5rem; gap: 2.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--regra);
}
.clausula:first-child { border-top: 0; padding-top: 0.5rem; }

.clausula__titulo {
  margin-bottom: 0.75rem; text-wrap: pretty;
  font: 600 1.0625rem/1.35 var(--serifa); color: var(--tx-1); letter-spacing: -0.005em;
}
.versalete {
  font: 600 1.0625rem/1.35 var(--serifa); font-variant-caps: all-small-caps; letter-spacing: 0.04em;
  color: var(--tx-3); margin-right: 0.375rem;
}

.clausula__corpo { font: 400 1.0625rem/1.75 var(--serifa); color: #1b1e25; font-optical-sizing: auto; }
.clausula__corpo p { margin: 0 0 0.875rem; max-width: 68ch; }

.campo {
  padding: 0.0625rem 0.3125rem; border-radius: 4px;
  background: var(--acento-suave); color: #26318a;
  font: 500 0.875em/1.4 var(--ui); letter-spacing: -0.005em;
  box-shadow: inset 0 0 0 1px rgb(47 69 200 / 12%);
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
  cursor: help;
}
.campo--orfao { color: var(--rev); background: var(--rev-fundo); box-shadow: inset 0 0 0 1px rgb(180 39 26 / 20%); }

.clausula__condicao { margin: -0.25rem 0 0.75rem; font-size: 0.8125rem; color: var(--tx-3); }

.clausula__aviso {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.625rem;
  margin-top: 0.875rem; font-size: 0.8125rem; color: var(--tx-2);
}

/* nota de redação */
.nota-redacao { font: italic 400 0.9375rem/1.55 var(--serifa); color: var(--tx-3); }
.nota-redacao a { font-style: normal; color: var(--acento); }
.nota-redacao a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

/* margem de remissões */
.remissoes { display: grid; align-content: start; gap: 0.875rem; padding-top: 0.25rem; }
.remissao { display: grid; gap: 0.0625rem; color: var(--tx-1); }
.remissao:hover { color: var(--tx-1); }
.remissao__rotulo { font-weight: 600; font-size: 0.8125rem; color: var(--acento); letter-spacing: -0.005em; }
.remissao:hover .remissao__rotulo { text-decoration: underline; text-underline-offset: 0.2em; }
.remissao__norma { font-size: 0.75rem; color: var(--tx-3); }
.remissao__estado {
  display: inline-flex; align-items: center; gap: 0.3125rem;
  font-size: 0.6875rem; font-weight: 500; color: var(--ok);
}
.remissao__estado::before { content: ""; width: 0.375rem; height: 0.375rem; border-radius: 50%; background: currentColor; }
.remissao--alterado .remissao__estado { color: var(--alerta); }
.remissao--revogado .remissao__estado { color: var(--rev); }
.remissao--revogado .remissao__rotulo { text-decoration: line-through; color: var(--rev); }
.remissao--vazia { font: italic 400 0.8125rem/1.45 var(--serifa); color: var(--tx-3); }

/* ---------------------------------------------------------------- apêndice */

.apendice {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem;
  margin-top: 0.5rem; padding-top: 1.75rem; border-top: 1px solid var(--regra);
}

.apendice h2 { font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.75rem; }
.checklist, .fundamentos { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; font-size: 0.8125rem; }
.checklist li { display: flex; gap: 0.5rem; align-items: flex-start; color: var(--tx-2); }
.checklist .ico { width: 0.875rem; height: 0.875rem; margin-top: 0.1875rem; color: var(--ok); }
.checklist__opc { color: var(--tx-3); }
.fundamentos li { display: flex; justify-content: space-between; gap: 1rem; }
.fundamentos a { font-weight: 500; }

/* ---------------------------------------------------------------- dispositivo */

.painel--solo { margin-left: 0; }
.dispositivo { max-width: 64rem; display: grid; grid-template-columns: minmax(0, 41rem) 13rem; gap: 2.5rem; }
.dispositivo__margem dl { margin: 0.75rem 0 0; display: grid; gap: 0.875rem; padding-left: 1.25rem; border-left: 1px solid var(--regra); }
.dispositivo__margem dt { font-size: 0.75rem; color: var(--tx-3); }
.dispositivo__margem dd { margin: 0.125rem 0 0; font-size: 0.8125rem; color: var(--tx-1); }
.dispositivo__texto { margin: 0.5rem 0 0.75rem; font: 400 1.1875rem/1.7 var(--serifa); color: #1b1e25; }
.dispositivo__texto p { margin: 0 0 0.625rem; max-width: 68ch; }
.dispositivo__texto .inciso { padding-left: 1.5rem; }
.dispositivo__texto .alinea { padding-left: 3rem; }
.dispositivo__texto--vazio { color: var(--tx-3); font-style: italic; font-size: 1rem; }
.bloco { margin-top: 2.25rem; }
.bloco h2 { font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.75rem; color: var(--tx-1); }
.dependentes { list-style: none; margin: 0; padding: 0; }
.dependentes > li { padding: 0.75rem 0; border-top: 1px solid var(--regra); }
.dependentes > li:last-child { border-bottom: 1px solid var(--regra); }
.dependentes a { font-weight: 500; }
.dependentes__meta { color: var(--tx-3); font-size: 0.75rem; margin-left: 0.375rem; }
.dependentes ul { margin: 0.375rem 0 0; padding-left: 1rem; color: var(--tx-2); font-size: 0.8125rem; }

/* ---------------------------------------------------------------- vazio */

.vazio { padding: 1rem 0.625rem; color: var(--tx-2); font-size: 0.8125rem; }
.vazio p { margin-bottom: 0.5rem; }
.vazio strong { color: var(--tx-1); font-weight: 600; }
.vazio .botao { margin-top: 0.25rem; }
.vazio--doc { max-width: 28rem; margin: 22vh auto 0; text-align: center; font-size: 0.875rem; }

/* ---------------------------------------------------------------- responsivo */

@media (max-width: 82rem) {
  .clausula { grid-template-columns: minmax(0, 1fr) 9rem; gap: 1.75rem; }
}

@media (max-width: 68rem) {
  .app { grid-template-columns: 3.75rem 17rem minmax(0, 1fr); }
  .app:not(:has(.indice)) { grid-template-columns: 3.75rem minmax(0, 1fr); }
  .trilho { align-items: center; padding-inline: 0.5rem; }
  .marca { padding: 0.375rem; }
  .marca__nome, .trilho__nota, .trilho__sair { display: none; }
  .trilho__item { width: 2.5rem; height: 2.5rem; padding: 0; justify-content: center; }
  .trilho__item > span:not(.contador) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .trilho__item .ico { width: 1.125rem; height: 1.125rem; }
  .contador { position: absolute; top: 0.125rem; right: 0; min-width: 1rem; line-height: 1rem; font-size: 0.6875rem; }
}

@media (max-width: 60rem) {
  .clausula { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .remissoes { display: none; }
  .ref::after { content: ""; display: inline-block; width: 0.375rem; height: 0.375rem; margin: 0 0.125rem 0.1rem 0.3rem; border-radius: 50%; background: var(--ok); vertical-align: middle; }
  .ref--alterado::after { background: var(--alerta-ponto); }
  .ref--revogado::after { background: var(--rev); }
  .dispositivo { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .dispositivo__margem { order: -1; }
  .dispositivo__margem dl { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-left: 0; border-left: 0; }
  .diff__par > div + div { padding-left: 0; }
  .diff__par { grid-template-columns: minmax(0, 1fr); }
  .diff__par > div + div { border-left: 0; border-top: 1px solid var(--regra); }
}

@media (max-width: 48rem) {
  .app { display: block; height: auto; }
  .trilho {
    position: sticky; top: 0; z-index: 5;
    flex-direction: row; align-items: center; gap: 0.25rem; padding: 0.5rem 0.75rem;
    background: rgb(246 247 249 / 88%);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--borda);
  }
  .marca { margin-right: auto; padding: 0.25rem; }
  .marca__nome { display: inline; }
  .trilho__lista { display: flex; gap: 0.125rem; }
  .indice { padding: 0.75rem 0.75rem 0.25rem; overflow: visible; }
  .indice__lista {
    grid-auto-flow: column; grid-auto-columns: minmax(13.5rem, 68%);
    overflow-x: auto; padding-bottom: 0.5rem; scroll-snap-type: x mandatory;
    -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent);
    mask-image: linear-gradient(90deg, #000 70%, transparent);
  }
  .indice__lista > li { scroll-snap-align: start; }
  .ato { border-color: var(--borda); background: var(--painel); }
  .painel { margin: 0.25rem 0.5rem 0.5rem; overflow: visible; }
  .painel__cabeca { position: static; padding: 1.125rem 1rem 1rem; }
  .painel__cabeca h1 { font-size: 1.375rem; }
  .painel__cabeca form, .painel__cabeca .botao { width: 100%; }
  .painel__corpo { padding: 1rem 1rem 2.5rem; }
  .verificacao dl > div { grid-template-columns: minmax(0, 1fr); gap: 0.125rem; }
  .apendice { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- entrada */

.entrada { display: grid; place-items: center; min-height: 100dvh; padding: 1rem; }
.entrada__painel {
  width: 100%; max-width: 22rem; padding: 2rem 1.75rem;
  background: var(--painel); border: 1px solid var(--borda); border-radius: var(--r-3); box-shadow: var(--sombra-2);
}
.entrada__marca { width: 2.25rem; height: 2.25rem; margin-bottom: 1.25rem; }
.entrada h1 { font: 600 1.25rem/1.25 var(--ui); letter-spacing: -0.02em; }
.entrada__sub { margin: 0.375rem 0 1.5rem; color: var(--tx-3); font-size: 0.8125rem; }
.entrada__erro { margin-bottom: 1rem; padding: 0.5rem 0.75rem; border-radius: var(--r-1); background: var(--rev-fundo); color: var(--rev); font-size: 0.8125rem; }
.entrada form { display: grid; gap: 0.375rem; }
.entrada label { font-size: 0.8125rem; font-weight: 500; color: var(--tx-2); margin-top: 0.5rem; }
.entrada input[type="text"], .entrada input[type="password"] {
  height: 2.375rem; padding: 0 0.75rem; border: 1px solid var(--borda-forte); border-radius: var(--r-1);
  background: var(--painel); color: var(--tx-1); font: inherit; box-shadow: var(--sombra-1);
}
.entrada input:focus { outline: none; border-color: var(--acento); box-shadow: 0 0 0 3px var(--acento-anel); }
.entrada .botao { margin-top: 1.25rem; height: 2.375rem; }

.trilho__sair { margin: 0; padding: 0 0.625rem 0.25rem; }
.trilho__sair button {
  padding: 0; border: 0; background: none; color: var(--tx-3); font: 500 0.75rem/1.5 var(--ui); cursor: pointer;
}
.trilho__sair button:hover { color: var(--tx-1); text-decoration: underline; }
