/* =============================================================
   Painel da Vixto, folha única.
   Consome os tokens de design-system/vixto.css (marca Vixto), que o build gera
   a partir de tokens.json. Prefixo vx, tema escuro padrão e claro por
   prefers-color-scheme.
   Nenhuma cor escrita aqui: só papel semântico.
   ============================================================= */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--vx-bg);
  color: var(--vx-text);
  font-family: var(--vx-font-body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--vx-font-display);
  font-weight: 500;
  letter-spacing: .01em;
  margin: 0 0 .5rem;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--vx-accent);
  outline-offset: 2px;
}

/* ---- A moldura de toda tela ---- */

.tela { max-width: 68rem; margin: 0 auto; padding: 1.5rem 1rem 5rem; }

.topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--vx-border);
}
.topo img { height: 2rem; width: auto; display: block; }
.topo .onde { font-size: .8rem; color: var(--vx-text-muted); }

.voltar {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: .85rem;
  color: var(--vx-text-muted);
}
.voltar:hover { color: var(--vx-accent); }

/* ---- Os números do piloto ---- */

.numeros {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 1px;
  background: var(--vx-border);
  border: 1px solid var(--vx-border);
  border-radius: .5rem;
  overflow: hidden;
  margin-bottom: 2rem;
}
.numeros div { background: var(--vx-surface); padding: 1rem 1.1rem; }
.numeros .valor {
  font-family: var(--vx-font-display);
  font-size: 1.75rem;
  line-height: 1.1;
  font-weight: 500;
}
.numeros .rotulo {
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--vx-text-muted);
  margin-top: .3rem;
}

/* ---- A lista de pessoas ---- */

.pessoas { display: flex; flex-direction: column; gap: .5rem; }

.pessoa {
  display: block;
  padding: 1rem 1.1rem;
  background: var(--vx-surface);
  border: 1px solid var(--vx-border);
  border-radius: .5rem;
}
.pessoa:hover { border-color: var(--vx-accent); }

.pessoa .linha {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
}
.pessoa .nome { font-family: var(--vx-font-display); font-size: 1.05rem; }
.pessoa .quando { font-size: .8rem; color: var(--vx-text-muted); white-space: nowrap; }
.pessoa .sobre {
  margin-top: .45rem;
  font-size: .82rem;
  color: var(--vx-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .9rem;
}

/* ---- Etiquetas de estado ---- */

.tag {
  display: inline-block;
  padding: .12rem .5rem;
  border-radius: 999px;
  font-size: .72rem;
  letter-spacing: .03em;
  border: 1px solid var(--vx-border-strong);
  color: var(--vx-text-muted);
}
.tag.acento { border-color: var(--vx-accent); color: var(--vx-accent-text); }
.tag.alerta { border-color: var(--vx-danger); color: var(--vx-danger); }
.tag.morno  { border-color: var(--vx-warn); color: var(--vx-warn); }

/* ---- Blocos da tela da pessoa ---- */

.bloco {
  background: var(--vx-surface);
  border: 1px solid var(--vx-border);
  border-radius: .5rem;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.bloco > h2 {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--vx-text-muted);
  margin-bottom: 1rem;
}

.campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem 1.5rem; }
.campos dt {
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--vx-text-subtle);
}
.campos dd { margin: .2rem 0 0; }

/* O perfil íntimo é exceção declarada, e a tela diz isso em vez de o esconder. */
.bloco.intimo { border-color: var(--vx-accent); }
.bloco.intimo .aviso {
  margin: -.4rem 0 1.1rem;
  font-size: .78rem;
  color: var(--vx-text-muted);
  border-left: 2px solid var(--vx-accent);
  padding-left: .7rem;
}

/* ---- Guarda-roupa e looks ---- */

.pecas { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .75rem; }
.peca {
  border: 1px solid var(--vx-border);
  border-radius: .4rem;
  padding: .7rem .8rem;
  font-size: .85rem;
}
.peca .cabeca {
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--vx-text-subtle);
  margin-bottom: .25rem;
}

.look { border-top: 1px solid var(--vx-border); padding: .9rem 0; }
.look:first-of-type { border-top: 0; padding-top: 0; }
.look .disse { margin: .4rem 0 0; color: var(--vx-text-muted); font-size: .9rem; white-space: pre-line; }

/* ---- A conversa ---- */

.conversa { display: flex; flex-direction: column; gap: .6rem; }
.fala { max-width: 34rem; padding: .6rem .85rem; border-radius: .7rem; font-size: .92rem; }
.fala .quando {
  display: block;
  margin-top: .3rem;
  font-size: .68rem;
  color: var(--vx-text-subtle);
}
.fala.dela { background: var(--vx-surface-2); border: 1px solid var(--vx-border); }
.fala.nossa { background: var(--vx-accent-bg); align-self: flex-end; }

.paginacao { display: flex; justify-content: space-between; margin-top: 1.5rem; font-size: .85rem; }
.paginacao a { color: var(--vx-accent-text); }

/* ---- Vazios e rodapé ---- */

.vazio {
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--vx-text-muted);
  border: 1px dashed var(--vx-border-strong);
  border-radius: .5rem;
}

.sair {
  margin-top: 3rem;
  padding: .5rem .9rem;
  font-family: inherit;
  font-size: .8rem;
  color: var(--vx-text-subtle);
  background: transparent;
  border: 1px solid var(--vx-border);
  border-radius: .4rem;
  cursor: pointer;
}
.sair:hover { color: var(--vx-text); border-color: var(--vx-border-strong); }

/* ---- O portão ---- */

.portao {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: var(--vx-bg);
}
.portao .cartao {
  width: 100%;
  max-width: 24rem;
  background: var(--vx-surface);
  border: 1px solid var(--vx-border);
  border-radius: .75rem;
  padding: 2.25rem 2rem;
}
.portao img { height: 2.75rem; width: auto; display: block; margin-bottom: 1.75rem; }
.portao h1 { font-size: 1.35rem; }
.portao .sub { margin: 0 0 1.75rem; color: var(--vx-text-muted); font-size: .88rem; }
.portao label {
  display: block;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--vx-text-muted);
  margin-bottom: .4rem;
}
.portao input {
  width: 100%;
  padding: .75rem .85rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--vx-text);
  background: var(--vx-surface-2);
  border: 1px solid var(--vx-border-strong);
  border-radius: .4rem;
}
.portao button {
  width: 100%;
  margin-top: 1.1rem;
  padding: .8rem 1rem;
  font-family: var(--vx-font-display);
  font-size: .95rem;
  letter-spacing: .04em;
  color: var(--vx-on-accent);
  background: var(--vx-accent);
  border: 0;
  border-radius: .4rem;
  cursor: pointer;
}
.portao button:hover { background: var(--vx-accent-hover); }
.portao .erro {
  margin: 0 0 1.25rem;
  padding: .65rem .85rem;
  border-radius: .4rem;
  border: 1px solid var(--vx-danger);
  color: var(--vx-danger);
  font-size: .85rem;
}

/* O rodapé das telas do portão: o recado que evita a pessoa ficar presa sem saber. */
.portao .rodape {
  margin: 1.25rem 0 0;
  font-size: .75rem;
  line-height: 1.5;
  color: var(--vx-text-subtle);
  text-align: center;
}
.portao button[disabled] { opacity: .5; cursor: progress; }
.portao input[type="text"] { margin-bottom: .25rem; }
