:root {
  --bg: #f7f5f0;
  --fg: #1f2a24;
  --accent: #2f4a3e;
  --accent-light: #e4ede8;
  --border: #d8d3c8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
}

main { max-width: 640px; margin: 0 auto; padding: 1rem; }

.topnav {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: white;
}
.topnav a { color: white; text-decoration: none; font-size: 0.95rem; }
.topnav .brand { font-weight: 700; margin-right: auto; }
.topnav .logout { opacity: 0.8; }

h1 { font-size: 1.4rem; }

input[type="search"], input[type="email"], input[type="text"], input[type="time"], select {
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
}

.button, button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}
.button-small { font-size: 0.85rem; padding: 0.3rem 0.6rem; }

.centered-card {
  max-width: 380px;
  margin: 3rem auto;
  text-align: center;
}

.result-list { list-style: none; padding: 0; }
.result-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.result-list a { color: var(--fg); text-decoration: none; font-weight: 500; }
.family-tag { color: #6b7568; font-size: 0.85rem; }

.data-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.data-table th, .data-table td { text-align: left; padding: 0.4rem; border-bottom: 1px solid var(--border); }

.inline-form { display: flex; gap: 0.5rem; margin: 1rem 0; }

.scientific-name { color: #6b7568; }
.range-text { font-style: italic; }

.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; margin: 1rem 0; }
.checkbox-grid label { display: flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; }
