*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f5f5f5;
  min-height: 100vh;
  padding: 24px 16px;
  color: #1a1a1a;
}

.container {
  max-width: 480px;
  margin: 0 auto;
}

header {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

h1 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

#count {
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  white-space: nowrap;
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: #e8e8e8;
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #2563eb;
  border-radius: 99px;
  width: 0%;
  transition: width .3s ease;
}

.actions {
  display: flex;
  gap: 8px;
}

button {
  flex: 1;
  padding: 9px 0;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s;
}

button:hover { background: #f3f4f6; }

.btn-notify {
  width: 100%;
  margin-top: 10px;
  padding: 12px 0;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.btn-notify:hover:not(:disabled) { background: #1d4ed8; }
.btn-notify:disabled { opacity: 0.6; cursor: not-allowed; }

.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checklist li {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: opacity .2s;
}

.checklist li.checked {
  opacity: 0.55;
}

.checklist label {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  user-select: none;
}

.checklist input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
  position: relative;
}

.checklist input[type="checkbox"]:checked {
  background: #2563eb;
  border-color: #2563eb;
}

.checklist input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 6px;
  height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.name {
  font-size: 1rem;
  font-weight: 500;
}

.note {
  font-size: 0.78rem;
  color: #888;
  margin-left: auto;
}
