@font-face { font-family: Jakarta; font-weight: 400; src: url("/fontes/Jakarta-400.ttf"); font-display: swap; }
@font-face { font-family: Jakarta; font-weight: 600; src: url("/fontes/Jakarta-600.ttf"); font-display: swap; }
@font-face { font-family: Jakarta; font-weight: 800; src: url("/fontes/Jakarta-800.ttf"); font-display: swap; }

/* Manual de Sistema F5 Sales: creme, branco, grafite e laranja; no escuro, grafite quente. */
:root {
  --fundo: #fff9ed; --cartao: #ffffff; --campo: #fffdf8; --borda: rgba(23, 23, 26, .14);
  --texto: #17171a; --apoio: #5d5d5f; --laranja: #ff5c00; --laranja-forte: #be4907; --realce: #ffe8bd;
  --erro: #b4232c; --ok: #1f5f3d; --barra: #17171a; color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fundo: #0e0e10; --cartao: #1b1b1e; --campo: #242427; --borda: rgba(255, 255, 255, .16);
    --texto: #ffffff; --apoio: rgba(255, 255, 255, .7); --realce: rgba(255, 232, 189, .14);
    --erro: #ff8d93; --ok: #7fd3a4; --barra: #17171a; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--fundo); color: var(--texto); font: 400 15px/1.5 Jakarta, Arial, sans-serif; }
h1 { font-size: 26px; font-weight: 800; margin: 0; line-height: 1.2; }
h2 { font-size: 20px; font-weight: 800; margin: 0; }
.apoio { color: var(--apoio); margin: 4px 0 0; }
.cartao { background: var(--cartao); border: 1px solid var(--borda); border-radius: 16px; }

.porta { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.porta__cartao { width: min(420px, 100%); padding: 32px; }
.porta__marca { width: 64px; display: block; margin-bottom: 20px; }
.porta form { display: grid; gap: 14px; }
.qr { width: 220px; border-radius: 10px; background: #fff; justify-self: center; }
code { word-break: break-all; font-size: 13px; }

label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; align-content: start; }
label small { font-weight: 400; color: var(--apoio); }
label.linha { display: flex; align-items: center; gap: 10px; }
input, select, textarea { font: 400 15px Jakarta, Arial, sans-serif; color: inherit; background: var(--campo); border: 1px solid var(--borda); border-radius: 10px; padding: 10px 12px; min-height: 44px; width: 100%; }
input[type="checkbox"] { width: 20px; min-height: 20px; accent-color: var(--laranja); }
:focus-visible { outline: 3px solid var(--laranja); outline-offset: 2px; }

.botao { font: 600 15px Jakarta, Arial, sans-serif; min-height: 48px; padding: 0 20px; border: 0; border-radius: 10px; background: var(--laranja); color: #17171a; cursor: pointer; }
.botao:hover { background: #ff7a2e; }
.botao:active { background: var(--laranja-forte); color: #fff; }
.botao:disabled { opacity: .55; cursor: default; }
.botao--leve { background: transparent; color: inherit; border: 1px solid var(--borda); }
.botao--leve:hover:not(:disabled) { background: var(--realce); }
.botao--leve:disabled:hover { background: transparent; }
.botao--p { min-height: 40px; padding: 0 14px; font-size: 14px; }

.topo { display: flex; align-items: center; gap: 16px; background: var(--barra); color: #fff; padding: 10px 24px; min-height: 64px; }
.topo__marca { width: 44px; }
.topo .botao { margin-left: auto; border-color: rgba(255, 255, 255, .3); }
.topo .botao:hover { background: rgba(255, 255, 255, .12); }
.conteudo { max-width: 980px; margin: 0 auto; padding: 32px 20px 80px; }
.titulo { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.item { display: flex; align-items: center; gap: 16px; padding: 16px; flex-wrap: wrap; }
.item__img { width: 48px; height: 48px; border-radius: 12px; background: var(--realce); display: grid; place-items: center; overflow: hidden; flex: none; }
.item__img img { width: 26px; height: 26px; }
.item__img img.cheia { width: 100%; height: 100%; object-fit: cover; }
.item__img img.traco { filter: var(--filtro, none); }
@media (prefers-color-scheme: dark) { .item__img img.traco { filter: invert(1); } }
.item__texto { flex: 1 1 220px; min-width: 0; }
.item__texto strong { display: block; font-size: 16px; }
.item__texto span { color: var(--apoio); font-size: 14px; }
.item__acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.selo { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--realce); }
.selo--ok { color: var(--ok); }
.vazio { text-align: center; color: var(--apoio); padding: 48px 0; }

dialog { border: 0; padding: 0; border-radius: 20px; width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: var(--cartao); color: var(--texto); }
dialog::backdrop { background: rgba(0, 0, 0, .6); }
.editor { padding: 28px; display: grid; gap: 18px; }
.grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.inteira { grid-column: 1 / -1; }
fieldset { border: 1px solid var(--borda); border-radius: 16px; padding: 16px; margin: 0; min-width: 0; }
fieldset .apoio { margin: 0 0 12px; font-size: 14px; }
legend { font-weight: 800; padding: 0 6px; }
.acoes { display: flex; justify-content: flex-end; gap: 10px; }
.erro { color: var(--erro); margin: 0; font-weight: 600; }
.erro:empty { display: none; }
.progresso { height: 8px; border-radius: 99px; background: var(--realce); overflow: hidden; }
.progresso span { display: block; height: 100%; width: 0; background: var(--laranja); }
#aviso { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--barra); color: #fff; padding: 12px 20px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2); z-index: 9; }
#aviso:empty { display: none; }
