.survey {
  color: #222;
  font-family: "Noto Sans KR", sans-serif;
}
.survey__content {
  width: calc(100% - 48px);
  max-width: 1440px;
  margin: 0 auto;
  padding: 64px 0;
}
body:has(> .board.admin-view > .survey) {
  padding-top: 0;
}
.survey__intro {
  margin-bottom: 48px;
}
.survey__title,
.survey__description,
.survey__card-title,
.survey__card-count,
.survey__question-title,
.survey__add-guide {
  margin: 0;
}
.survey__title {
  font-size: 28px;
  font-weight: 700;
  line-height: 41px;
}
.survey__description {
  margin-top: 12px;
  color: #696969;
  font-size: 16px;
  line-height: 23px;
}
.survey__form {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.survey__question-lock {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.admin-result--notice {
  color: #174f3c;
  background: #eef8f3;
  border-color: #b9ddcd;
}
.survey__question.is-changed {
  box-shadow: inset 0 0 0 2px #b7781e;
  background: #fffdf8;
}
.survey__question { scroll-margin-top: 24px; }
.survey__change-feedback {
  margin: 10px 0 0;
  color: #865510;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}
.survey__input.is-changed, .survey__option-input.is-changed {
  border-color: #b7781e;
  background-color: #fff8e9;
  box-shadow: 0 0 0 1px #b7781e;
}
.survey__required.is-changed {
  border-radius: 4px;
  background: #fff0cf;
  box-shadow: 0 0 0 4px #fff0cf;
}
.survey__save-area { display: flex; flex-direction: column; gap: 16px; }
.survey__version-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid #cdded5;
  border-radius: 5px;
  background: #f1f7f3;
  color: #315a46;
  font-size: 14px;
  line-height: 1.65;
}
.survey__version-notice[hidden], .survey__change-feedback[hidden] { display: none; }
.survey__version-notice svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; }
.survey__version-notice > div { min-width: 0; }
.survey__version-notice p { margin: 0; }
.survey__change-summary { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 13px; }
.survey__change-summary li { overflow-wrap: anywhere; }
.survey__change-summary a { color: #865510; text-decoration: underline; text-underline-offset: 3px; }
.survey__card {
  border: 1px solid #e0e0e0;
  background: #fff;
}
.survey__card-header {
  display: flex;
  align-items: center;
  min-height: 80px;
  padding: 0 32px;
  border-bottom: 1px solid #e0e0e0;
  background: #f9fdfb;
}
.survey__card-header--count {
  gap: 16px;
}
.survey__card-title {
  color: #0d3123;
  font-size: 20px;
  font-weight: 700;
  line-height: 20px;
}
.survey__card-count {
  color: #696969;
  font-size: 16px;
  line-height: 16px;
}
.survey__info {
  padding: 27px 31px 28px;
}
.survey__info-row {
  display: grid;
  grid-template-columns: 192px minmax(0, 1fr);
  min-height: 72px;
}
.survey__info-label,
.survey__info-field {
  display: flex;
  align-items: center;
  border: 1px solid #e0e0e0;
}
.survey__info-label {
  justify-content: center;
  margin-bottom: -1px;
  background: #f5f5f5;
  color: #404040;
  font-size: 18px;
  font-weight: 500;
  line-height: 18px;
}
.survey__info-field {
  gap: 8px;
  margin: 0 0 -1px -1px;
  padding: 13px 31px;
}
.survey__input {
  box-sizing: border-box;
  height: 44px;
  padding: 0 16px;
  border: 1px solid #c0c0c0;
  border-radius: 4px;
  background: #fff;
  color: #696969;
  font: inherit;
  font-size: 18px;
  line-height: 18px;
}
.survey__input::placeholder {
  color: #c0c0c0;
  opacity: 1;
}
.survey__input--title {
  width: 640px;
  max-width: 100%;
}
.survey__period {
  flex-wrap: wrap;
}
.survey__date {
  position: relative;
  display: inline-flex;
  width: 167px;
}
.survey__date-input {
  width: 100%;
  padding-right: 48px;
}
.survey__date-input::-webkit-calendar-picker-indicator {
  position: absolute;
  top: 10px;
  right: 16px;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  cursor: pointer;
  opacity: 0;
}
.survey__date-icon {
  position: absolute;
  top: 10px;
  right: 16px;
  width: 24px;
  height: 24px;
  object-fit: contain;
  pointer-events: none;
}
.survey__period-separator {
  color: #696969;
  font-size: 18px;
  line-height: 18px;
}
.survey__question {
  padding: 27px 31px 28px;
  border-bottom: 1px solid #e0e0e0;
}
.survey__question-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
}
.survey__question-title {
  flex: 0 0 40px;
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
}
.survey__required,
.survey__option {
  display: inline-flex;
  align-items: center;
}
.survey__required {
  gap: 4px;
  font-size: 16px;
  font-weight: 500;
  line-height: 23px;
}
.survey__required input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #124531;
}
.survey__question-row .survey__type {
  flex: 0 0 112px;
  width: 112px;
  color: #404040;
}
.survey__input--question {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 760px;
}
.survey__question-row .survey__required { flex: 0 0 auto; white-space: nowrap; }
.survey__question-row .survey__option-remove { flex: 0 0 24px; }
.survey__question-body {
  margin: 18px 0 0 48px;
  padding: 18px 20px;
  border: 1px solid #d8dfdb;
  border-radius: 6px;
  background: #fbfcfb;
}
.survey__options {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding-left: 0;
}
.survey__option {
  gap: 8px;
  min-height: 28px;
  color: #404040;
  font-size: 16px;
  line-height: 23px;
}
.survey__option-marker {
  box-sizing: border-box;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border: 2px solid #477564;
  border-radius: 50%;
}
.survey__question--checkbox .survey__option-marker {
  border-radius: 3px;
}
.survey__option-input {
  width: 360px;
  max-width: calc(100vw - 180px);
  height: 28px;
  padding: 0 4px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: #404040;
  font: inherit;
  line-height: 28px;
}
.survey__option-input:hover,
.survey__option-input:focus {
  border-bottom-color: #9caea7;
  outline: 0;
}
.survey__option-delete {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #929292;
  font: inherit;
  font-size: 20px;
  line-height: 22px;
  cursor: pointer;
}
.survey__option-remove {
  min-width: 24px;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #696969;
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
}
.survey__question-add {
  min-height: 24px;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #124531;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 23px;
  cursor: pointer;
}
.survey__question-badge {
  padding: 2px 8px;
  border-radius: 4px;
  background: #124531;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}
.survey__add {
  padding: 27px 31px 29px;
}
.survey__empty {
  margin: 0;
  padding: 32px 20px 8px;
  color: #666;
  text-align: center;
}
.survey__add-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 61px;
  padding: 12px 24px;
  border: 1px solid #124531;
  background: #fff;
  color: #124531;
  font-family: "Pretendard GOV", sans-serif;
  font-size: 18px;
  line-height: 25px;
  cursor: pointer;
}
.survey__add-guide {
  display: flex;
  justify-content: center;
  gap: 10px;
  min-height: 59px;
  margin-top: 24px;
  padding: 19px 24px;
  background: #f5f5f5;
  color: #404040;
  font-size: 15px;
  line-height: 21px;
}
.survey__add-guide strong {
  font-weight: 700;
}
.survey__answer-preview {
  width: 100%;
}
.survey__preview-input,
.survey__preview-textarea {
  box-sizing: border-box;
  width: min(640px, 100%);
  border: 1px solid #bac5bf;
  border-radius: 5px;
  background: #fff;
  color: #404040;
  font: inherit;
  font-size: 15px;
}
.survey__preview-input {
  height: 42px;
  padding: 0 13px;
}
.survey__preview-textarea {
  display: block;
  min-height: 94px;
  padding: 12px 13px;
  line-height: 1.55;
  resize: none;
}
.survey__preview-input:disabled,
.survey__preview-textarea:disabled {
  opacity: 1;
  -webkit-text-fill-color: #696969;
}
.survey__preview-input--holiday {
  cursor: pointer;
  color: #174f3c;
  font-weight: 600;
}
.survey__preview-input::placeholder,
.survey__preview-textarea::placeholder {
  color: #9aa19d;
  opacity: 1;
}
.survey__preview-counter {
  margin: 6px 0 0;
  color: #696969;
  font-size: 12px;
  text-align: right;
}
.survey__preview-date {
  position: relative;
  display: inline-flex;
  width: min(220px, 100%);
}
.survey__preview-date .survey__preview-input {
  width: 100%;
  padding-right: 44px;
}
.survey__preview-calendar {
  position: absolute;
  top: 50%;
  right: 13px;
  width: 19px;
  height: 19px;
  transform: translateY(-50%);
  pointer-events: none;
}
.survey__preview-calendar::before {
  position: absolute;
  inset: 2px 1px 1px;
  border: 2px solid #315c4b;
  border-radius: 2px;
  content: "";
}
.survey__preview-calendar::after {
  position: absolute;
  top: 6px;
  left: 3px;
  width: 13px;
  border-top: 2px solid #315c4b;
  content: "";
}
.survey__preview-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(54px, 84px));
  gap: 8px;
}
.survey__preview-scale label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  border: 1px solid #cad3ce;
  border-radius: 5px;
  background: #fff;
}
.survey__preview-scale input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #124531;
}
.survey__parking-fields {
  display: grid;
  border-top: 2px solid #124531;
  background: #fff;
}
.survey__parking-row {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  min-height: 62px;
  border-bottom: 1px solid #e0e0e0;
}
.survey__parking-label,
.survey__parking-field {
  display: flex;
  align-items: center;
}
.survey__parking-label {
  justify-content: center;
  background: #f5f5f5;
  color: #404040;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}
.survey__parking-field {
  flex-wrap: wrap;
  gap: 12px 24px;
  min-width: 0;
  padding: 10px 16px;
}
.survey__parking-field label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #404040;
  font-size: 15px;
  white-space: nowrap;
}
.survey__parking-field input[type="radio"] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #124531;
}
.survey__parking-note {
  margin: 11px 0 0;
  color: #696969;
  font-size: 13px;
  line-height: 20px;
}
.survey__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.survey__actions-button {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  height: 44px;
  padding: 0 18px;
  border-radius: 4px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.survey__actions-button--primary {
  border: 1px solid #124531;
  background: #124531;
  color: #fff;
}
.survey__actions-button--cancel {
  border: 1px solid #e4e7ec;
  background: #f5f5f5;
  color: #222;
}
.holiday-admin {
  border-top: 1px solid #e0e0e0;
  background: #fff;
}
.survey__question-body > .holiday-admin {
  margin-top: 16px;
  border: 1px solid #dfe6e2;
  border-radius: 6px;
  overflow: hidden;
}
.holiday-admin[hidden] { display: none; }
.holiday-admin__message {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 45px;
  margin: 0;
  padding: 12px 24px;
  border-bottom: 1px solid #d8e7df;
  background: #eef8f3;
  color: #174f3c;
  font-size: 13px;
  line-height: 20px;
}
.holiday-admin__message[hidden] { display: flex; visibility: hidden; }
.holiday-admin__message.is-error { background: #fff3f2; color: #a32d26; }
.holiday-admin__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(460px, calc(100% - 48px));
  margin: 20px auto -10px;
}
.holiday-admin__header > strong { color: #173d2f; font-size: 15px; }
.holiday-admin__view-toggle {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid #cfd9d4;
  border-radius: 6px;
  background: #fff;
}
.holiday-admin__view-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-left: 1px solid #cfd9d4;
  background: #fff;
  color: #59635e;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.holiday-admin__view-toggle button:first-child { border-left: 0; }
.holiday-admin__view-toggle button.is-active { background: #124531; color: #fff; font-weight: 700; }
.holiday-calendar {
  width: min(460px, calc(100% - 48px));
  margin: 24px auto 14px;
  padding: 18px;
  border: 1px solid #d9e2dd;
  border-radius: 8px;
  background: #fff;
}
.holiday-calendar__head,
.holiday-calendar__week,
.holiday-calendar__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: center;
}
.holiday-calendar__head {
  grid-template-columns: 38px 1fr 38px;
  margin-bottom: 14px;
}
.holiday-calendar__head strong {
  color: #173d2f;
  font-size: 16px;
  text-align: center;
}
.holiday-calendar__head button,
.holiday-calendar__days button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  color: #404040;
  font: inherit;
  cursor: pointer;
}
.holiday-calendar__head button { width: 38px; height: 38px; border-radius: 50%; }
.holiday-calendar__head button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.holiday-calendar__head button:hover:not(:disabled) { background: #edf5f1; }
.holiday-calendar__head button:disabled { opacity: .25; cursor: default; }
.holiday-calendar__week { margin-bottom: 6px; }
.holiday-calendar__week span {
  color: #757b78;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.holiday-calendar__days { gap: 4px 2px; }
.holiday-calendar__days button {
  width: 36px;
  height: 36px;
  margin: 0 auto;
  border: 1px solid transparent;
  border-radius: 50%;
  font-size: 13px;
}
.holiday-calendar__days button:hover { border-color: #477564; background: #f2f8f5; }
.holiday-calendar__days button.is-auto { background: #124531; color: #fff; font-weight: 700; }
.holiday-calendar__days button.is-manual { border-color: #d69b33; background: #fff1d6; color: #714900; font-weight: 700; }
.holiday-calendar__days button.is-blocked { border-color: #d7d7d7; background: #f1f1f1; color: #8a8a8a; text-decoration: line-through; }
.holiday-calendar__legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 20px 22px;
  color: #696969;
  font-size: 12px;
}
.holiday-calendar__legend span { display: inline-flex; align-items: center; gap: 6px; }
.holiday-calendar__legend i {
  width: 12px;
  height: 12px;
  border: 1px solid #cbd5d0;
  border-radius: 50%;
  background: #fff;
}
.holiday-calendar__legend i.is-auto { border-color: #124531; background: #124531; }
.holiday-calendar__legend i.is-manual { border-color: #d69b33; background: #fff1d6; }
.holiday-calendar__legend i.is-blocked { border-color: #d7d7d7; background: #f1f1f1; }
.holiday-calendar--list { max-height: 370px; overflow-y: auto; }
.holiday-calendar--list[hidden] { display: none; }
.holiday-calendar__list { display: grid; gap: 6px; }
.holiday-calendar__list button {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 42px;
  padding: 7px 12px;
  border: 1px solid #e0e5e2;
  border-radius: 6px;
  background: #fff;
  color: #333;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.holiday-calendar__list button:hover { border-color: #477564; background: #f6faf8; }
.holiday-calendar__list-date { font-weight: 700; font-variant-numeric: tabular-nums; }
.holiday-calendar__list-name { overflow: hidden; padding: 0 12px; color: #6c746f; text-overflow: ellipsis; white-space: nowrap; }
.holiday-calendar__list-status { min-width: 92px; text-align: right; font-weight: 700; }
.holiday-calendar__list button.is-auto .holiday-calendar__list-status { color: #124531; }
.holiday-calendar__list button.is-manual .holiday-calendar__list-status { color: #8a5b00; }
.holiday-calendar__list button.is-blocked .holiday-calendar__list-status { color: #858b87; }
.holiday-import {
  width: min(640px, calc(100% - 48px));
  margin: 0 auto 22px;
  padding: 12px 14px;
  border: 1px solid #dfe6e2;
  border-radius: 6px;
  background: #fafcfb;
}
.holiday-import > strong { display: block; margin-bottom: 8px; color: #242a27; font-size: 13px; }
.holiday-import__controls {
  display: grid;
  grid-template-columns: 96px minmax(160px, 1fr) auto;
  align-items: center;
  gap: 8px;
}
.holiday-import__controls .survey__input { height: 36px; padding-right: 28px; font-size: 13px; }
.holiday-import__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  height: 36px;
  padding: 0 13px;
  border: 1px solid #124531;
  border-radius: 4px;
  background: #fff;
  color: #124531;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}
.holiday-import__button:hover { background: #edf6f1; }
.holiday-import__button:disabled { opacity: .55; cursor: wait; }
.holiday-import__feedback {
  margin: 8px 0 0;
  color: #59635e;
  font-size: 12px;
  line-height: 18px;
}
.holiday-import__feedback[hidden] { display: none; }
.survey button:focus-visible,
.survey input:focus-visible {
  outline: 2px solid #124531;
  outline-offset: 2px;
}
@media (max-width: 1024px) {
  .survey__content {
    padding: 48px 0;
  }
  .survey__info-field {
    padding-right: 24px;
    padding-left: 24px;
  }
}
@media (max-width: 768px) {
  .survey__content {
    padding: 40px 0;
  }
  .survey__intro {
    margin-bottom: 32px;
  }
  .survey__title {
    font-size: 24px;
    line-height: 35px;
  }
  .survey__form {
    gap: 32px;
  }
  .survey__card-header {
    min-height: 64px;
    padding: 0 20px;
  }
  .survey__card-header--count {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }
  .survey__info {
    padding: 20px;
  }
  .survey__info-row {
    display: flex;
    flex-direction: column;
  }
  .survey__info-label {
    justify-content: flex-start;
    min-height: 48px;
    padding: 0 16px;
  }
  .survey__info-field {
    margin-left: 0;
    padding: 16px;
  }
  .survey__period {
    align-items: stretch;
    flex-direction: column;
  }
  .survey__date {
    width: 100%;
  }
  .survey__period-separator {
    align-self: center;
  }
  .survey__question,
  .survey__add {
    padding: 24px 20px;
  }
  .survey__question-body {
    margin-left: 32px;
    padding: 15px;
  }
  .survey__question-row {
    gap: 4px;
  }
  .survey__question-row .survey__question-title {
    flex-basis: 28px;
    font-size: 15px;
  }
  .survey__question-row .survey__type {
    flex: 0 0 90px;
    width: 90px;
    padding: 0 6px;
    font-size: 14px;
  }
  .survey__input--question {
    flex: 1 1 auto;
    width: auto;
    padding: 0 8px;
    font-size: 14px;
  }
  .survey__question-row .survey__required {
    gap: 2px;
    font-size: 14px;
  }
  .survey__option-input {
    width: calc(100vw - 150px);
    max-width: none;
  }
  .survey__add-button {
    text-align: left;
  }
  .survey__add-guide {
    align-items: center;
    flex-direction: column;
  }
  .survey__parking-row { grid-template-columns: 1fr; }
  .survey__parking-label { justify-content: flex-start; min-height: 42px; padding: 0 14px; }
  .survey__parking-field { align-items: flex-start; flex-direction: column; padding: 14px; }
  .survey__preview-input,
  .survey__preview-date { width: 100%; }
  .survey__actions-button {
    width: calc(50% - 6px);
  }
  .holiday-admin__header { width: calc(100% - 40px); margin-top: 18px; }
  .holiday-calendar { width: calc(100% - 40px); margin-top: 20px; padding: 14px 10px; }
  .holiday-calendar__days button { width: 34px; height: 34px; }
  .holiday-calendar__list button { grid-template-columns: 92px minmax(0, 1fr) auto; padding: 7px 8px; }
  .holiday-calendar__list-name { padding: 0 8px; }
  .holiday-calendar__list-status { min-width: 78px; }
  .holiday-import { width: calc(100% - 40px); }
  .holiday-import__controls { grid-template-columns: 88px minmax(0, 1fr) auto; }
}
@media (max-width: 520px) {
  .survey__question-body {
    margin-left: 0;
  }
  .survey__preview-scale {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .holiday-import__controls { grid-template-columns: 84px minmax(0, 1fr); }
  .holiday-import__button { grid-column: 2; justify-self: end; }
}
@media (prefers-reduced-motion: reduce) {
  .survey *,
  .survey *::before,
  .survey *::after {
    scroll-behavior: auto;
  }
}
