body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
  color: #222;
  background: #fafafa;
}
h1 { margin-bottom: 0.25rem; }
.subtitle { color: #666; margin-top: 0; }
form {
  display: flex;
  gap: 0.75rem;
  align-items: end;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}
label { font-size: 0.85rem; color: #555; display: block; margin-bottom: 0.25rem; }
select, input {
  padding: 0.4rem 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
}
button {
  padding: 0.45rem 1rem;
  border: none;
  border-radius: 6px;
  background: #2e6fdb;
  color: white;
  font-size: 0.95rem;
  cursor: pointer;
}
button:hover { background: #2559b3; }
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
th, td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #eee;
}
th {
  background: #f0f2f5;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #555;
}
tr:hover { filter: brightness(0.95); }
.iv { font-weight: 600; }
.rank { width: 2.5rem; font-weight: 600; }
.type-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 0.25rem;
}

#low-atk-search, #high-atk-search {
  display: block;
  background: #f0f2f5;
  padding: 0.5rem;
  border-radius: 6px;
  font-family: monospace;
}