* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, "Hiragino Sans", sans-serif;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 60px;
  background: #f5f6f8;
  color: #222;
}

h1 {
  text-align: center;
}

.card {
  background: #fff;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

#dashboard {
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.dash-num {
  font-size: 28px;
  font-weight: bold;
  color: #2563eb;
}

.dash-label {
  font-size: 13px;
  color: #666;
}

form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

input, textarea, button {
  font-size: 14px;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
}

textarea {
  min-height: 60px;
  resize: vertical;
}

button {
  background: #2563eb;
  color: #fff;
  border: none;
  cursor: pointer;
  align-self: flex-start;
  padding: 8px 20px;
}

button:hover {
  background: #1d4ed8;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list li {
  background: #f3f4f6;
  border-left: 4px solid #2563eb;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 10px;
}

.list li:last-child {
  margin-bottom: 0;
}

.list li.task-done {
  border-left-color: #9ca3af;
}

.item-title {
  font-weight: bold;
}

.item-body {
  white-space: pre-wrap;
  color: #444;
  margin: 4px 0;
}

.item-meta {
  font-size: 12px;
  color: #999;
}

.item-actions {
  margin-top: 6px;
  display: flex;
  gap: 8px;
}

.item-actions button {
  padding: 4px 10px;
  font-size: 12px;
  background: #eee;
  color: #333;
}

.item-actions button.done-btn {
  background: #16a34a;
  color: #fff;
}

.item-actions button.delete-btn {
  background: #dc2626;
  color: #fff;
}

#noteList .item-title,
#noteList .item-body {
  color: #b8860b;
}

.task-done .item-title {
  text-decoration: line-through;
  color: #999;
}

.hint {
  font-size: 12px;
  color: #888;
  margin: 0 0 4px;
}

.reflection-latest {
  background: #eef2ff;
  border-left: 4px solid #4f46e5;
  border-radius: 6px;
  padding: 10px 14px;
  color: #444;
}

.reflection-latest .item-title {
  color: #4f46e5;
}
