* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", "Hiragino Kaku Gothic ProN", sans-serif;
  background: #f4f5f7;
  color: #222;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}

h1 {
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.dashboard {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.stat-card {
  flex: 1;
  min-width: 140px;
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #3b5bdb;
}

.stat-label {
  font-size: 0.85rem;
  color: #666;
  margin-top: 4px;
}

.stat-card-wide {
  flex-basis: 100%;
  text-align: left;
}

.stat-review-comment {
  margin-top: 6px;
  font-size: 0.95rem;
  white-space: pre-wrap;
  color: #333;
}

.columns {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.panel {
  flex: 1;
  min-width: 320px;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.panel h2 {
  margin-top: 0;
  font-size: 1.15rem;
}

.panel-wide {
  width: 100%;
  margin-top: 20px;
}

.form-row input#review-week {
  max-width: 260px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.form input, .form textarea {
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
}

.form button {
  align-self: flex-start;
  background: #3b5bdb;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 0.9rem;
}

.form button:hover {
  background: #2f4bc0;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 480px;
  overflow-y: auto;
}

.item {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 10px 12px;
}

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

.item-body {
  white-space: pre-wrap;
  color: #444;
  margin: 6px 0;
  font-size: 0.9rem;
}

.item-meta {
  font-size: 0.75rem;
  color: #999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

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

.item-actions button {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.8rem;
  margin-left: 8px;
}

.btn-complete { color: #2f9e44; }
.btn-delete { color: #e03131; }

.empty {
  color: #999;
  font-size: 0.9rem;
  text-align: center;
  padding: 16px 0;
}
