:root {
	color-scheme: light;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: "DM Sans", system-ui, sans-serif;
	background: #f6f7fb;
	color: #1e1f24;
}

header {
	background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
	color: #fff;
	padding: 32px 24px;
}

main {
	padding: 24px;
	display: grid;
	gap: 24px;
	max-width: 1200px;
	margin: 0 auto;
}

h1 {
	margin: 0 0 8px 0;
}

header h1 a {
	color: inherit;
	text-decoration: none;
}

h2 {
	margin: 0 0 8px 0;
}

p {
	margin: 0 0 12px 0;
}

.card {
	background: #fff;
	border-radius: 16px;
	padding: 20px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

ul.pet-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

ul.pet-list li.pet {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.pet-grid {
	display: grid;
	gap: 18px;
}

.pet {
	display: grid;
	gap: 8px;
	font-size: 2rem;
}

.pet-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.pill {
	min-width: 20vw;
	text-align: center;
	padding: 1rem;
	border-radius: 999px;
	font-size: 2rem;
	background: #e2e8f0;
	color: #334155;
	display: inline-block;
}

a.pill {
	text-decoration: none;
	color: inherit;
}

.pill.enabled {
	background: #dcfce7;
	color: #166534;
}

form {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
}

input[type="text"] {
	border: 1px solid #cbd5f5;
	border-radius: 10px;
	padding: 8px 10px;
	min-width: 200px;
}

button {
	border: none;
	font-size: 1.5rem;
	border-radius: 1rem;
	padding: 0.5rem 1rem;
	background: #1d4ed8;
	color: #fff;
	cursor: pointer;
}

svg {
	width: 100%;
	height: 180px;
}

.axis-labels {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	color: #64748b;
	margin-top: 6px;
}

.status {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 999px;
	background: #fee2e2;
	color: #991b1b;
	font-size: 12px;
}

.top-list {
	display: grid;
	gap: 10px;
}

.top-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.vote-page main,
.thanks-page main {
	max-width: 720px;
	margin: 80px auto;
	background: #fff;
	padding: 32px;
	border-radius: 18px;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.vote-page h1,
.thanks-page h1 {
	margin-top: 0;
}

.thanks-page a {
	color: #1d4ed8;
}
