:root {
  color: #20251f;
  background: #eef2e8;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at top left, #d8e8c8, transparent 42%), #eef2e8;
}

.card {
  width: min(680px, 100%);
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid #d1d8ca;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 70px rgba(45, 60, 40, 0.12);
}

.eyebrow { color: #537045; font-size: 12px; font-weight: 800; letter-spacing: 0.16em; }
h1 { margin: 8px 0; font-size: clamp(34px, 7vw, 56px); letter-spacing: -0.04em; }
.intro { margin: 0 0 32px; color: #657061; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}

.stats div {
  display: grid;
  gap: 2px;
  padding: 14px;
  border-radius: 14px;
  background: #edf2e8;
}

.stats strong { font-size: 24px; }
.stats span { color: #657061; font-size: 13px; }
label { display: block; margin-bottom: 8px; font-weight: 700; }
.form-row { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto auto; gap: 10px; }
.tag-input-row { display: grid; gap: 8px; margin-top: 12px; }
.tag-input-row label { margin: 0; font-size: 14px; }

input, select {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid #c9d1c3;
  border-radius: 12px;
  background: white;
  font: inherit;
}

.edit-input { min-width: 180px; }

button {
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  color: white;
  background: #3f6335;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:hover { filter: brightness(0.94); }
.message { min-height: 24px; color: #a13c32; }
.search-row { display: grid; gap: 8px; margin-top: 8px; }
.search-row label { margin: 0; }
.filters { display: flex; gap: 8px; margin-top: 8px; }
.filter { color: #53604e; background: #edf0e9; }
.filter.active { color: white; background: #3f6335; }
.tag-filter-row { display: grid; grid-template-columns: auto minmax(160px, 1fr) auto; align-items: center; gap: 10px; margin-top: 12px; }
.tag-filter-row label { margin: 0; }
.wish-list { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }

.wish {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f3f5ef;
}

.wish.completed .wish-title { color: #7a8376; text-decoration: line-through; }
.wish-content { display: grid; gap: 4px; }
.wish-content time { color: #7a8376; font-size: 12px; }
.wish-details { display: flex; flex-wrap: wrap; gap: 6px; }
.wish-details span { padding: 3px 7px; border-radius: 999px; font-size: 12px; }
.priority-low { color: #46613d; background: #e0eadb; }
.priority-medium { color: #745a16; background: #f4e9bd; }
.priority-high { color: #96352d; background: #f5d8d4; }
.due-date { color: #53604e; background: #e5e9e1; }
.tag { color: #315f68; background: #dceef0; }
.overdue { border: 1px solid #d9867e; background: #fff4f2; }
.overdue-label { color: white; background: #b5453b; }
.empty-state { padding: 28px 16px; color: #657061; text-align: center; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; }
.pagination span { color: #657061; font-size: 14px; }
.pagination button:disabled { cursor: not-allowed; filter: none; opacity: 0.45; }
.actions { display: flex; gap: 8px; }
.secondary { color: #395531; background: #dce8d5; }
.danger { color: #8b3028; background: #f4dcd9; }
.site-footer { margin-top: 24px; text-align: center; }
.site-footer a { color: #537045; font-size: 13px; }
.site-footer a:hover { color: #2f4f27; }

@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
  .tag-filter-row { grid-template-columns: 1fr; }
  .wish { align-items: stretch; flex-direction: column; }
  .actions button { flex: 1; }
}
