body {
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	margin: 0;
	background: #f3f4f6;
	color: #111827;
}
/* header {
	background: #111827;
	color: white;
	padding: 1rem 2rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
} */
header {
	background: #111827;
	color: white;
	padding: 1rem 2rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;

	position: sticky;   /* 🔥 fica preso no topo quando fazes scroll */
	top: 0;
	z-index: 1000;
}


header h1 {
	margin: 0;
	font-size: 1.4rem;
}
/* main {
	padding: 1.5rem 2rem 2rem;
	max-width: 1200px;
	margin: 0 auto;
} */
main {
	padding: 1.5rem 2rem 2rem;
	max-width: 1200px;
	margin: 0 auto;
}

.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1rem;
	margin-bottom: 1.5rem;
}
.card {
	background: white;
	border-radius: 0.75rem;
	padding: 1rem 1.25rem;
	box-shadow: 0 1px 3px rgba(15,23,42,0.1);
}
.card h2 {
	margin: 0 0 0.75rem;
	font-size: 1.1rem;
}
.metric {
	font-size: 1.6rem;
	font-weight: 600;
	margin-bottom: 0.25rem;
}
.muted {
	color: #6b7280;
	font-size: 0.9rem;
}
.muted-small {
	font-size: 0.8rem;
	color: #6b7280;
}
.domain-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 0.5rem;
	font-size: 0.9rem;
}
.domain-table th,
.domain-table td {
	padding: 0.4rem 0.5rem;
	border-bottom: 1px solid #e5e7eb;
	text-align: left;
}
.domain-table th {
	background: #f9fafb;
	font-weight: 600;
}
.pill {
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	padding: 0.1rem 0.6rem;
	font-size: 0.75rem;
}
.pill-ok {
	background: #dcfce7;
	color: #166534;
}
.pill-err {
	background: #fee2e2;
	color: #991b1b;
}
.pill-warn {
	background: #fef3c7;
	color: #92400e;
}
.pill-neutral {
	background: #e5e7eb;
	color: #374151;
}
.date-selector,
.owner-selector {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.25rem;
}
.date-link,
.owner-link {
	padding: 0.25rem 0.6rem;
	border-radius: 999px;
	text-decoration: none;
	font-size: 0.8rem;
	border: 1px solid transparent;
	color: #374151;
	background: #e5e7eb;
}
.date-link.active,
.owner-link.active {
	background: white;
	color: #111827;
	border-color: #111827;
	font-weight: 600;
}
.log-box {
	background: #0b1120;
	color: #e5e7eb;
	font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	font-size: 0.8rem;
	padding: 0.75rem;
	border-radius: 0.75rem;
	overflow: auto;
	max-height: 350px;
	line-height: 1.3;
}
.log-line {
	white-space: pre;
}
.log-line:nth-child(even) {
	background: rgba(15,23,42,0.65);
}
.log-line.incoming { /*color: #a7f3d0;*/ color: #4ade80; } /* verde claro */
.log-line.outgoing { color: #bfdbfe; } /* azul claro */
.log-line.target   { color: #fde68a; } /* amarelo claro */
.log-line.error    { color: #fecaca; } /* vermelho claro */
.top-right-actions {
	text-align: right;
}
.btn-link {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.35rem 0.8rem;
	border-radius: 999px;
	background: #e5e7eb;
	color: #111827;
	font-size: 0.8rem;
	text-decoration: none;
}
.btn-link:hover {
	background: #d1d5db;
}
@media (max-width: 700px) {
	main { padding: 1rem; }
	header { padding: 0.75rem 1rem; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
	.top-right-actions { text-align: left; }
}