* {
  box-sizing: border-box;
}

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

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

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

h2 {
  font-size: 18px;
  margin: 0 0 12px;
}

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

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

.stat-label {
  font-size: calc(13px + 5pt);
  color: #6b7280;
  margin-bottom: 6px;
}

.stat-value {
  font-size: calc(28px + 5pt);
  font-weight: 700;
}

#stat-memo-count {
  color: #2563eb;
}

#stat-task-count {
  color: #16a34a;
}

#stat-task-pending {
  color: #dc2626;
}

.review-highlight {
  background: #fff;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #7c3aed;
}

.review-highlight-label {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 4px;
}

.review-highlight-week {
  font-size: 14px;
  font-weight: 600;
  color: #7c3aed;
  margin-bottom: 6px;
}

.review-highlight-comment {
  margin: 0;
  color: #374151;
  white-space: pre-wrap;
  word-break: break-word;
}

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

.review-panel {
  margin-top: 20px;
}

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

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

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

.form input,
.form textarea {
  font: inherit;
  padding: 8px 10px;
  border: 2px solid #9ca3af;
  border-radius: 6px;
  resize: vertical;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: #2563eb;
}

.form button {
  align-self: flex-start;
  font: inherit;
  padding: 8px 16px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.form button:hover {
  background: #1d4ed8;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item {
  border: 1px solid #e5e7eb;
  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: 6px 0 0;
  color: #374151;
  white-space: pre-wrap;
  word-break: break-word;
}

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

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

.item-actions button {
  font: inherit;
  font-size: 12px;
  padding: 4px 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.item-actions button:hover {
  background: #f3f4f6;
}

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

.task-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.task-checkbox input {
  margin-top: 3px;
}

.empty {
  color: #9ca3af;
  font-size: 14px;
  text-align: center;
  padding: 16px 0;
}
