* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  color: #1c1c1c;
  background: #f4f4f2;
}

.topbar {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  background: #173a2e;
  color: #fff;
}

.topbar h1 { margin: 0; font-size: 1.6rem; }
.subtitle { margin: 0; opacity: 0.85; }
.greeting { margin: 0.5rem 0 0; font-weight: 600; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  background: #fff;
  border-bottom: 1px solid #ddd;
}

.tabs a {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  color: #173a2e;
  font-weight: 600;
}

.tabs a:hover { background: #e6efe9; }

main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1rem;
}

.card h2 { margin-top: 0; }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 0.25rem;
  background: #eef4f0;
  border-radius: 8px;
  text-align: center;
}

.stat strong { font-size: 1.4rem; }
.stat span { font-size: 0.85rem; }

.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #eee;
}
.plain-list li:last-child { border-bottom: 0; }

.note { color: #666; font-size: 0.9rem; }

.row { display: flex; gap: 0.5rem; }

input[type="text"] {
  flex: 1;
  min-width: 0;
  padding: 0.6rem;
  border: 1px solid #bbb;
  border-radius: 8px;
  font-size: 1rem;
}

button {
  padding: 0.6rem 1rem;
  border: 0;
  border-radius: 8px;
  background: #173a2e;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

button.small { padding: 0.3rem 0.7rem; font-size: 0.9rem; background: #5a6b64; }

.done { text-decoration: line-through; opacity: 0.6; }

footer { text-align: center; color: #666; padding: 1rem; font-size: 0.9rem; }

/* Tablet and desktop: two columns, wider header. */
@media (min-width: 700px) {
  .topbar { flex-direction: row; justify-content: space-between; align-items: center; padding: 1rem 2rem; }
  .greeting { margin: 0; }
  main { grid-template-columns: 1fr 1fr; }
  #overview { grid-column: 1 / -1; }
}
