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

#ppl {
  font-family: 'Noto Sans JP', -apple-system, sans-serif;
  max-width: 600px;
  margin: 0 auto;
  padding: 24px 16px 80px;
  color: #1a1a1a;
}

.ppl-head { text-align: center; margin-bottom: 32px; }
.ppl-head h1 { font-size: 1.4rem; font-weight: 900; margin-bottom: 8px; }
.ppl-head p { font-size: 0.9rem; color: #666; line-height: 1.7; }

.ppl-overall {
  background: #fdf7f2;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 28px;
  text-align: center;
}
.ppl-overall-num {
  font-size: 2.4rem;
  font-weight: 900;
  color: #E89B5C;
  line-height: 1;
}
.ppl-overall-num span { font-size: 1rem; }
.ppl-overall-bar {
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  margin: 12px 0 8px;
}
.ppl-overall-fill {
  height: 100%;
  background: #E89B5C;
  border-radius: 4px;
  transition: width 0.4s ease;
}
.ppl-overall-msg { font-size: 0.85rem; color: #666; }

.ppl-stage {
  margin-bottom: 28px;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
}
.ppl-stage-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #fafafa;
  cursor: pointer;
  user-select: none;
}
.ppl-stage-icon { font-size: 1.2rem; }
.ppl-stage-title { font-size: 0.95rem; font-weight: 700; flex: 1; }
.ppl-stage-progress { font-size: 0.8rem; color: #999; }
.ppl-stage-chevron {
  font-size: 0.75rem;
  color: #aaa;
  transition: transform 0.2s;
}
.ppl-stage.open .ppl-stage-chevron { transform: rotate(180deg); }
.ppl-stage-mini-bar {
  width: 60px;
  height: 4px;
  background: #f0f0f0;
  border-radius: 2px;
  overflow: hidden;
}
.ppl-stage-mini-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.4s;
}
.ppl-stage-mini-fill.s0 { background: #f0f0f0; }
.ppl-stage-mini-fill.s1 { background: #fde3b0; }
.ppl-stage-mini-fill.s2 { background: #f7c068; }
.ppl-stage-mini-fill.s3 { background: #E89B5C; }
.ppl-stage-mini-fill.s4 { background: #c06820; }

.ppl-items {
  padding: 12px 16px 16px;
  display: none;
}
.ppl-stage.open .ppl-items { display: block; }

.ppl-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid #f8f8f8;
  cursor: pointer;
  transition: opacity 0.2s;
}
.ppl-item:last-child { border-bottom: none; }
.ppl-item.done { opacity: 0.45; }
.ppl-item-check {
  width: 22px;
  height: 22px;
  border: 2px solid #ddd;
  border-radius: 5px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: all 0.15s;
}
.ppl-item.done .ppl-item-check {
  background: #E89B5C;
  border-color: #E89B5C;
}
.ppl-item-check::after {
  content: '';
  width: 5px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) translateY(-1px);
  display: none;
}
.ppl-item.done .ppl-item-check::after { display: block; }
.ppl-item-body { flex: 1; }
.ppl-item-text { font-size: 0.9rem; line-height: 1.5; }
.ppl-item-note { font-size: 0.78rem; color: #999; margin-top: 3px; line-height: 1.4; }
.ppl-item-link {
  font-size: 0.78rem;
  color: #E89B5C;
  text-decoration: none;
  margin-top: 4px;
  display: inline-block;
}

.ppl-reset {
  text-align: center;
  margin-top: 24px;
}
.ppl-reset button {
  font-size: 0.8rem;
  color: #bbb;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 8px;
}

.ppl-disclaimer {
  font-size: 0.75rem;
  color: #aaa;
  line-height: 1.6;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}