*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #1a1a1a;
  background: #f9f9f9;
  max-width: 640px;
  margin: 0 auto;
  padding: 1rem;
}

nav {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ddd;
  margin-bottom: 1.5rem;
}

nav a {
  text-decoration: none;
  color: #0066cc;
  font-weight: 500;
}

nav a:hover { text-decoration: underline; }

/* Day navigation */
.day-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.day-nav h1 { font-size: 1.4rem; }
.day-nav a  { text-decoration: none; color: #0066cc; font-size: 0.9rem; }
.day-nav a:hover { text-decoration: underline; }
.muted { color: #bbb; font-size: 0.9rem; }

/* Task list */
.task-list {
  list-style: none;
  margin-bottom: 1rem;
}

.task-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #eee;
}

.task-list li.empty { color: #999; font-style: italic; }

.task-text { flex: 1; }
.task-list li.done .task-text { text-decoration: line-through; color: #888; }

button.check {
  width: 1.4rem;
  height: 1.4rem;
  border: 2px solid #aaa;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  color: #0066cc;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

button.check:hover { border-color: #0066cc; }

/* Add form */
.add-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.add-form input[type="text"] {
  flex: 1;
  padding: 0.5rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.add-form input[type="text"]:focus {
  outline: none;
  border-color: #0066cc;
}

.add-form button[type="submit"] {
  padding: 0.5rem 1rem;
  background: #0066cc;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
}

.add-form button[type="submit"]:hover { background: #0052a3; }

/* Notes */
.notes-section {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 2px solid #ddd;
}

.notes-section h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: #444;
}

.notes-list {
  list-style: none;
  margin-top: 1rem;
}

.notes-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid #eee;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}

.notes-list li.empty { color: #999; font-style: italic; }

.note-time {
  font-size: 0.78rem;
  color: #999;
  white-space: nowrap;
  flex-shrink: 0;
}

.note-text { flex: 1; }

/* Lists index */
.list-index { list-style: none; margin-bottom: 1.5rem; }
.list-index li { padding: 0.4rem 0; border-bottom: 1px solid #eee; }
.list-index a { text-decoration: none; color: #0066cc; }
.list-index a:hover { text-decoration: underline; }
