:root {
  font-family: Pretendard, "Noto Sans KR", system-ui, sans-serif;
  color: #3d2c3a;
  background: #fff7fa;
  font-synthesis: none;
  --ink: #3d2c3a;
  --muted: #806d7e;
  --paper: #fffafb;
  --line: #eadde5;
  --teal: #b45e82;
  --teal-dark: #873f61;
  --teal-soft: #f9e7ef;
  --sand: #f2eaf5;
  --shadow: 0 18px 48px rgba(130, 72, 103, .11);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 8% 4%, #ffe9f0 0, transparent 28%), radial-gradient(circle at 92% 10%, #eee3f8 0, transparent 30%), #fff8fa; }
button, input, textarea { font: inherit; }
.hero { position: relative; display: flex; overflow: hidden; align-items: center; justify-content: space-between; gap: 2rem; padding: 2.5rem max(1rem, calc((100vw - 1180px) / 2)); background: linear-gradient(135deg, #4b3146 0%, #7c4967 58%, #a7607f 100%); color: white; }
.hero::after { position: absolute; right: 8%; top: -70px; width: 210px; height: 210px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; box-shadow: 0 0 0 32px rgba(255,255,255,.035), 0 0 0 68px rgba(255,255,255,.025); content: ""; }
.hero-copy { max-width: 720px; }
.hero h1 { margin: .25rem 0 .7rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.15rem, 5vw, 3.7rem); font-weight: 600; line-height: 1.08; letter-spacing: -.055em; }
.hero p { margin: 0; line-height: 1.65; color: #f6eaf0; }
.eyebrow { margin: 0 0 .45rem; color: #f7cadb !important; font-size: .72rem; font-weight: 900; letter-spacing: .19em; }
.progress-card { position: relative; z-index: 1; flex: 0 0 190px; padding: 1.05rem 1.15rem; border: 1px solid rgba(255,255,255,.22); border-radius: 18px; background: rgba(255,250,252,.1); color: white; text-align: left; font: inherit; cursor: pointer; backdrop-filter: blur(10px); box-shadow: none; }
.progress-card strong { display: block; font-size: 1.9rem; }
.progress-card span { color: #f2dce6; font-size: .83rem; }
.progress-card small { display: block; margin-top: .55rem; color: #f8eaf0; font-size: .68rem; }
.progress-card:hover, .progress-card:focus-visible { border-color: rgba(255,255,255,.65); background: rgba(255,250,252,.18); }
.progress-track { height: 7px; margin-top: .8rem; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.15); }
.progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f8bfd2, #e9d5f6); transition: width .2s ease; }
.step-nav { position: sticky; top: 0; z-index: 5; overflow-x: auto; border-bottom: 1px solid var(--line); background: rgba(255,253,248,.96); backdrop-filter: blur(12px); }
.step-nav ol { display: grid; grid-template-columns: repeat(4, minmax(110px, 1fr)); gap: .5rem; width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: .65rem 0; list-style: none; }
.step-nav li { border-radius: 9px; color: var(--muted); font-size: .8rem; font-weight: 800; white-space: nowrap; }
.step-nav button { display: flex; width: 100%; align-items: center; justify-content: center; gap: .4rem; padding: .5rem .65rem; border: 0; border-radius: inherit; background: transparent; color: inherit; font: inherit; cursor: pointer; box-shadow: none; }
.step-nav button:hover, .step-nav button:focus-visible { background: var(--teal-soft); color: var(--teal-dark); filter: none; }
.step-nav li b { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--sand); font-size: .7rem; }
.step-nav li.active { background: var(--teal-soft); color: var(--teal-dark); }
.step-nav li.active b, .step-nav li.complete b { background: var(--teal); color: white; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.2rem; width: min(1180px, calc(100% - 2rem)); margin: 1.4rem auto 4rem; }
.interview { min-width: 0; }
.interview > .card[hidden] { display: none; }
.card, .summary-card, .saved-card { margin-bottom: 1rem; padding: clamp(1.1rem, 2.4vw, 1.65rem); border: 1px solid var(--line); border-radius: 22px; background: rgba(255,250,251,.96); box-shadow: var(--shadow); }
.section-title { display: flex; gap: .85rem; align-items: flex-start; margin-bottom: 1.2rem; }
.section-title > span { display: grid; flex: 0 0 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--teal); color: white; font-weight: 900; }
h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 650; letter-spacing: -.04em; }
.section-title p { margin: .25rem 0 0; color: var(--muted); font-size: .9rem; }
fieldset { min-width: 0; margin: 1.1rem 0 0; padding: 0; border: 0; }
legend { width: 100%; margin-bottom: .65rem; font-weight: 900; }
legend small { margin-left: .35rem; color: var(--muted); font-size: .73rem; font-weight: 600; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: .55rem; }
.choices.compact { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); }
.choices label { position: relative; display: block; cursor: pointer; }
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices span { display: flex; min-height: 46px; align-items: center; justify-content: center; padding: .7rem .75rem; border: 1px solid #e4d5df; border-radius: 14px; background: #fff9fb; color: #574350; font-weight: 750; text-align: center; transition: .15s ease; }
.choices input:checked + span { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-dark); box-shadow: inset 0 0 0 1px var(--teal); }
.choices input:focus-visible + span { outline: 3px solid rgba(23,107,104,.2); outline-offset: 2px; }
.choices input:checked + span::before { content: "✓"; margin-right: .35rem; font-weight: 1000; }
.choices.rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choices.rules span { justify-content: flex-start; }
.split-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.text-field { display: grid; gap: .45rem; margin-top: 1rem; font-weight: 850; }
.text-field input, .text-field textarea { width: 100%; border: 1px solid #dfcfda; border-radius: 14px; padding: .82rem .9rem; background: #fffdfd; color: var(--ink); line-height: 1.5; }
.text-field textarea { resize: vertical; }
.text-field input:focus, .text-field textarea:focus { border-color: var(--teal); outline: 3px solid rgba(23,107,104,.13); }
.hint { margin: .65rem 0 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.wizard-actions { display: grid; grid-template-columns: 150px 1fr 150px; gap: .7rem; align-items: center; margin-top: 1rem; }
.wizard-actions span { color: var(--teal-dark); font-size: .82rem; text-align: center; }
.wizard-actions button[hidden] { visibility: hidden; }
.completion-card { display: grid; grid-template-columns: 44px 1fr; gap: .8rem 1rem; padding: 1rem; border: 1px solid #ead7e3; border-radius: 18px; background: linear-gradient(145deg, #fff6f9, #f8f1fb); }
.completion-card > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: #f0d8e3; color: var(--teal-dark); font-family: Georgia, serif; font-weight: 700; }
.completion-card strong { color: var(--teal-dark); }
.completion-card p { margin: .2rem 0 .65rem; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.image-generator { margin-top: 1rem; padding: clamp(1rem, 3vw, 1.5rem); border: 1px solid #e6cedc; border-radius: 20px; background: linear-gradient(145deg, #4b3146, #7d4a69); color: white; }
.generator-copy h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 3vw, 1.85rem); font-weight: 650; }
.generator-copy > p:last-child { margin: .55rem 0 1rem; color: #f4e4eb; font-size: .86rem; line-height: 1.6; }
.image-generator > button { background: linear-gradient(135deg, #f4bad0, #dfbce9); color: #4e2940; box-shadow: 0 10px 24px rgba(36,18,30,.22); }
.image-generator > button:disabled { cursor: wait; filter: grayscale(.35); opacity: .72; }
.generation-limit { margin: .65rem 0 0; color: #eedbe5; font-size: .74rem; text-align: center; }
.missing-summary { margin: .7rem 0 0; color: #ffe2eb; font-weight: 800; text-align: center; }
.image-result { display: grid; gap: .75rem; margin-top: 1rem; }
.image-result[hidden] { display: none; }
.image-result img { display: block; width: 100%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.25); border-radius: 16px; background: #f7edf2; object-fit: cover; }
.download-image { display: block; border: 1px solid rgba(255,255,255,.32); border-radius: 12px; padding: .72rem 1rem; color: white; font-weight: 800; text-align: center; text-decoration: none; }
.image-generator .message { color: #ffe4ee; }
.summary-panel { position: relative; min-width: 0; }
.summary-card { position: sticky; top: 1rem; }
.summary-card h2 { margin-bottom: 1rem; }
.summary-card dl { display: grid; gap: .7rem; margin: 0; }
.summary-card dl div { padding-bottom: .65rem; border-bottom: 1px solid #eee9df; }
.summary-card dt { color: var(--muted); font-size: .75rem; font-weight: 800; }
.summary-card dd { margin: .18rem 0 0; line-height: 1.45; font-weight: 750; }
.empty { padding: .9rem; border-radius: 10px; background: #f3f0e9; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.actions { display: grid; gap: .55rem; margin-top: 1rem; }
button { width: 100%; border: 0; border-radius: 13px; padding: .82rem 1rem; background: linear-gradient(135deg, #b45e82, #9d537b); color: white; font-weight: 850; cursor: pointer; box-shadow: 0 8px 18px rgba(180,94,130,.16); }
button:hover { filter: brightness(.96); }
button.secondary { background: var(--sand); color: var(--ink); box-shadow: none; }
button.ghost { border: 1px solid var(--line); background: white; color: var(--muted); }
.message { min-height: 1.3em; margin: .75rem 0 0; color: var(--teal-dark); font-size: .82rem; text-align: center; }
.saved-list { display: grid; gap: .55rem; margin-top: .8rem; }
.saved-item { display: grid; grid-template-columns: 1fr auto; gap: .6rem; align-items: center; padding: .7rem; border: 1px solid var(--line); border-radius: 10px; background: #fbf9f4; }
.saved-item strong, .saved-item small { display: block; }
.saved-item small { margin-top: .2rem; color: var(--muted); }
.saved-item button { width: auto; padding: .5rem .7rem; font-size: .78rem; }
.privacy { color: var(--muted); font-size: .76rem; text-align: center; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } .summary-card { position: static; } .summary-panel { display: flex; flex-direction: column; } .summary-card { order: -1; } }
@media (max-width: 640px) { .hero { align-items: flex-start; flex-direction: column; } .progress-card { width: 100%; flex-basis: auto; } .step-nav ol { width: max-content; padding-inline: .5rem; } .split-fields { grid-template-columns: 1fr; } .choices.rules { grid-template-columns: 1fr; } .layout { width: min(100% - 1rem, 1180px); } .wizard-actions { grid-template-columns: 1fr 1fr; } .wizard-actions span { grid-column: 1 / -1; grid-row: 1; } }
