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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #F8FAFC;
  min-height: 100vh;
  color: #1E293B;
}

.container {
  max-width: 540px;
  margin: 0 auto;
  padding: 32px 16px;
}

/* Circular progress */
.progress-header {
  text-align: center;
  margin-bottom: 32px;
}

.circle-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
}

.circle-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.circle-pct {
  font-size: 42px;
  font-weight: 800;
  color: #1E293B;
  line-height: 1;
}

.circle-hours {
  font-size: 13px;
  color: #64748B;
  margin-top: 4px;
}

.msg-main {
  font-size: 22px;
  font-weight: 700;
  color: #1E293B;
}

.msg-sub {
  font-size: 14px;
  color: #64748B;
  margin-top: 4px;
}

.msg-wrap.pop {
  animation: popIn 0.4s ease;
}

/* Stats row */
.stats-row {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.stat-card {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  border: 1px solid #E5E7EB;
}

.stat-icon { font-size: 20px; }
.stat-num { font-size: 20px; font-weight: 700; }
.stat-label { font-size: 11px; color: #94A3B8; margin-top: 2px; }

/* Category sections */
.category {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #E5E7EB;
  overflow: hidden;
}

.cat-header {
  padding: 14px 18px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cat-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-title {
  font-weight: 700;
  font-size: 16px;
}

.cat-pct {
  font-size: 13px;
  font-weight: 600;
}

.cat-bar {
  height: 3px;
  background: #F1F5F9;
  margin: 0 18px 8px;
  border-radius: 3px;
  overflow: hidden;
}

.cat-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.cat-items { padding: 4px 10px 10px; }

/* Item rows */
.item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.item-row:hover { background: #F8FAFC; }
.item-row.checked { background: var(--cat-light); }

.checkbox {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 2px solid #CBD5E1;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(.4,0,.2,1);
  flex-shrink: 0;
}

.checkbox.checked {
  border: none;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--cat-color) 25%, transparent);
}

.checkbox svg { display: none; }
.checkbox.checked svg { display: block; }

.item-label {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  color: #334155;
  transition: all 0.2s;
}

.item-row.checked .item-label {
  color: #94A3B8;
  text-decoration: line-through;
}

.item-hours {
  font-size: 12px;
  color: #94A3B8;
  font-weight: 500;
  background: #F1F5F9;
  border-radius: 6px;
  padding: 2px 8px;
}

/* Reset */
.reset-wrap { text-align: center; margin-top: 8px; margin-bottom: 24px; }

.reset-btn {
  background: none;
  border: none;
  color: #CBD5E1;
  font-size: 13px;
  cursor: pointer;
  padding: 8px 16px;
}

.reset-btn:hover { color: #94A3B8; }

/* Loading */
.loading {
  text-align: center;
  padding: 80px 0;
  color: #64748B;
  font-size: 16px;
}

.error-banner {
  background: #FEF2F2;
  color: #DC2626;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 14px;
  text-align: center;
}

@keyframes popIn {
  0% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}