:root { --bg:#f6f7f9; --card:#fff; --ink:#1d2330; --muted:#6b7280; --line:#e3e6ea; --brand:#0f5f8f; --ok:#1b7f4b; --warn:#b35c00; --bad:#b3261e; }
* { box-sizing: border-box; }
body { margin:0; font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color:var(--ink); background:var(--bg); }
a { color:var(--brand); text-decoration:none; } a:hover { text-decoration:underline; }
header.top { display:flex; align-items:center; gap:24px; padding:10px 20px; background:#fff; border-bottom:1px solid var(--line); }
header .brand { font-weight:700; font-size:18px; color:var(--ink); }
header nav a { margin-right:16px; }
header .who { margin-left:auto; color:var(--muted); font-size:14px; }
main { max-width:1180px; margin:0 auto; padding:20px; }
h1 { font-size:22px; margin:0 0 12px; } h2 { font-size:17px; margin:22px 0 8px; } h3 { font-size:15px; margin:14px 0 6px; }
.muted { color:var(--muted); } .small { font-size:13px; }
.flash { padding:10px 14px; border-radius:8px; margin-bottom:14px; background:#e7f5ec; border:1px solid #bfe3cc; }
.flash.warn { background:#fff4e5; border-color:#f3d2a6; }
.card { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:14px 16px; }
.cards { display:grid; grid-template-columns:repeat(auto-fit, minmax(190px, 1fr)); gap:12px; margin:10px 0 18px; }
.cards .card b { display:block; font-size:20px; } .cards .card span { color:var(--muted); font-size:13px; }
table { width:100%; border-collapse:collapse; background:#fff; border:1px solid var(--line); border-radius:10px; overflow:hidden; }
th, td { text-align:left; padding:8px 10px; border-bottom:1px solid var(--line); vertical-align:top; font-size:14px; }
th { background:#fafbfc; color:var(--muted); font-weight:600; } tr:last-child td { border-bottom:0; }
td.num, th.num { text-align:right; white-space:nowrap; }
.badge { display:inline-block; padding:2px 8px; border-radius:999px; font-size:12px; font-weight:600; background:#e8ecf1; color:#334; white-space:nowrap; }
.badge.rodando, .badge.na_fila { background:#e3f0fb; color:#0f5f8f; }
.badge.plano_pronto, .badge.previa_pronta, .badge.precisa_de_resposta, .badge.aguardando_aprovacao { background:#fff1d6; color:#8a4b00; }
.badge.entregue { background:#e7f5ec; color:#1b7f4b; }
.badge.falhou, .badge.pausado_orcamento { background:#fde8e6; color:#b3261e; }
.badge.cancelado { background:#eee; color:#777; }
form.inline { display:inline; }
label { display:block; font-size:13px; color:var(--muted); margin:10px 0 4px; }
input[type=text], input[type=number], input[type=url], input[type=email], select, textarea { width:100%; padding:8px 10px; border:1px solid #cfd4da; border-radius:8px; font:inherit; background:#fff; }
textarea { min-height:90px; }
.row { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:0 16px; }
button, .btn { font:inherit; padding:8px 14px; border-radius:8px; border:1px solid var(--brand); background:var(--brand); color:#fff; cursor:pointer; }
button.secondary, .btn.secondary { background:#fff; color:var(--brand); }
button.danger { background:#fff; color:var(--bad); border-color:var(--bad); }
pre { background:#0f172a; color:#e2e8f0; padding:12px; border-radius:10px; overflow:auto; max-height:460px; font-size:12.5px; line-height:1.4; }
.md { background:#fff; border:1px solid var(--line); border-radius:10px; padding:4px 16px; overflow:auto; }
.md table { font-size:13px; } .md img { max-width:100%; }
.strip { display:flex; gap:18px; flex-wrap:wrap; align-items:center; padding:10px 14px; background:#fff; border:1px solid var(--line); border-radius:10px; margin-bottom:14px; font-size:14px; }
.dot { display:inline-block; width:10px; height:10px; border-radius:50%; background:#aaa; margin-right:6px; }
.dot.running { background:var(--ok); } .dot.stopped { background:#aaa; } .dot.pending, .dot.stopping { background:var(--warn); }
.actions { display:flex; flex-wrap:wrap; gap:12px; }
.actions .card { flex:1 1 300px; }
.timeline li { margin:4px 0; } .timeline .ts { color:var(--muted); font-size:12px; margin-right:6px; }
img.contact { max-width:100%; border:1px solid var(--line); border-radius:8px; }
.warn { color:var(--warn); } .bad { color:var(--bad); } .ok { color:var(--ok); }
.meter { height:8px; background:#e8ecf1; border-radius:4px; overflow:hidden; } .meter i { display:block; height:100%; background:var(--brand); }
.meter i.over { background:var(--bad); }
details summary { cursor:pointer; color:var(--brand); }
