:root {
    --fundo: #f4f1ea;
    --texto: #2b2b2b;
    --primaria: #4a5d4f;
    --primaria-escura: #354438;
    --erro: #9b2c2c;
    --sucesso: #2f6b3a;
    --borda: #d6d0c4;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    background: var(--fundo);
    color: var(--texto);
    line-height: 1.6;
}

.container {
    max-width: 640px;
    margin: 3rem auto;
    padding: 0 1.25rem;
}

.container.estreito { max-width: 380px; }
.container.largo { max-width: 1100px; }

header { text-align: center; margin-bottom: 2rem; }
h1 { font-weight: normal; letter-spacing: 0.04em; margin: 0 0 0.5rem; }
.chamada { font-style: italic; color: var(--primaria); margin: 0; }

.formulario { display: flex; flex-direction: column; gap: 0.5rem; }
.formulario label { font-size: 0.95rem; }
.opcional { color: #777; font-size: 0.85rem; }

input[type="text"],
input[type="password"],
input[type="text"]#autor,
textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--borda);
    border-radius: 4px;
    font: inherit;
    background: #fff;
}

textarea { resize: vertical; }

button {
    margin-top: 0.75rem;
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 4px;
    background: var(--primaria);
    color: #fff;
    font: inherit;
    cursor: pointer;
}
button:hover { background: var(--primaria-escura); }
button.secundario { background: transparent; color: var(--primaria); border: 1px solid var(--primaria); margin: 0; }
button.perigo { background: var(--erro); }

.aviso { padding: 0.75rem 1rem; border-radius: 4px; margin: 0 0 1rem; }
.aviso.sucesso { background: #e3f0e5; color: var(--sucesso); }
.aviso.erro { background: #f7e4e4; color: var(--erro); }

.campo-oculto {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.topo { display: flex; justify-content: space-between; align-items: center; }
.topo h1 { text-align: left; }
.filtros { display: flex; gap: 0.5rem; margin: 1.5rem 0; }
.filtros a {
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--borda);
    border-radius: 999px;
    color: var(--texto);
    text-decoration: none;
    font-size: 0.9rem;
}
.filtros a.ativo { background: var(--primaria); color: #fff; border-color: var(--primaria); }

table { width: 100%; border-collapse: collapse; background: #fff; font-size: 0.92rem; }
th, td { padding: 0.6rem; border-bottom: 1px solid var(--borda); text-align: left; vertical-align: top; }
th { font-weight: normal; color: #666; }
td.mensagem { white-space: pre-wrap; max-width: 420px; }
td.acoes form { display: inline-block; margin: 0 0.25rem 0.25rem 0; }
td.acoes button { margin-top: 0; padding: 0.4rem 0.7rem; font-size: 0.85rem; }

.vazio { color: #777; font-style: italic; }
.voltar { text-align: center; margin-top: 1.5rem; }
.voltar a { color: var(--primaria); }
