* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, sans-serif; background: #f3f4f6; color: #111827; }
.centro { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.cartao { width: 100%; max-width: 380px; background: #fff; padding: 28px; border-radius: 12px;
          box-shadow: 0 2px 12px rgba(0,0,0,.1); }
h1 { margin: 0 0 20px; font-size: 1.5rem; text-align: center; }
label { display: block; margin: 14px 0 6px; font-weight: 600; }
input:not([type=hidden]) { width: 100%; padding: 12px; font-size: 1rem; border: 1px solid #d1d5db; border-radius: 8px; }
button { width: 100%; margin-top: 20px; padding: 12px; font-size: 1rem; font-weight: 600; color: #fff;
         background: #2563eb; border: 0; border-radius: 8px; cursor: pointer; }
button:hover { background: #1d4ed8; }
.erro { background: #fee2e2; color: #991b1b; padding: 10px 12px; border-radius: 8px; margin: 0 0 8px; }

/* ---- Painel: cartão de ponto ---- */
:root { --tinta:#1B1B1E; --papel:#ECEAE4; --folha:#FAF9F6; --amarelo:#FFD23F; --vermelho:#D7263D; --mudo:#5E5E64; --linha:#C9C6BD; }
body { background: var(--papel); color: var(--tinta); font-size: 1rem; line-height: 1.5; }
h1, h2, legend, .marca, .placar strong { font-family: Bahnschrift, "Arial Narrow", "Roboto Condensed", system-ui, sans-serif; font-stretch: condensed; letter-spacing: .01em; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--tinta); outline-offset: 2px; }
.topo { display: flex; align-items: center; gap: 20px; padding: 12px 16px; background: var(--tinta); color: #fff; flex-wrap: wrap; }
.marca { font-size: 1.25rem; font-weight: 800; text-decoration: none; margin-right: auto; }
.topo nav { display: flex; gap: 4px; }
.topo nav a { padding: 8px 12px; border-radius: 6px; text-decoration: none; }
.topo nav a[aria-current=page] { background: var(--amarelo); color: var(--tinta); font-weight: 700; }
.sair { margin: 0; }
button.link { width: auto; margin: 0; padding: 8px 4px; background: none; color: #fff; text-decoration: underline; font-weight: 400; }
button.link:hover { background: none; }
.pagina { max-width: 720px; margin: 0 auto; padding: 20px 16px 56px; }
.pagina h1 { font-size: 2rem; margin: 8px 0 16px; text-align: left; }
.pagina h2 { font-size: 1.25rem; margin: 0; }
.linha-titulo { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.botao { display: inline-block; padding: 10px 16px; background: var(--tinta); color: #fff; border-radius: 8px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.botao:hover { background: #000; }

.ponto { background: var(--folha); border: 2px solid var(--tinta); border-radius: 4px; padding: 16px 18px 18px; margin-bottom: 16px; }
.ponto-topo { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.casas { display: flex; gap: 10px; margin: 16px 0 12px; }
.casa { flex: 1; max-width: 120px; height: 44px; border: 2px dashed var(--tinta); border-radius: 22px; background: transparent; }
.casa.batida { border-style: solid; background: var(--amarelo); box-shadow: inset 0 0 0 3px var(--folha), inset 0 0 0 5px var(--tinta); }
.placar { margin: 0; }
.placar strong { font-size: 1.75rem; font-weight: 800; }
.espera { margin: 4px 0 0; color: var(--mudo); }
.espera.tem { color: var(--tinta); font-weight: 700; }
.espera.tem::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--vermelho); border-radius: 50%; margin-right: 8px; }
.cumprida { border-color: var(--tinta); }

.bloco { margin-top: 28px; padding-top: 16px; border-top: 2px solid var(--tinta); }
.bloco h2 { margin-bottom: 8px; }
.mudo { color: var(--mudo); margin: 0; }
.lista { margin: 0; padding-left: 20px; }
.tabela { width: 100%; border-collapse: collapse; }
.tabela th, .tabela td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--linha); }
.alerta { color: var(--vermelho); }
.vazio { background: var(--folha); border: 2px dashed var(--linha); padding: 28px 18px; text-align: center; border-radius: 4px; }

.canal-item { display: flex; gap: 14px; align-items: center; padding: 14px 16px; margin-bottom: 10px; background: var(--folha); border: 2px solid var(--tinta); border-radius: 4px; text-decoration: none; }
.canal-item:hover { background: #fff; }
.amostras { display: flex; }
.amostras i { width: 22px; height: 44px; border: 1px solid var(--tinta); margin-right: -1px; }
.canal-info { display: flex; flex-direction: column; }
.canal-info small { color: var(--mudo); }

.form fieldset { background: var(--folha); border: 2px solid var(--tinta); border-radius: 4px; margin: 0 0 16px; padding: 4px 18px 18px; }
.form legend { padding: 0 8px; font-size: 1.15rem; font-weight: 800; }
.form label { margin-top: 14px; }
.form input:not([type=hidden]):not([type=color]):not([type=checkbox]), .form select, .form textarea { width: 100%; padding: 12px; font: inherit; border: 1px solid #8d8a80; border-radius: 6px; background: #fff; }
.form button { margin-top: 4px; background: var(--tinta); }
.cores { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
label.cor { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid #8d8a80; border-radius: 6px; background: #fff; font-weight: 400; }
label.cor input { width: 48px; height: 36px; padding: 0; border: 0; background: none; cursor: pointer; }
.par { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
label.check { display: flex; gap: 10px; align-items: center; font-weight: 400; }
label.check input { width: 22px; height: 22px; }
.erro ul { margin: 6px 0 0; padding-left: 20px; }
.pagina .erro { margin-bottom: 16px; padding: 12px 14px; }
@media (max-width: 480px) { .par { grid-template-columns: 1fr; } .pagina h1 { font-size: 1.75rem; } }
@media (prefers-reduced-motion: no-preference) { .casa.batida { animation: bater .35s ease-out; } }
@keyframes bater { from { transform: scale(.85); } to { transform: scale(1); } }
