* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: #f4f5f7;
    color: #1e1e1e;
    line-height: 1.5;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 16px;
}

.topbar {
    background: #17181c;
    color: #fff;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.topbar a { color: #fff; text-decoration: none; }
.topbar .sair { opacity: .7; font-size: 14px; }

.login-box {
    max-width: 360px;
    margin: 80px auto;
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

.login-box h1 { font-size: 20px; margin-bottom: 20px; text-align: center; }

label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 4px; }

input[type=text], input[type=password], input[type=date], input[type=file],
select, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d6d8dc;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
}

textarea { min-height: 80px; resize: vertical; }

button, .btn {
    display: inline-block;
    background: #17181c;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    margin-top: 14px;
}

.btn-secundario { background: #6c6f75; }
.btn-perigo { background: #c0392b; }
.btn-sm { padding: 6px 12px; font-size: 13px; margin-top: 0; }

.card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.lista-clientes a.item, .demanda {
    display: block;
    padding: 14px;
    border: 1px solid #e6e7ea;
    border-radius: 10px;
    margin-bottom: 10px;
    text-decoration: none;
    color: inherit;
}

.demanda .meta {
    font-size: 12px;
    color: #777;
    margin-bottom: 6px;
}

.badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    background: #eee;
    color: #444;
    margin-right: 6px;
}

.badge.reels { background: #fde2e2; color: #9c2626; }
.badge.story { background: #e2ecfd; color: #234f9c; }
.badge.carrossel { background: #fdf2d0; color: #8a6a10; }
.badge.post { background: #e2fde6; color: #256b32; }

.midias { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.midias img, .midias video { max-width: 180px; max-height: 180px; border-radius: 8px; }

.filtro-mes { display: flex; gap: 8px; align-items: center; margin-bottom: 20px; }
.filtro-mes select { width: auto; }

.acoes { display: flex; gap: 8px; margin-top: 10px; }

.aviso { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.aviso.erro { background: #fdecea; color: #a12a1f; }
.aviso.sucesso { background: #e6f6ea; color: #1d6b34; }

.vazio { color: #888; text-align: center; padding: 40px 0; }

a.link-ref { color: #234f9c; word-break: break-all; }
