:root { --cor: #059669; --tinta: #0f172a; --suave: #64748b; --linha: #e2e8f0; --fundo: #f8fafc; --branco: #fff; }
* { box-sizing: border-box; }
body { margin: 0; font-family: "Inter", "Segoe UI", system-ui, Arial, sans-serif; color: var(--tinta); background: var(--fundo); font-size: 15px; line-height: 1.5; }
a { color: var(--cor); }
h1 { font-size: 1.6rem; margin: 0 0 .5rem; } h2 { font-size: 1.1rem; margin: 0 0 .75rem; }
code, .mono { font-family: "JetBrains Mono", Consolas, monospace; font-size: .9em; }
.topo { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: .7rem 1.25rem; background: var(--tinta); color: #fff; }
.topo a { color: #e2e8f0; text-decoration: none; }
.topo a:hover { color: #fff; }
.topo .marca { font-weight: 800; font-size: 1.1rem; color: #fff; border-left: 4px solid var(--cor); padding-left: .6rem; }
.topo nav { display: flex; flex-wrap: wrap; gap: .9rem; flex: 1; }
.topo .conta { display: flex; gap: .8rem; align-items: center; }
.topo .link { color: #e2e8f0; }
.bolha { background: #dc2626; color: #fff; border-radius: 999px; padding: 0 .45rem; font-size: .75rem; }
.conteudo { max-width: 1280px; margin: 0 auto; padding: 1.25rem 1rem 4rem; }
.caixa-login { max-width: 420px; margin: 8vh auto; padding: 0 1rem; }
.cartao { background: var(--branco); border: 1px solid var(--linha); border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 1rem; }
.cartao.destaque { border-color: var(--cor); }
.cabecalho { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.acoes { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.acoes form { margin: 0; }
.acoes.fixo { position: sticky; bottom: 0; background: var(--fundo); padding: .75rem 0; border-top: 1px solid var(--linha); }
.botao { display: inline-block; background: var(--cor); color: #fff; border: 0; border-radius: 8px; padding: .55rem 1rem; font-weight: 700; cursor: pointer; text-decoration: none; font-size: .95rem; }
.botao:hover { filter: brightness(.95); }
.botao.secundario { background: #fff; color: var(--tinta); border: 1px solid #cbd5e1; }
.botao.perigo { background: #fff; color: #b91c1c; border: 1px solid #fecaca; }
.link { background: none; border: 0; color: var(--cor); cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }
label { display: block; font-weight: 600; margin-bottom: .25rem; }
label.check { display: flex; gap: .5rem; align-items: center; font-weight: 500; }
input, select, textarea { width: 100%; padding: .5rem .6rem; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; background: #fff; }
input[type=checkbox] { width: auto; }
input[type=color] { width: 4rem; height: 2.4rem; padding: .1rem; }
textarea { resize: vertical; }
.campo { margin-bottom: .85rem; }
.campo small { color: var(--suave); display: block; margin-top: .2rem; }
.campo small.longe { color: #b45309; font-weight: 600; }
.errorlist { color: #b91c1c; margin: .25rem 0; padding-left: 1rem; }
.mensagens .msg, .msg { padding: .6rem .9rem; border-radius: 8px; margin: 0 0 .6rem; background: #ecfdf5; border: 1px solid #a7f3d0; }
.msg.error { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }
.msg.info { background: #eff6ff; border-color: #bfdbfe; }
.pequeno { color: var(--suave); font-size: .88rem; }
.vazio { color: var(--suave); }
.centro { text-align: center; }
.qr { background: #fff; padding: 8px; border: 1px solid var(--linha); border-radius: 8px; }
.filtros { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.filtros input, .filtros select { width: auto; min-width: 10rem; }
.numeros { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.numero { background: #fff; border: 1px solid var(--linha); border-radius: 10px; padding: .6rem .8rem; text-decoration: none; color: var(--tinta); border-top: 4px solid #cbd5e1; }
.numero strong { display: block; font-size: 1.5rem; }
.colunas { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; }
.grade-cartoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.linha { display: flex; gap: .75rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--linha); text-decoration: none; color: var(--tinta); }
.linha:last-child { border-bottom: 0; }
.linha .quando { width: 6.5rem; flex-shrink: 0; color: var(--suave); font-size: .85rem; font-weight: 600; }
.linha .oque { flex: 1; min-width: 0; }
.linha .oque strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.linha .oque small { color: var(--suave); }
.status { display: inline-block; font-size: .75rem; font-weight: 700; border-radius: 999px; padding: .1rem .55rem; background: #f1f5f9; color: #334155; white-space: nowrap; }
.s-planejado { background: #f1f5f9; color: #334155; border-color: #94a3b8; }
.s-gerado { background: #e0e7ff; color: #3730a3; border-color: #6366f1; }
.s-revisao { background: #fef3c7; color: #92400e; border-color: #f59e0b; }
.s-agendado { background: #e0f2fe; color: #075985; border-color: #0ea5e9; }
.s-publicando { background: #ede9fe; color: #5b21b6; border-color: #8b5cf6; }
.s-publicado { background: #d1fae5; color: #065f46; border-color: #10b981; }
.s-erro { background: #fee2e2; color: #991b1b; border-color: #ef4444; }
.atrasada { outline: 2px solid #ef4444; }
.status.atrasada { background: #fee2e2; color: #991b1b; }
.legenda { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; }
.nav-cal { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: .75rem; }
.nav-cal .separa { flex: 1; }
.nav-cal a.ativo { font-weight: 800; text-decoration: none; color: var(--tinta); }
.tabela-rolagem { overflow-x: auto; }
table.cal { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 760px; background: #fff; }
table.cal th { padding: .4rem; font-size: .8rem; color: var(--suave); text-align: left; }
table.cal td { border: 1px solid var(--linha); vertical-align: top; height: 7.5rem; padding: .3rem; }
table.cal.semana td { height: 22rem; }
table.cal td.fora { background: #f8fafc; color: #94a3b8; }
table.cal td.hoje { box-shadow: inset 0 0 0 2px var(--cor); }
.dia { display: flex; justify-content: space-between; font-weight: 700; font-size: .85rem; }
.dia .mais { text-decoration: none; color: var(--suave); padding: 0 .3rem; }
.item { display: block; font-size: .78rem; text-decoration: none; color: var(--tinta); border-left: 4px solid; border-radius: 4px; padding: .15rem .35rem; margin-top: .25rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item small { display: block; color: var(--suave); }
table.lista { width: 100%; border-collapse: collapse; background: #fff; }
table.lista th, table.lista td { border-bottom: 1px solid var(--linha); padding: .5rem; text-align: left; vertical-align: top; }
.duas { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(320px, 2fr); gap: 1rem; }
@media (max-width: 860px) { .duas { grid-template-columns: 1fr; } }
.alerta-box { border-color: #fcd34d; background: #fffbeb; }
.previa article { max-width: 760px; }
.previa article h1 { font-size: 1.8rem; }
.ajuda summary { cursor: pointer; font-weight: 700; }
p.novo { font-weight: 700; }
