:root {
  --bg: #0d1117; --card: #161b22; --borda: #30363d;
  --texto: #e6edf3; --dim: #8b949e;
  --ok: #2ea043; --erro: #da3633; --acento: #388bfd;
}
* { box-sizing: border-box; }
body {
  margin: 0; padding: 16px 16px 96px;
  background: var(--bg); color: var(--texto);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 640px; margin-inline: auto;
}
body.centro { display: grid; place-items: center; min-height: 100dvh; padding: 16px; }
h1 { font-size: 1.25rem; margin: 0; }
h2 { font-size: 1rem; margin: 0 0 12px; color: var(--dim); font-weight: 600; }
header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.cartao {
  background: var(--card); border: 1px solid var(--borda);
  border-radius: 12px; padding: 16px; margin-bottom: 16px;
}
.login { width: 100%; max-width: 360px; text-align: center; }
.login h1 { margin-bottom: 4px; }
.sub { color: var(--dim); margin: 0 0 20px; font-size: .9rem; }
label { display: block; text-align: left; font-size: .85rem; color: var(--dim); margin-bottom: 6px; }
input, button { font: inherit; border-radius: 8px; }
input[type=password], input[type=file], input[name=motivo] {
  width: 100%; padding: 12px; background: #0d1117;
  border: 1px solid var(--borda); color: var(--texto); margin-bottom: 12px;
}
input[type=password] { text-align: center; letter-spacing: .4em; font-size: 1.4rem; }
button {
  padding: 12px 20px; border: 0; background: var(--acento);
  color: #fff; font-weight: 600; cursor: pointer; width: 100%;
}
button:active { transform: scale(.99); }
button:disabled { opacity: .5; }
button.link { background: none; color: var(--dim); width: auto; padding: 6px 0; text-decoration: underline; }
.alerta { background: #3d1518; border: 1px solid var(--erro); padding: 10px 12px; border-radius: 8px; margin: 0 0 16px; font-size: .9rem; }
.ok { background: #0f2d19; border: 1px solid var(--ok); padding: 10px 12px; border-radius: 8px; margin: 0 0 16px; font-size: .9rem; }
.nota { color: var(--dim); font-size: .8rem; margin: 10px 0 0; }
.vazio { color: var(--dim); text-align: center; padding: 24px 0; }
.cont { background: var(--borda); border-radius: 99px; padding: 2px 8px; font-size: .8rem; margin-left: 6px; }
.video video { width: 100%; border-radius: 8px; background: #000; display: block; margin-bottom: 12px; aspect-ratio: 9/16; max-height: 60vh; object-fit: contain; }
.meta { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.meta strong { font-size: .95rem; word-break: break-all; }
.dim { color: var(--dim); font-size: .8rem; }
.acoes { display: grid; gap: 10px; }
.acoes form { display: grid; gap: 8px; }
button.aprovar { background: var(--ok); }
button.rejeitar { background: var(--erro); }
footer {
  position: fixed; bottom: 0; left: 0; right: 0;
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  padding: 10px 16px; background: #0d1117ee; border-top: 1px solid var(--borda);
  color: var(--dim); font-size: .78rem; backdrop-filter: blur(8px);
}
progress { width: 100%; height: 6px; margin-top: 12px; }
code { background: #0d1117; padding: 1px 5px; border-radius: 4px; font-size: .85em; }

/* --- navegação por seções (28/11/2026) --- */
.abas {
  display: flex; gap: 8px; margin-bottom: 16px;
  overflow-x: auto; scrollbar-width: none; padding-bottom: 2px;
}
.abas::-webkit-scrollbar { display: none; }
.abas a {
  flex: 0 0 auto; padding: 8px 14px; border-radius: 99px;
  background: var(--card); border: 1px solid var(--borda);
  color: var(--texto); text-decoration: none; font-size: .85rem;
  display: inline-flex; align-items: center; gap: 6px;
}
.abas a:active { background: var(--borda); }

/* --- textarea (links) --- */
textarea {
  width: 100%; padding: 12px; margin-bottom: 12px;
  background: #0d1117; border: 1px solid var(--borda);
  color: var(--texto); border-radius: 8px; font: inherit;
  font-size: .9rem; resize: vertical; min-height: 120px;
}
textarea::placeholder { color: #4a5158; }

/* --- tabela da fila de links --- */
table.fila { width: 100%; border-collapse: collapse; font-size: .82rem; margin-top: 16px; }
table.fila th {
  text-align: left; color: var(--dim); font-weight: 600;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .04em;
  padding: 6px 4px; border-bottom: 1px solid var(--borda);
}
table.fila td { padding: 10px 4px; border-bottom: 1px solid #21262d; vertical-align: top; }
table.fila tr:last-child td { border-bottom: 0; }
table.fila a { color: var(--acento); text-decoration: none; }
table.fila .dim { display: inline; margin-left: 4px; }
.erro-txt { color: #f85149; }

.tag {
  display: inline-block; padding: 2px 8px; border-radius: 99px;
  font-size: .7rem; font-weight: 600; white-space: nowrap;
  border: 1px solid var(--borda); color: var(--dim);
}
.tag.pendente { border-color: #9e6a03; color: #d29922; }
.tag.baixando { border-color: var(--acento); color: var(--acento); }
.tag.baixado  { border-color: var(--ok); color: #3fb950; }
.tag.erro     { border-color: var(--erro); color: #f85149; }

.acoes-linha { display: flex; gap: 4px; justify-content: flex-end; }
.acoes-linha form { display: inline; }
button.mini {
  width: auto; padding: 4px 8px; font-size: .72rem;
  background: var(--borda); color: var(--texto); border-radius: 6px;
}
button.mini.perigo { background: #3d1518; color: #f85149; }
