/* Painel de licenças do Internet Café — pensado primeiro para o celular. Sem fontes nem bibliotecas de fora. */
:root {
  --fundo: #f3f5f9;
  --cartao: #ffffff;
  --texto: #1d2433;
  --fraco: #5d6779;
  --linha: #dde2ea;
  --cor: #1f6feb;
  --cor-escura: #1456c0;
  --ok-fundo: #e7f6ec;
  --ok-borda: #2e9d55;
  --erro: #c0392b;
  --dica-fundo: #fff7e0;
  --dica-borda: #e0b23a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fundo: #12161f;
    --cartao: #1b2130;
    --texto: #e8ecf3;
    --fraco: #9aa5b8;
    --linha: #2c3446;
    --cor: #4b8ff5;
    --cor-escura: #6aa3f7;
    --ok-fundo: #173323;
    --ok-borda: #3cb46a;
    --erro: #ff7b6b;
    --dica-fundo: #2e2814;
    --dica-borda: #b8902a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font: 17px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
header {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  padding: 12px 16px; background: var(--cor); color: #fff;
}
header .marca { color: #fff; text-decoration: none; font-weight: 700; font-size: 19px; }
header .marca small { font-weight: 400; opacity: .85; }
header .sair { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; }
header .sair .link { color: #fff; }
main { max-width: 640px; margin: 0 auto; padding: 16px; }
h1 { font-size: 21px; margin: 0 0 12px; }
h1 small { color: var(--fraco); font-weight: 400; }
.cartao {
  background: var(--cartao); border: 1px solid var(--linha); border-radius: 14px;
  padding: 18px 16px; margin: 0 0 16px; box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.estreito { max-width: 420px; margin: 24px auto; }
label { display: block; margin: 0 0 14px; font-weight: 600; font-size: 15px; }
input, select {
  display: block; width: 100%; margin-top: 6px; padding: 12px; font-size: 17px;
  border: 1px solid var(--linha); border-radius: 10px; background: var(--fundo); color: var(--texto);
}
input:focus, select:focus { outline: 2px solid var(--cor); outline-offset: 1px; }
.botao {
  display: inline-block; border: 0; border-radius: 10px; padding: 12px 18px;
  background: var(--cor); color: #fff; font-size: 17px; font-weight: 700; cursor: pointer; text-decoration: none;
}
.botao:hover { background: var(--cor-escura); }
.botao.grande { display: block; width: 100%; padding: 15px; font-size: 18px; text-align: center; }
.link { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.erro { color: var(--erro); font-weight: 600; }
.ok { background: var(--ok-fundo); border-left: 5px solid var(--ok-borda); border-radius: 10px; padding: 14px; margin: 0 0 16px; }
.dica { background: var(--dica-fundo); border-left: 5px solid var(--dica-borda); border-radius: 10px; padding: 14px; margin: 0 0 16px; }
.nota { color: var(--fraco); font-size: 14px; margin: 8px 0 0; }
.centro { text-align: center; }
.admin { margin: 0 0 8px; padding-bottom: 16px; border-bottom: 1px solid var(--linha); }
.tablet { padding: 16px 0; border-bottom: 1px solid var(--linha); }
.tablet:last-child { border-bottom: 0; padding-bottom: 0; }
.tablet .nome { font-weight: 700; font-size: 18px; }
.codigo { font-family: ui-monospace, Consolas, "Courier New", monospace; letter-spacing: .5px; }
.codigo.grande { font-size: 24px; font-weight: 700; text-align: center; margin: 4px 0 18px; }
.tablet .data { color: var(--fraco); font-size: 14px; margin-bottom: 10px; }
.credito { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; align-items: end; }
.credito label { margin: 0; }
.credito .nota { grid-column: 1 / -1; }
@media (max-width: 420px) {
  .credito { grid-template-columns: 1fr; }
  .credito .botao { margin-top: 10px; width: 100%; }
}
