:root { --fundo: #f4f4f2; --cartao: #fff; --texto: #1d1f24; --suave: #6b6f78; --borda: #dcdcd8; --laranja: #ff7a1a; --vermelho: #c62828; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--fundo); color: var(--texto); }
main { max-width: 1280px; margin: 0 auto; padding: 12px; }
h1 { font-size: 1.4rem; margin: 8px 0; } h2 { font-size: 1.1rem; } h3 { font-size: 1rem; margin: 12px 0 4px; }
small, .vazio, .status, figcaption { color: var(--suave); }
a { color: inherit; }
img { max-width: 100%; display: block; }

.menu { display: flex; gap: 4px; overflow-x: auto; background: var(--texto); padding: 0 8px; }
.menu a { color: #fff; text-decoration: none; padding: 0 12px; line-height: 48px; white-space: nowrap; }
.faixa-erro { background: var(--vermelho); color: #fff; padding: 8px 12px; }
.faixa-ok { background: #2e7d32; color: #fff; padding: 8px 12px; }
.faixa-aviso { background: #f9a825; color: var(--texto); padding: 8px 12px; }
.faixa-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.faixa-erro a { color: #fff; font-weight: 600; }
.faixa-erro button { background: #fff; color: var(--vermelho); }

button, .botao { min-height: 48px; padding: 0 16px; border: 1px solid var(--borda); border-radius: 10px; background: #fff;
  color: var(--texto); font: inherit; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
button.aprovar { background: var(--laranja); border-color: var(--laranja); color: #fff; }
button.forte, .botao.forte { background: var(--texto); border-color: var(--texto); color: #fff; }
button.perigo { color: var(--vermelho); }
input, select, textarea { font: inherit; min-height: 48px; padding: 8px 10px; border: 1px solid var(--borda); border-radius: 10px; width: 100%; background: #fff; }
textarea { min-height: 96px; }
input, .dia, .post > * { min-width: 0; }
label { display: block; margin: 8px 0; }

.cartao { background: var(--cartao); border: 1px solid var(--borda); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.topo { display: flex; align-items: center; justify-content: space-between; }
.seta { font-size: 2rem; text-decoration: none; min-width: 48px; text-align: center; }
.contador { font-weight: 700; font-size: 1.1rem; }
.filtros { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filtros select, .filtros input { flex: 1 1 160px; width: auto; }

.dias { display: grid; gap: 12px; }
.dia h2 { margin: 12px 0 8px; }
.post { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: start; }
.post .acoes { grid-column: 1 / -1; }
.post .capa img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; background: var(--borda); }
.post .info p { margin: 6px 0; }
.s-aprovado .status, .s-publicado .status { color: #2e7d32; font-weight: 600; }
.s-aguardando .status, .s-ajuste .status { color: var(--texto); font-weight: 600; }
.acoes { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.acoes form, .acoes button, .acoes .botao { width: 100%; }
.ajuste summary { min-height: 48px; line-height: 48px; cursor: pointer; font-weight: 600; }

.slides { display: flex; gap: 8px; margin: 12px 0; overflow-x: auto; scroll-snap-type: x mandatory; }
.slides img { border-radius: 8px; flex: none; width: 80%; scroll-snap-align: start; }
.nota { background: #f0f0ee; padding: 8px; border-radius: 8px; } .nota.erro, .erro { color: var(--vermelho); }
.hashtags { color: #1f5fbf; }
.lembrete { background: #fff; border-left: 4px solid var(--texto); padding: 12px; font-weight: 600; }

.abas { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.abas a { min-height: 48px; line-height: 48px; padding: 0 12px; }
.abas a[aria-current] { font-weight: 700; border-bottom: 3px solid var(--texto); }
.grade { display: grid; gap: 12px; margin-top: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.grade figure { margin: 0; }
.grade img, .sem-mini { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--borda); }
.sem-mini { display: flex; align-items: center; justify-content: center; }
figcaption { font-size: .85rem; margin: 6px 0; word-break: break-all; }
.tres { display: grid; gap: 6px; }
.aviso.n-erro { border-color: var(--vermelho); }

@media (min-width: 701px) {
  main { padding: 20px; }
  .dias { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .slides { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .slides img { width: 100%; }
  .dias .post.cartao { padding: 8px; grid-template-columns: 1fr; }
  form.cartao, .cartao:has(> form[enctype]) { max-width: 760px; }
}
