* { box-sizing: border-box; }
body {
  font-family: -apple-system, "Segoe UI", "Hiragino Sans", sans-serif;
  background: #f4f5f7;
  margin: 0;
  color: #222;
}
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
}
h1 {
  text-align: center;
  margin-bottom: 24px;
}
.dashboard {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  flex: 1;
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.stat-value {
  font-size: 28px;
  font-weight: bold;
  color: #2b6cb0;
}
.stat-label {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
}
.stat-notes {
  border-top: 4px solid #2b6cb0;
}
.stat-notes .stat-value {
  color: #2b6cb0;
}
.stat-tasks {
  border-top: 4px solid #6b46c1;
}
.stat-tasks .stat-value {
  color: #6b46c1;
}
.stat-pending {
  border-top: 4px solid #dd6b20;
}
.stat-pending .stat-value {
  color: #dd6b20;
}
.stat-review {
  border-top: 4px solid #2f855a;
  text-align: left;
}
.stat-review-week {
  font-size: 16px !important;
  color: #2f855a !important;
}
.stat-review-comment {
  font-size: 12px;
  color: #444;
  margin-top: 6px;
  white-space: pre-wrap;
  max-height: 60px;
  overflow-y: auto;
}
.columns {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.panel {
  flex: 1;
  min-width: 300px;
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.panel h2 {
  margin-top: 0;
}
.form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.form input, .form textarea {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}
.form button {
  background: #2b6cb0;
  color: #fff;
  border: none;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
.form button:hover {
  background: #245a94;
}
.list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 400px;
  overflow-y: auto;
}
.list li {
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}
.item-title {
  font-weight: bold;
}
.item-body {
  white-space: pre-wrap;
  font-size: 14px;
  color: #444;
  margin: 4px 0;
}
.item-meta {
  font-size: 12px;
  color: #999;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.task-line {
  display: flex;
  align-items: center;
  gap: 8px;
}
.task-line.done .item-title {
  text-decoration: line-through;
  color: #999;
}
.badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #e2e8f0;
}
.badge.done {
  background: #c6f6d5;
  color: #22543d;
}
.small-btn {
  background: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 2px 8px;
  cursor: pointer;
  font-size: 12px;
}
.small-btn:hover {
  background: #f0f0f0;
}

.schedule-toolbar {
  margin-bottom: 10px;
}
.schedule-toolbar input[type="date"] {
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}
.schedule-form {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}
.schedule-form input[type="text"] {
  flex: 1;
  min-width: 160px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}
.schedule-form select {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}
.schedule-form button {
  padding: 8px 14px;
}

.timeline-wrap {
  max-height: 520px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  position: relative;
}
.timeline {
  position: relative;
  height: calc(96 * 20px);
}
.timeline-row {
  position: absolute;
  left: 0;
  right: 0;
  height: 20px;
  border-top: 1px solid #f0f1f3;
  box-sizing: border-box;
}
.timeline-row.hour {
  border-top: 1px solid #d8dce2;
}
.timeline-label {
  position: absolute;
  left: 4px;
  top: -7px;
  font-size: 11px;
  color: #999;
  background: #fff;
  padding: 0 4px;
  pointer-events: none;
}
.schedule-block {
  position: absolute;
  left: 60px;
  right: 8px;
  background: #2b6cb0;
  color: #fff;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  overflow: hidden;
  cursor: grab;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  user-select: none;
}
.schedule-block.dragging {
  cursor: grabbing;
  opacity: 0.85;
  z-index: 10;
}
.schedule-block .schedule-title {
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.schedule-block .schedule-time {
  font-size: 10px;
  opacity: 0.85;
}
.schedule-block .schedule-delete {
  position: absolute;
  top: 2px;
  right: 4px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  opacity: 0.8;
}
.schedule-block .schedule-delete:hover {
  opacity: 1;
}
