/* ---------------------------------------------------------------------------
 * IK000320_P01.xfdl 변환본 — TR 개월차 도전 목표 폼 모달 (530x260).
 * Modal #A 37 + *Rule of Two 추출 6번째* (add/edit 통합).
 * --------------------------------------------------------------------------- */

#ik-tr-challenge-goal-form-modal {
  display: none;
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0, 0, 0, 0.45);
  align-items: center; justify-content: center;
  font-family: 'Pretendard', 'Malgun Gothic', sans-serif;
}
#ik-tr-challenge-goal-form-modal.is-open { display: flex; }
#ik-tr-challenge-goal-form-modal .layer-wrap {
  width: 560px; background: #ffffff; border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  display: flex; flex-direction: column; overflow: hidden;
}
#ik-tr-challenge-goal-form-modal .layer-header {
  display: flex; align-items: center; padding: 12px 16px;
  border-bottom: 2px solid #2c4368; background: #2c4368; color: #ffffff;
}
#ik-tr-challenge-goal-form-modal .layer-title { flex: 1; font-size: 14px; font-weight: 600; margin: 0; }
#ik-tr-challenge-goal-form-modal .layer-close {
  background: transparent; border: 0; color: #ffffff; font-size: 20px; cursor: pointer; line-height: 1;
}
#ik-tr-challenge-goal-form-modal .layer-content {
  padding: 14px 16px;
}
#ik-tr-challenge-goal-form-modal .form-card {
  background: #f7fafe; border: 1px solid #d8e3f0; border-radius: 4px;
  padding: 10px 12px;
}
#ik-tr-challenge-goal-form-modal .form-grid {
  display: grid;
  grid-template-columns: 80px 1fr 80px 1fr;
  gap: 8px 10px;
  font-size: 12px;
  align-items: center;
}
#ik-tr-challenge-goal-form-modal .form-grid label { color: #344b6e; font-weight: 600; }
#ik-tr-challenge-goal-form-modal .form-grid select,
#ik-tr-challenge-goal-form-modal .form-grid input {
  width: 100%; padding: 4px 6px; font-size: 12px;
  border: 1px solid #c8d3e0; border-radius: 3px;
}
#ik-tr-challenge-goal-form-modal .form-grid .full-row {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 80px 1fr; gap: 8px 10px;
  align-items: center;
}
#ik-tr-challenge-goal-form-modal .layer-footer {
  display: flex; justify-content: flex-end;
  padding: 10px 16px; border-top: 1px solid #e1e5eb; background: #f7f8fa;
  gap: 6px;
}
#ik-tr-challenge-goal-form-modal .btn {
  min-width: 80px; padding: 6px 12px; border-radius: 3px;
  font-size: 12px; cursor: pointer;
  border: 1px solid #c8d3e0; background: #ffffff; color: #344b6e;
}
#ik-tr-challenge-goal-form-modal .btn.primary {
  border-color: #2c4368; background: #2c4368; color: #ffffff;
}
#ik-tr-challenge-goal-form-modal .btn:hover { background: #f0f4f9; }
#ik-tr-challenge-goal-form-modal .btn.primary:hover { background: #1f314c; }
