/* 🧹 가족 정리 계획 페이지 */

.plan-layout { max-width: 720px; }

/* 소개 */
.plan-lead { font-size: 15px; line-height: 1.8; }
.plan-howto { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.howto-step {
  display: flex; align-items: center; gap: 10px;
  background: var(--card-bg, #fff);
  border: 1px solid var(--color-border, #e5decf);
  border-radius: 12px; padding: 10px 14px; font-size: 14px;
}
.howto-num {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%;
  background: var(--color-olive-dark, #8a6d3b); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}

/* 등급 범례 */
.legend-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 620px) { .legend-grid { grid-template-columns: 1fr; } }
.legend-card { border-radius: 12px; padding: 12px 14px; font-size: 13.5px; border: 1.5px solid; line-height: 1.6; }
.legend-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.legend-card--green  { background: rgba(120, 180, 90, .12);  border-color: rgba(120, 180, 90, .5); }
.legend-card--yellow { background: rgba(220, 180, 60, .12);  border-color: rgba(220, 180, 60, .5); }
.legend-card--red    { background: rgba(210, 90, 90, .12);   border-color: rgba(210, 90, 90, .5); }
.legend-more { margin-top: 12px; font-size: 13.5px; }
.legend-more a { font-weight: 700; }

/* 계획 카드 */
.plan-list { display: flex; flex-direction: column; gap: 14px; }
.plan-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--color-border, #e5decf);
  border-radius: 14px; padding: 16px 18px;
}
.plan-card--done { opacity: .75; }

.plan-head { display: flex; align-items: flex-start; gap: 10px; }
.plan-icon { font-size: 26px; line-height: 1.2; }
.plan-titlebox { flex: 1; min-width: 0; }
.plan-title { font-size: 17px; margin: 0; }
.plan-sub { font-size: 12.5px; opacity: .7; margin-top: 2px; }
.plan-status {
  flex: 0 0 auto; font-size: 12px; font-weight: 700;
  border-radius: 999px; padding: 3px 10px; white-space: nowrap;
}
.plan-status--idea  { background: rgba(150, 150, 220, .15); }
.plan-status--ready { background: rgba(220, 180, 60, .18); }
.plan-status--done  { background: rgba(120, 180, 90, .18); }

.plan-meta {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  font-size: 13px; opacity: .85; margin: 10px 0 4px;
}
.plan-secret { font-weight: 700; }

.plan-steps { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; }
.plan-step { display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.step-grade {
  flex: 0 0 auto; font-size: 11.5px; font-weight: 700;
  border-radius: 999px; padding: 2px 8px; border: 1px solid;
}
.step-grade--green  { background: rgba(120, 180, 90, .12); border-color: rgba(120, 180, 90, .5); }
.step-grade--yellow { background: rgba(220, 180, 60, .12); border-color: rgba(220, 180, 60, .5); }
.step-grade--red    { background: rgba(210, 90, 90, .12);  border-color: rgba(210, 90, 90, .5); }
.step-note { font-style: normal; opacity: .7; font-size: 12.5px; }

.plan-notes {
  margin: 10px 0 0; font-size: 13.5px; opacity: .85;
  border-top: 1px dashed var(--color-border, #e5decf); padding-top: 8px;
}

/* 빈 상태 */
.plan-empty {
  text-align: center; padding: 36px 16px;
  background: var(--card-bg, #fff);
  border: 1.5px dashed var(--color-border, #e5decf);
  border-radius: 14px; font-size: 14.5px; line-height: 1.9;
}
.plan-empty-icon { font-size: 36px; margin-bottom: 8px; }

/* 완료 접기 */
.plan-done-details summary {
  cursor: pointer; font-weight: 700; font-size: 15px; margin-bottom: 12px;
}
