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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
  background: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

/* 헤더 */
.header {
  background: #2D4486;
  color: #fff;
  text-align: center;
  padding: 2.5rem 1rem;
}
.header__org {
  font-size: 0.85rem;
  opacity: 0.65;
  margin-bottom: 0.4rem;
  letter-spacing: 0.1em;
}
.header__title {
  font-size: 1.5rem;
  font-weight: 700;
}
.header__sub {
  font-size: 0.85rem;
  opacity: 0.5;
  margin-top: 0.4rem;
}
.header__pdf-link {
  display: inline-block;
  margin-top: 0.8rem;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.45rem 1.2rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: background 0.2s;
  opacity: 1;
}
.header__pdf-link:hover {
  background: rgba(255, 255, 255, 0.25);
}
.tabs__label {
  text-align: center;
  padding: 1.2rem 1rem 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #999;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #fff;
}

/* 안 탭 */
.tabs {
  display: flex;
  justify-content: center;
  background: #fff;
  overflow-x: auto;
  gap: 0.75rem;
  padding: 1.2rem 1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 10;
}
.tabs__item {
  padding: 0.75rem 2rem;
  cursor: pointer;
  font-size: 1.05rem;
  color: #666;
  white-space: nowrap;
  transition: all 0.2s;
  font-weight: 600;
  border: 2px solid #d0d5dd;
  border-radius: 100px;
  background: #fff;
}
.tabs__item:hover {
  color: #2D4486;
  border-color: #2D4486;
  background: #eff6ff;
}
.tabs__item--active {
  color: #fff;
  font-weight: 700;
  background: #2D4486;
  border-color: #2D4486;
}

/* 버전 셀렉터 */
.versions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: #eef1f6;
  justify-content: center;
}
.versions__label {
  font-size: 0.8rem;
  color: #666;
}
.versions__pill {
  font-size: 0.8rem;
  padding: 0.2rem 0.9rem;
  border-radius: 12px;
  cursor: pointer;
  background: #ddd;
  color: #666;
  border: none;
  transition: background 0.2s, color 0.2s;
}
.versions__pill--active {
  background: #2D4486;
  color: #fff;
  font-weight: 700;
}

/* 컨셉 설명 */
.concept {
  max-width: 800px;
  margin: 1.5rem auto;
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  border-left: 4px solid #2D4486;
}
.concept__subtitle {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}
.concept__keywords {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}
.concept__keyword {
  font-size: 0.75rem;
  padding: 0.2rem 0.7rem;
  background: #eef1f6;
  border-radius: 12px;
  color: #2D4486;
}
.concept__desc {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.8rem;
}
.concept__details {
  list-style: disc;
  padding-left: 1.2rem;
  font-size: 0.85rem;
  color: #666;
}
.concept__details li {
  margin-bottom: 0.3rem;
}

/* 시안 미리보기 */
.preview {
  max-width: 800px;
  margin: 0 auto 1.5rem;
  padding: 0 1rem;
}
.preview__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}
.preview__label {
  font-weight: 700;
  font-size: 0.95rem;
}
.preview__buttons {
  display: flex;
  gap: 0.5rem;
}
.preview__viewer-btn,
.preview__publish-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s;
}
.preview__viewer-btn {
  background: #2D4486;
  color: #fff;
}
.preview__viewer-btn:hover {
  background: #2a3a5a;
}
.preview__publish-btn {
  background: #fff;
  color: #2D4486;
  border: 2px solid #2D4486;
}
.preview__publish-btn:hover {
  background: #eef1f6;
}
.preview__images {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
}
.preview__image-wrap {
  flex: 1;
  min-width: 0;
}
.preview__image-label {
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 0.3rem;
  font-weight: 600;
}
.preview__image {
  width: 98%;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  transition: transform 0.2s;
}
.preview__image:hover {
  transform: scale(1.02);
}

/* 투표 + 코멘트 */
.feedback {
  max-width: 800px;
  margin: 0 auto 2rem;
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
}
.feedback__title {
  text-align: center;
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
}
.feedback__plans {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}
.feedback__plan-btn {
  padding: 0.8rem 1.8rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}
.feedback__plan-btn:hover {
  border-color: #2D4486;
}
.feedback__plan-btn--selected {
  border-color: #2D4486;
  background: #eef1f6;
  color: #2D4486;
}
.feedback__comment {
  width: 100%;
  min-height: 80px;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 0.8rem;
}
.feedback__comment:focus {
  outline: none;
  border-color: #2D4486;
}
.feedback__row {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}
.feedback__name {
  flex: 1;
  padding: 0.7rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
}
.feedback__name:focus {
  outline: none;
  border-color: #2D4486;
}
.feedback__submit {
  padding: 0.7rem 2rem;
  background: #2D4486;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.feedback__submit:hover {
  background: #2a3a5a;
}
.feedback__submit:disabled {
  background: #aaa;
  cursor: not-allowed;
}
.feedback__message {
  text-align: center;
  margin-top: 0.8rem;
  font-size: 0.9rem;
}
.feedback__message--success {
  color: #2e7d32;
}
.feedback__message--error {
  color: #c62828;
}

/* 피드백 결과 */
.results {
  max-width: 800px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}
.results__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}
.results__summary {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.results__bar {
  flex: 1;
  min-width: 120px;
  max-width: 200px;
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  border: 2px solid #e0e0e0;
}
.results__bar-name {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}
.results__bar-count {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2D4486;
}
.results__bar-label {
  font-size: 0.75rem;
  color: #999;
}
.results__list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.results__item {
  background: #fff;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.results__item-plan {
  background: #2D4486;
  color: #fff;
  padding: 0.2rem 0.7rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
.results__item-body {
  flex: 1;
  min-width: 0;
}
.results__item-comment {
  font-size: 0.9rem;
  color: #333;
  word-break: break-word;
}
.results__item-meta {
  font-size: 0.75rem;
  color: #999;
  margin-top: 0.3rem;
}
.results__item-delete {
  background: none;
  border: none;
  color: #ccc;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  align-self: center;
}
.results__item-delete:hover {
  color: #c62828;
  background: #ffeaea;
}
.results__empty {
  text-align: center;
  color: #999;
  font-size: 0.9rem;
  padding: 2rem;
}

/* 푸터 */
.footer {
  background: #2D4486;
  color: #fff;
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* 반응형 */
@media (max-width: 600px) {
  .header__title {
    font-size: 1.2rem;
  }
  .tabs__item {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
  }
  .preview__images {
    flex-direction: column;
  }
  .feedback__row {
    flex-direction: column;
  }
  .feedback__name {
    width: 100%;
  }
}
