* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  background: #f4f5f7;
  color: #222;
}

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

h1 {
  text-align: center;
  margin-bottom: 24px;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

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

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #3a6df0;
}

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

.highlight-card {
  grid-column: 1 / -1;
  text-align: left;
}

.highlight-body {
  margin-top: 8px;
  font-size: 14px;
  color: #333;
  white-space: pre-wrap;
  word-break: break-word;
}

.highlight-body .highlight-week {
  display: block;
  font-weight: 600;
  color: #3a6df0;
  margin-bottom: 4px;
}

.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 700px) {
  .columns {
    grid-template-columns: 1fr;
  }
  .dashboard {
    grid-template-columns: 1fr;
  }
}

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

.panel h2 {
  margin-top: 0;
}

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

.form label {
  font-size: 12px;
  color: #666;
}

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

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

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

.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-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

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

.item-body {
  margin-top: 6px;
  font-size: 14px;
  color: #444;
  white-space: pre-wrap;
  word-break: break-word;
}

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

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

.badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffe9b3;
  color: #8a5a00;
}

.badge.done {
  background: #d4f7d4;
  color: #2a7a2a;
}

.item-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.item-actions button {
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}

.btn-complete {
  background: #eaf1ff;
  color: #3a6df0;
}

.btn-delete {
  background: #ffeaea;
  color: #d33;
}

.empty {
  color: #999;
  font-size: 13px;
  text-align: center;
  padding: 12px 0;
}
