/* confere — estilo provisório da B0 (neutro). As regras visuais definitivas vêm na decisão de interface (P18). */
:root {
  --fundo: #f5f5f3; --superficie: #ffffff; --tinta: #1b1b19; --mudo: #62625d; --linha: #dcdcd6;
  --acento: #1f5eff; --acento-tinta: #ffffff; --ok: #1a7f45; --erro: #b42323;
  --raio: 10px; --fonte: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; background: var(--fundo); color: var(--tinta); font: 1rem/1.5 var(--fonte); }
a { color: var(--acento); }
h1 { font-size: 1.6rem; margin: 0 0 1rem; } h2 { font-size: 1.15rem; margin: 0 0 .75rem; }

.topo { display: flex; align-items: center; gap: 1.25rem; padding: .75rem 1.5rem; background: var(--superficie); border-bottom: 1px solid var(--linha); }
.topo .marca { font-weight: 700; color: var(--tinta); text-decoration: none; }
.topo nav { display: flex; gap: 1rem; margin-right: auto; }
.topo nav a { color: var(--mudo); text-decoration: none; padding: .25rem 0; border-bottom: 2px solid transparent; }
.topo nav a[aria-current="page"] { color: var(--tinta); border-color: var(--acento); }
.topo .sair { display: flex; align-items: center; gap: .75rem; margin: 0; }
.quem { color: var(--mudo); font-size: .9rem; }

.conteudo { max-width: 1100px; margin: 0 auto; padding: 1.5rem; }
.cartao { background: var(--superficie); border: 1px solid var(--linha); border-radius: var(--raio); padding: 1.25rem; margin-bottom: 1rem; }
.cartao.estreito { max-width: 420px; margin: 3rem auto; }
.cartao.vazio { text-align: center; color: var(--mudo); }
.marca-grande { font-weight: 700; font-size: 1.1rem; margin: 0 0 .5rem; }

label { display: block; font-size: .875rem; color: var(--mudo); margin: .9rem 0 .3rem; }
input { width: 100%; font: inherit; padding: .7rem .8rem; border: 1px solid var(--linha); border-radius: 8px; background: #fff; }
input:focus-visible, .btn:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--acento) 45%, transparent); outline-offset: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: inherit; font-weight: 600; padding: .65rem 1.1rem; border-radius: 8px; border: 1px solid var(--linha); background: var(--superficie); color: var(--tinta); text-decoration: none; cursor: pointer; transition: transform .12s ease, background-color .12s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-principal { background: var(--acento); border-color: var(--acento); color: var(--acento-tinta); }
.btn-leve { padding: .4rem .8rem; font-weight: 500; }
.btn.largo { width: 100%; margin-top: 1.25rem; padding: .85rem; }

.aviso { padding: .7rem .9rem; border-radius: 8px; margin: 0 0 1rem; }
.aviso-erro { background: #fdecec; color: var(--erro); }
.aviso-ok { background: #e6f4ec; color: var(--ok); }
.nota { color: var(--mudo); font-size: .875rem; margin-top: 1rem; }
.selo { font-size: .75rem; background: #eee; padding: .1rem .5rem; border-radius: 99px; color: var(--mudo); }

.tabela { width: 100%; border-collapse: collapse; }
.tabela th, .tabela td { text-align: left; padding: .7rem .5rem; border-bottom: 1px solid var(--linha); font-size: .95rem; }
.tabela th { color: var(--mudo); font-weight: 500; font-size: .85rem; }
.tabela tr.inativa td { color: var(--mudo); }
.tabela .acoes { text-align: right; white-space: nowrap; }

.grade-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1rem; }
.grade-form .fim { grid-column: 1 / -1; margin-top: 1rem; }
.linha { display: flex; gap: .75rem; justify-content: flex-end; margin-top: 1.25rem; }

@media (max-width: 720px) {
  .topo { flex-wrap: wrap; padding: .75rem 1rem; }
  .conteudo { padding: 1rem; }
  .grade-form { grid-template-columns: 1fr; }
  .tabela thead { display: none; }
  .tabela td { display: block; border: 0; padding: .2rem 0; }
  .tabela tr { display: block; padding: .75rem 0; border-bottom: 1px solid var(--linha); }
  .tabela .acoes { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
