:root {
  color-scheme: light;
  --ink: #202824;
  --dark: #24302a;
  --green: #305e4e;
  --green-hover: #244a3d;
  --muted: #536059;
  --paper: #fcfdfb;
  --line: #d4ddd6;
  --soft: #eef4ef;
  --red: #a7332f;
  --radius: 7px;
  font-family: Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .68; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #477d67; outline-offset: 4px; }
.layout { display: grid; grid-template-columns: minmax(270px, 35.5%) 1fr; min-height: 100dvh; }
.brand {
  background: var(--dark);
  color: #fff;
  position: sticky;
  inset-block-start: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.brand-top { padding: clamp(30px, 4.3vw, 66px); padding-bottom: 27px; }
.brand img { display: block; }
.brand-top p { color: #d2e0d7; font-size: .94rem; font-weight: 600; margin: 24px 0 0; }
.brand-art { flex: 1; min-height: 0; position: relative; }
.brand-art img { height: 100%; width: 100%; object-fit: cover; object-position: center 54%; }
.brand-art::after { content: ""; position: absolute; inset: 0 0 auto; height: 38%; background: linear-gradient(var(--dark), transparent); }
.workspace {
  min-width: 0;
  width: 100%;
  max-width: 1200px;
  min-height: 100dvh;
  padding: 0 clamp(26px, 5.8vw, 90px);
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.topbar {
  display: flex;
  align-items: center;
  min-height: 78px;
  gap: 13px;
  border-bottom: 1px solid var(--line);
}
.context { color: var(--green); font-weight: 700; font-size: .91rem; }
.preview {
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 7px;
  font-size: .78rem;
  font-weight: 600;
}
.progress { margin-inline-start: auto; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .86rem; font-variant-numeric: tabular-nums; }
progress { appearance: none; border: none; height: 4px; width: clamp(60px, 9vw, 112px); border-radius: 10px; background: #e1e8e2; overflow: hidden; }
progress::-webkit-progress-bar { background: #e1e8e2; }
progress::-webkit-progress-value { background: var(--green); }
progress::-moz-progress-bar { background: var(--green); }
.stage { display: grid; align-items: center; min-width: 0; padding: clamp(38px, 8vh, 104px) 0; }
.screen { max-width: 640px; width: 100%; animation: enter .24s ease-out both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.screen h1, .screen h2 { margin: 0; line-height: 1.18; letter-spacing: -.046em; overflow-wrap: anywhere; word-break: keep-all; text-wrap: balance; }
.screen h1 { font-size: clamp(2.75rem, 5.65vw, 5.35rem); font-weight: 760; }
.screen h2 { font-size: clamp(2rem, 3.28vw, 3.25rem); font-weight: 720; }
.screen :is(h1,h2):focus { outline: none; }
.intro { font-size: clamp(1.04rem, 1.55vw, 1.27rem); line-height: 1.68; max-width: 31rem; margin: 24px 0 0; color: var(--muted); word-break: keep-all; }
.meta { display: flex; align-items: center; gap: 13px; font-weight: 670; color: var(--green); margin-top: 26px; font-size: .94rem; }
.meta span + span { border-left: 1px solid var(--line); padding-left: 13px; }
.eyebrow { color: var(--green); font-weight: 700; font-size: .94rem; margin: 0 0 12px; }
.hint { color: var(--muted); margin: 13px 0 22px; line-height: 1.58; font-size: 1.02rem; word-break: keep-all; }
.notice { color: var(--muted); line-height: 1.6; font-size: .91rem; width: min(100%, 500px); margin: 20px 0 0; word-break: keep-all; }
.notice.review-mode { border-left: 2px solid #b6cebf; padding-left: 11px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 24px; }
.btn {
  border: 1px solid transparent;
  border-radius: var(--radius);
  min-height: 47px;
  padding: 11px 20px;
  background: var(--green);
  color: white;
  font-weight: 700;
}
.btn:hover:not(:disabled) { background: var(--green-hover); }
.btn.secondary { border-color: var(--line); background: transparent; color: var(--ink); }
.btn.secondary:hover { background: var(--soft); }
.btn.text { background: transparent; color: var(--green); padding-inline: 6px; }
.btn.text:hover { text-decoration: underline; background: transparent; }
.key-hint { color: var(--muted); font-size: .8rem; font-weight: 500; }
kbd { font-family: inherit; background: white; border: 1px solid var(--line); border-radius: 4px; padding: 2px 5px; }
.input {
  display: block;
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #aebeb2;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  line-height: 1.5;
}
.input::placeholder { color: #65746b; }
textarea.input { min-height: 126px; resize: vertical; }
.input[aria-invalid="true"] { border-color: var(--red); }
.choices { border: 0; min-inline-size: 0; margin: 0; padding: 0; display: grid; gap: 7px; }
.choice { display: flex; cursor: pointer; align-items: center; gap: 10px; padding: 9px 12px; min-height: 43px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; line-height: 1.35; }
.choice:hover { border-color: #8dab9b; }
.choice:has(input:checked) { background: var(--soft); border-color: var(--green); color: #204e3d; }
.choice input { margin: 0; accent-color: var(--green); height: 16px; width: 16px; flex: none; }
.choice:has(input:focus-visible) { outline: 3px solid #477d67; outline-offset: 3px; }
.choice input:focus-visible { outline: none; }
.err { margin: 12px 0 0; min-height: 1em; color: var(--red); font-weight: 610; font-size: .93rem; line-height: 1.45; }
.err:empty { display: none; }
.answer-review { list-style: none; margin: 19px 0 0; padding: 0; border-top: 1px solid var(--line); }
.answer-review li { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); }
.answer-review p { margin: 4px 0 0; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.answer-review strong { font-size: .91rem; }
.edit { border: 0; color: var(--green); min-height: 44px; padding: 0 9px; background: transparent; text-decoration: underline; font-size: .9rem; flex: none; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: .77rem; border-top: 1px solid var(--line); padding: 19px 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; }
  .brand { position: relative; height: auto; }
  .brand-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 21px clamp(18px, 5vw, 34px); }
  .brand-top img { width: 99px; height: auto; }
  .brand-top p { margin: 0; font-size: .85rem; }
  .brand-art { height: 126px; flex: auto; display: none; }
  body[data-screen="intro"] .brand-art { display: block; }
  .brand-art img { object-position: center 54%; }
  .brand-art::after { height: 24%; }
  .workspace { padding: 0 clamp(18px, 5vw, 34px); min-height: calc(100dvh - 62px); }
  body[data-screen="intro"] .workspace { min-height: calc(100dvh - 188px); }
  .topbar { min-height: 58px; gap: 8px; }
  .stage { align-items: start; padding: 43px 0; }
  .screen h1 { font-size: clamp(2.7rem, 10.3vw, 4.4rem); }
  .screen h2 { font-size: clamp(1.95rem, 7.1vw, 3rem); }
  .choice { min-height: 44px; }
  .key-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) { .screen { animation: none; } }

.other-field { margin-top: 14px; }
.other-field label { display: block; margin-bottom: 7px; color: var(--green); font-weight: 650; }
.other-field textarea { min-height: 90px; }

.topbar {
  display: block;
  min-height: 0;
  position: sticky;
  inset-block-start: 0;
  z-index: 5;
  background: var(--paper);
}
.topbar-line { display: flex; min-height: 72px; gap: 12px; align-items: center; }
.work-context {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 13px;
  padding: 10px 13px;
  border: 1px solid #cddbd2;
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--green);
}
.work-label { font-size: .86rem; font-weight: 620; flex: none; }
.work-name { font-size: .97rem; overflow-wrap: anywhere; }
.screen h1 { white-space: pre-line; }
.question-form, .fields { display: grid; gap: 17px; }
.question-form { margin-top: 22px; }
.question-form .actions { margin-top: 4px; }
.input { scroll-margin-top: 130px; min-width: 0; }
select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23536059' stroke-width='1.5' d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 27px;
}
.field { min-width: 0; }
.field-label { display: block; font-weight: 680; line-height: 1.45; margin: 0 0 6px; font-size: .94rem; color: var(--ink); }
.field-optional { margin-inline-start: 6px; color: var(--muted); font-weight: 480; font-size: .78rem; }
.field-hint { color: var(--muted); margin: 0 0 6px; line-height: 1.55; font-size: .92rem; }
.choices .field-label, .choices .field-hint { margin-bottom: 0; }
.choices .field-label { padding: 0 0 6px; }
.question-form textarea.input { min-height: 106px; }
.question-form .other-field textarea.input { min-height: 84px; }
.question-form .other-field { margin-top: 10px; }
.work-row, .process-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-inline-size: 0;
  margin: 0;
  padding: 9px 12px 13px;
}
.row-title { color: var(--green); font-weight: 700; padding: 0 6px; font-size: .91rem; }
.work-fields { display: grid; grid-template-columns: 1.05fr 1.15fr .92fr 1fr; gap: 9px; align-items: start; }
.work-fields .field-label { min-height: 2.6em; font-size: .86rem; }
.work-fields .input { padding: 9px 10px; min-height: 43px; }
.work-fields select.input { padding-right: 25px; background-position: right 6px center; }
.process-list, .process-fields { display: grid; gap: 12px; }
.process-fields { grid-template-columns: 1fr 1fr; }
.process-row .input { padding: 9px 11px; }
.process-row .btn { min-height: 44px; margin-top: 3px; }
.question-form > .btn { justify-self: start; }
.reuse-answers { padding: 11px 13px; background: var(--soft); border-radius: var(--radius); }
.reuse-answers .btn { margin-inline-end: 7px; margin-top: 4px; font-size: .91rem; }
.review-part h3 { color: var(--green); font-size: 1.03rem; margin: 28px 0 0; }
.review-part .answer-review { margin-top: 8px; }
@media (max-width: 1120px) { .work-fields { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .topbar-line { min-height: 58px; gap: 9px; }
  .work-context { margin-bottom: 9px; padding: 8px 11px; }
  .work-fields .field-label { min-height: 0; }
}
@media (max-width: 420px) {
  .topbar-line { flex-wrap: wrap; padding: 8px 0; gap: 3px 8px; }
  .progress { gap: 5px; font-size: .8rem; }
  progress { width: 38px; }
  .work-fields, .process-fields { grid-template-columns: 1fr; }
}

/* The survey is a full-width workspace. Its cover artwork stays on the opening page. */
.layout { display: block; }
.brand { position: relative; height: auto; overflow: visible; }
.brand-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 19px clamp(20px, 3.6vw, 58px);
}
.brand-top p { margin: 0; }
.brand-art { display: none !important; }
.workspace, body[data-screen="intro"] .workspace {
  width: 100%;
  max-width: none;
  min-height: calc(100dvh - 60px);
  padding-inline: clamp(20px, 3.6vw, 58px);
}
.topbar-line { min-height: 57px; }
.work-context { margin-bottom: 9px; }
.stage { width: 100%; align-items: start; padding-block: clamp(28px, 5.1vh, 64px) 56px; }
.screen { max-width: none; }
.screen h2 { font-size: clamp(1.72rem, 3.1vw, 2.7rem); line-height: 1.22; text-wrap: wrap; letter-spacing: -.038em; }
.hint { margin: 10px 0 20px; line-height: 1.55; max-inline-size: 78ch; overflow-wrap: anywhere; }
.eyebrow { margin-bottom: 10px; }
.field-label { font-size: .94rem; }
.input, .dropdown-trigger { min-height: 48px; }
.fields .choices { max-width: 42rem; }
.fields input.input { max-width: 52rem; }
.work-fields, .process-fields { align-items: start; gap: clamp(10px, 1.4vw, 20px); }
.work-fields { grid-template-columns: 1.15fr 1.9fr 1.05fr 1.5fr; }
.work-fields .field-label { min-height: 0; }
.work-row, .process-row { padding: 10px 16px 15px; }
.process-fields { grid-template-columns: minmax(130px, .8fr) minmax(230px, 1.6fr) minmax(160px, 1.05fr) minmax(180px, 1.25fr); }
.question-form .process-fields textarea.input { min-height: 76px; }
.process-fields input.input { min-height: 48px; }
.dropdown { position: relative; min-width: 0; }
.btn.dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
  width: 100%;
  min-height: 48px;
  background: #fff;
  color: var(--ink);
  border: 1px solid #aebeb2;
  border-radius: var(--radius);
  font-weight: 550;
  line-height: 1.38;
  text-align: start;
  padding: 10px 13px;
}
.btn.dropdown-trigger:hover:not(:disabled), .btn.dropdown-trigger[aria-expanded="true"] { background: #fff; border-color: var(--green); }
.btn.dropdown-trigger[aria-invalid="true"] { border-color: var(--red); }
.dropdown-trigger[data-empty="true"] { color: #65746b; }
.dropdown-caption { min-width: 0; overflow-wrap: anywhere; }
.dropdown-chevron {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin: -4px 3px 0 0;
  transform: rotate(45deg);
  border-right: 1.5px solid var(--green);
  border-bottom: 1.5px solid var(--green);
}
.dropdown-trigger[aria-expanded="true"] .dropdown-chevron { transform: rotate(225deg); margin-top: 3px; }
.dropdown-list {
  position: absolute;
  inset: calc(100% + 5px) 0 auto;
  z-index: 4;
  max-height: min(280px, 50vh);
  overflow: auto;
  background: #fff;
  border: 1px solid #adbdaf;
  border-radius: var(--radius);
  box-shadow: 0 12px 28px #27372d20;
  padding: 4px;
}
.dropdown[data-placement="above"] .dropdown-list { inset: auto 0 calc(100% + 5px); }
.dropdown-option {
  cursor: pointer;
  padding: 10px 12px;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-radius: 4px;
  line-height: 1.4;
}
.dropdown-option:is(.active, :hover) { background: var(--soft); color: var(--green); }
.dropdown-option[aria-selected="true"] { color: var(--green); font-weight: 690; }
body[data-screen="intro"] .stage {
  min-height: min(610px, 78dvh);
  align-items: center;
}
body[data-screen="intro"] .screen h1 { font-size: clamp(3rem, 6vw, 5.35rem); }
@media (min-width: 761px) {
  body[data-screen="intro"] .stage { padding-inline-end: 36%; position: relative; }
  body[data-screen="intro"] .brand-art {
    display: block !important;
    position: absolute;
    top: calc(60px + 57px + 26px);
    right: clamp(20px, 3.6vw, 58px);
    width: min(32%, 475px);
    height: min(61dvh, 560px);
    border-radius: 9px;
    overflow: hidden;
    z-index: 1;
  }
  body[data-screen="intro"] .brand-art img { object-position: 50% 62%; }
  body[data-screen="intro"] .brand-art::after { display: none; }
}
@media (max-width: 940px) {
  .work-fields, .process-fields { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 580px) {
  .work-fields, .process-fields { grid-template-columns: 1fr; }
  .brand-top { padding: 14px 20px; }
  .topbar-line { min-height: 47px; }
  .stage { padding-block: 28px 42px; }
  .work-row, .process-row { padding: 9px 12px 14px; }
  body[data-screen="intro"] .stage { min-height: 0; align-items: start; }
}
