/* 연말정산·세금 계산. 글자·색·모서리는 토큰과 공용 부품(.pg-head·.page-tabs·.card·.input·.btn·.pc-drop·.hub-card-tag)만.
   호버는 빠른 상담 타일(hub.css)과 같이 transform·opacity만, (hover: hover)에서만. */
.ye { max-width: var(--page-max); }
.ye-lead, .ye .pg-sub { max-width: 42em; }
.ye-h {
  margin: var(--s-3xl) 0 0;
  font-size: var(--fs-title3); line-height: var(--lh-title3); font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-18); color: var(--text-primary);
}
.card > .ye-h:first-child, .ye-sec-head .ye-h, .ye-sheet-top .ye-h, .ye-faq h3 { margin-top: 0; }
.ye-note { margin: var(--s-sm) 0 0; max-width: 46em; font-size: var(--fs-caption1); line-height: var(--lh-caption1); color: var(--text-tertiary); }
.ye-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-sm); margin: 0 0 var(--s-sm); }

/* 분야 태그 — hub.css .hub-card-tag와 같은 값. hub.css는 빠른 상담만 싣므로 이 지면에서 다시 적는다. */
.ye .hub-card-tag {
  display: inline-flex; align-items: center; align-self: flex-start;
  min-width: 0; max-width: 100%; overflow: hidden;
  height: 30px; padding: 0 8px; border-radius: 4px;
  background: color-mix(in srgb, var(--advice-ink) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--advice-ink) 28%, var(--border));
  color: var(--advice-ink);
  font-size: var(--fs-label2); line-height: var(--lh-label2); font-weight: var(--fw-semibold); letter-spacing: var(--ls-14);
}
.ye .hub-card-tag-tx { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: var(--lh-label2); }

.ye-ico {
  flex: none; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: var(--r-md);
  background: var(--primary-light); color: var(--primary-pressed);
}
.ye-ico-lg { width: 72px; height: 72px; border-radius: var(--r-xl); margin-bottom: var(--s-md); }
.ye-ico svg, .ye-ph svg {
  width: 24px; height: 24px;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.ye-ico-lg svg { width: 32px; height: 32px; }

.ye-jump { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-md); margin-top: var(--s-xl); }
.ye-jump-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ye-jump a {
  position: relative; display: flex; align-items: flex-start; gap: var(--s-lg); min-width: 0;
  padding: var(--s-xl); border-radius: var(--r-xl); background: var(--grey50);
  color: inherit; text-decoration: none;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.ye-jump a::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: var(--surface); border: 1px solid var(--tint-blue-line); box-shadow: var(--shadow-float);
  opacity: 0; transition: opacity .25s ease;
}
.ye-jump a > * { position: relative; }
.ye-jump-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-xs); }
.ye-jump .row-go { margin-top: 14px; transition: transform .25s ease; }
.ye-jump-t { font-size: var(--fs-heading); line-height: var(--lh-heading); font-weight: var(--fw-semibold); letter-spacing: var(--ls-14); color: var(--text-primary); }
.ye-jump-d { font-size: var(--fs-body2); line-height: var(--lh-body2); color: var(--text-secondary); }
.ye-when { margin: 0; font-size: var(--fs-caption1); line-height: var(--lh-caption1); font-weight: var(--fw-medium); color: var(--primary); }

.ye-steps { list-style: none; margin: var(--s-lg) 0 0; padding: 0; display: flex; flex-direction: column; }
.ye-steps li {
  position: relative; margin: 0; padding: 0 0 var(--s-xl) 40px;
  border: 0; border-radius: 0; background: transparent;
}
.ye-steps li::before {
  content: ""; position: absolute; left: 4px; top: 4px; width: 12px; height: 12px; border-radius: var(--r-full);
  background: var(--primary); box-shadow: 0 0 0 5px var(--primary-light);
}
.ye-steps li::after {
  content: ""; position: absolute; left: 9px; top: 22px; bottom: 0; width: 1px; background: var(--border);
}
.ye-steps li:last-child { padding-bottom: 0; }
.ye-steps li:last-child::after { content: none; }
.ye-steps h3 { margin: var(--s-xs) 0 0; font-size: var(--fs-body1); line-height: var(--lh-body1); font-weight: var(--fw-semibold); color: var(--text-primary); }
.ye-steps li > p { margin: var(--s-sm) 0 0; font-size: var(--fs-body2); line-height: var(--lh-body2); color: var(--text-secondary); }
.ye-steps .ye-when { margin: 0; }

ul.ye-guide { list-style: none; margin: var(--s-lg) 0 0; padding: 0; display: grid; gap: var(--s-sm); }
ul.ye-guide li {
  position: relative; padding-left: var(--s-lg);
  font-size: var(--fs-body2); line-height: var(--lh-body2); color: var(--text-secondary);
}
ul.ye-guide li::before {
  content: ""; position: absolute; left: 2px; top: 0.55em; width: 4px; height: 4px; border-radius: var(--r-full); background: var(--grey400);
}

.ye-faqs { display: flex; flex-direction: column; gap: var(--s-sm); margin-top: var(--s-lg); }
.ye-faq { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.ye-faq summary {
  display: flex; align-items: center; gap: var(--s-md); min-height: 52px; padding: var(--s-md) var(--s-lg);
  list-style: none; cursor: pointer;
}
.ye-faq summary::-webkit-details-marker { display: none; }
.ye-faq summary::marker { content: ""; }
.ye-faq h3 { margin: 0; flex: 1; min-width: 0; font-size: var(--fs-body1); line-height: var(--lh-body1); font-weight: var(--fw-semibold); color: var(--text-primary); }
.ye-faq .dir-caret { flex: none; color: var(--grey400); transition: transform .2s ease; }
.ye-faq[open] .dir-caret { transform: rotate(180deg); }
.ye-faq p { margin: 0; padding: 0 var(--s-lg) var(--s-lg); font-size: var(--fs-body2); line-height: var(--lh-body2); color: var(--text-secondary); }
.ye-faq summary:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }

.ye-form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-lg); margin-top: var(--s-lg); }
.ye-field { display: flex; flex-direction: column; gap: var(--s-xs); min-width: 0; }
.ye-label { font-size: var(--fs-label2); line-height: var(--lh-label2); font-weight: var(--fw-medium); color: var(--text-primary); }
.ye-hint { margin: 0; font-size: var(--fs-caption1); line-height: var(--lh-caption1); color: var(--text-tertiary); }
.ye-span { grid-column: 1 / -1; }
.ye-actions { display: flex; flex-wrap: wrap; gap: var(--s-sm); }
.ye-actions .btn { text-decoration: none; }
.card .ye-form { margin-top: var(--s-lg); }
.ye-upload.card, .ye-panel.card, .ye-progress.card { margin-top: var(--s-xl); padding: var(--s-xl); }
.ye-sec-head { display: flex; align-items: flex-start; gap: var(--s-lg); }
.ye-sec-head .hub-card-tag { margin-bottom: var(--s-xs); }

.ye-rows { margin: var(--s-lg) 0 0; }
.ye-rows div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-md); padding: var(--s-sm) 0; border-bottom: 1px solid var(--divider); }
.ye-rows dt { font-size: var(--fs-body2); line-height: var(--lh-body2); font-weight: var(--fw-regular); color: var(--text-secondary); }
.ye-rows dd { margin: 0; font-size: var(--fs-body2); line-height: var(--lh-body2); font-weight: var(--fw-medium); color: var(--text-primary); text-align: right; font-variant-numeric: tabular-nums; }
.ye-balance dt, .ye-balance dd { font-size: var(--fs-body1); line-height: var(--lh-body1); font-weight: var(--fw-semibold); color: var(--text-primary); }

.ye-sheet { margin-top: var(--s-xl); padding: 0; overflow: hidden; border-radius: var(--r-xl); box-shadow: var(--shadow-card); background: var(--surface); }
.ye-result.ye-sheet { overflow: visible; }
.ye-result > .ye-sheet-top { border-radius: var(--r-xl) var(--r-xl) 0 0; }
.ye-sheet-top { padding: var(--s-xl); background: var(--grey50); border-bottom: 1px solid var(--border); }
.ye-sheet-top .ye-note { color: var(--text-secondary); }
.ye-hero-lab { margin: var(--s-md) 0 0; font-size: var(--fs-body2); line-height: var(--lh-body2); font-weight: var(--fw-medium); color: var(--text-secondary); }
.ye-speak {
  margin: 0; font-size: var(--fs-title2); line-height: var(--lh-title2);
  font-weight: var(--fw-semibold); letter-spacing: var(--ls-18); color: var(--text-primary);
}
.ye-hero-num {
  margin: var(--s-sm) 0 0; color: var(--text-primary);
  font-size: var(--fs-display); line-height: var(--lh-display);
  font-weight: var(--fw-semibold); letter-spacing: var(--ls-36);
  font-variant-numeric: tabular-nums;
}
.ye .pg-sub { font-size: var(--fs-body1); line-height: var(--lh-body1); color: var(--text-secondary); }
.ye-note { font-size: var(--fs-body2); line-height: var(--lh-body2); color: var(--text-secondary); }
.ye-jump-t { font-size: var(--fs-title2); line-height: var(--lh-title2); letter-spacing: var(--ls-18); }
.ye-jump-d, .ye-item-t { font-size: var(--fs-body1); line-height: var(--lh-body1); }
.ye-choice a { flex-direction: column; align-items: flex-start; min-height: 220px; padding: var(--s-2xl); }
.ye-choice .ye-ico-lg { margin-bottom: 0; }
.ye-hint { display: none; }
.ye-field:focus-within .ye-hint, #ye-pdf-pass .ye-hint { display: block; font-size: var(--fs-body2); line-height: var(--lh-body2); }
.ye-go { width: 100%; }
.ye-flow {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-sm);
  list-style: none; margin: var(--s-lg) 0 0; padding: 0;
}
.ye-flow a {
  display: flex; align-items: center; gap: var(--s-sm); min-height: 52px; padding: 0 var(--s-md);
  border-radius: var(--r-lg); background: var(--grey50); text-decoration: none;
  color: var(--text-secondary); font-size: var(--fs-body1); line-height: var(--lh-body1); font-weight: var(--fw-semibold);
}
.ye-flow a span {
  flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--r-full);
  background: var(--surface); color: var(--text-primary); font-size: var(--fs-caption1);
}
.ye-flow .is-now a { background: var(--primary-light); color: var(--primary-pressed); }
.ye-flow .is-now a span, .ye-flow .is-done a span { background: var(--primary); color: var(--text-on-fill); }
.ye-more { margin-top: var(--s-xl); }
.ye-more > summary {
  display: inline-flex; align-items: center; gap: var(--s-xs); min-height: 48px; cursor: pointer; list-style: none;
  font-size: var(--fs-body1); line-height: var(--lh-body1); font-weight: var(--fw-semibold); color: var(--primary-pressed);
}
.ye-more > summary::-webkit-details-marker { display: none; }
.ye-more > summary::marker { content: ""; }
.ye-check .ye-more { margin: 0 0 var(--s-md) 36px; }
.ye-check .ye-more > summary { min-height: 44px; font-size: var(--fs-body2); font-weight: var(--fw-medium); color: var(--text-secondary); }
.ye-check .ye-more p { margin: 0 0 var(--s-sm); font-size: var(--fs-body1); line-height: var(--lh-body1); color: var(--text-secondary); }
.ye-sheet .ye-more, .ye-funnel .ye-more { margin: 0 var(--s-xl) var(--s-xl); }
.ye-shot-m { display: none; }
.ye-crop { margin: 0; }
.ye-crop-frame {
  position: relative; height: 210px; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface);
}
.ye-crop-frame img {
  position: absolute; width: 1680px; max-width: none; height: auto;
  left: calc(50% - var(--fx)); top: calc(42% - var(--fy));
}
.ye-crop-frame .ye-call-n { left: 12px; top: 12px; }
.ye-crop figcaption {
  margin: var(--s-sm) 0 0; font-size: var(--fs-body1); line-height: var(--lh-body1);
  font-weight: var(--fw-semibold); color: var(--text-primary);
}
@media (max-width: 720px) {
  .ye-shot-scroller, .ye-call-key { display: none; }
  .ye-shot-m { display: grid; gap: var(--s-xl); margin-top: var(--s-md); }
}
.ye-sheet .ye-rows { margin: 0; padding: var(--s-sm) var(--s-xl) var(--s-md); }
.ye-sheet > .ye-h, .ye-sheet > .ye-guide, .ye-sheet > .ye-est, .ye-sheet > .ye-note, .ye-sheet > .ye-summary, .ye-sheet > form { margin-left: var(--s-xl); margin-right: var(--s-xl); }
.ye-sheet > form { margin-bottom: var(--s-xl); }
.ye-summary { margin: var(--s-lg) var(--s-xl); font-size: var(--fs-body1); line-height: var(--lh-body1); color: var(--text-primary); white-space: pre-wrap; }
.ye-est { margin: var(--s-lg) var(--s-xl) var(--s-xl); font-size: var(--fs-body2); line-height: var(--lh-body2); font-weight: var(--fw-medium); color: var(--primary-pressed); }
.ye-sheet-top .ye-est { margin: 0; }

.ye-funnel { margin-top: var(--s-2xl); padding: var(--s-xl); border-radius: var(--r-lg); background: var(--primary-light); border: 1px solid var(--tint-blue-line); }
.ye-sheet .ye-funnel { margin: var(--s-lg) var(--s-xl) var(--s-xl); }
.ye-funnel-line { margin: 0; font-size: var(--fs-body1); line-height: var(--lh-body1); font-weight: var(--fw-semibold); color: var(--text-primary); }
.ye-funnel-body { margin: var(--s-sm) 0 0; font-size: var(--fs-body2); line-height: var(--lh-body2); color: var(--text-secondary); }
.ye-funnel .ye-actions { margin-top: var(--s-lg); }
.ye-picks { margin: var(--s-lg) var(--s-xl) var(--s-xl); }
.ye-pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-md); margin-top: var(--s-lg); }
.ye-pick {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  min-height: 168px; padding: var(--s-lg) var(--s-lg) 92px; min-width: 0;
  border-radius: var(--r-xl); background: var(--grey100); color: var(--text-primary); text-decoration: none; overflow: hidden;
  border: 1px solid transparent;
  box-shadow: 0 1px 2px rgba(17, 31, 40, .04);
  transition: transform .35s cubic-bezier(.22, .61, .36, 1), box-shadow .35s cubic-bezier(.22, .61, .36, 1);
}
.ye-pick.is-primary { background: var(--primary-light); border-color: var(--primary); }
.ye-pick-t { font-size: var(--fs-title2); line-height: var(--lh-title2); font-weight: var(--fw-semibold); letter-spacing: var(--ls-18); }
.ye-pick-d { font-size: var(--fs-body2); line-height: var(--lh-body2); color: var(--text-secondary); }
.ye-pick-art {
  position: absolute; right: 0; bottom: -8px; width: 108px; height: 108px; object-fit: contain; pointer-events: none;
  filter: drop-shadow(0 8px 12px rgba(25, 31, 40, .12));
  transition: transform .4s cubic-bezier(.22, .61, .36, 1);
}
.ye-pick:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.ye-q-help { margin: -12px 0 0; font-size: var(--fs-body2); line-height: var(--lh-body2); color: var(--text-secondary); }
.ye-q-more { margin: 0 0 20px; }
.ye-q-more > summary {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; cursor: pointer; list-style: none;
  font-size: var(--fs-body2); line-height: var(--lh-body2); font-weight: var(--fw-medium); color: var(--primary);
}
.ye-q-more > summary::-webkit-details-marker { display: none; }
.ye-q-more > summary::marker { content: ""; }
.ye-q-more p { margin: 0 0 4px; max-width: 36em; font-size: var(--fs-body2); line-height: var(--lh-body2); color: var(--text-secondary); }

.ye-checks { display: flex; flex-direction: column; gap: var(--s-sm); margin-top: var(--s-lg); }
.ye-item {
  position: relative; display: flex; gap: var(--s-md); align-items: flex-start;
  min-height: 44px; padding: var(--s-lg); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface);
  cursor: pointer;
}
.ye-item::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--primary-light); opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.ye-item > * { position: relative; }
.ye-item input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--primary); }
.ye-item-t { display: block; font-size: var(--fs-body1); line-height: var(--lh-body1); font-weight: var(--fw-medium); color: var(--text-primary); }
.ye-item-d { display: block; margin-top: var(--s-xs); font-size: var(--fs-body2); line-height: var(--lh-body2); color: var(--text-secondary); }
.ye-item:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
.ye-item:has(input:checked) { border-color: var(--tint-blue-line); }
.ye-item:has(input:checked)::before { opacity: 1; }

.ye-progress-t { margin: 0; font-size: var(--fs-body2); line-height: var(--lh-body2); font-weight: var(--fw-medium); color: var(--text-primary); }
.ye-meter { height: 4px; margin-top: var(--s-md); border-radius: var(--r-full); background: var(--grey100); overflow: hidden; }
.ye-meter > span { display: block; height: 100%; width: 100%; background: var(--primary); transform: scaleX(0); transform-origin: left center; transition: transform .35s ease; }
.ye-pdf-meter { opacity: 0; }
.ye-upload.ye-busy .ye-pdf-meter { opacity: 1; }
.ye-upload.ye-busy .ye-pdf-meter > span { width: 36%; animation: ye-meter 1.1s ease-in-out infinite; }
@keyframes ye-meter {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

.ye-rough {
  margin-top: var(--s-lg); padding: var(--s-md) var(--s-lg); border-radius: var(--r-md);
  background: var(--grey50); border: 1px solid var(--border); color: var(--text-secondary);
  font-size: var(--fs-body2); line-height: var(--lh-body2);
}
.ye-advanced { grid-column: 1 / -1; }
.ye-advanced > summary {
  display: inline-flex; align-items: center; gap: var(--s-xs); min-height: 44px; padding: 0 var(--s-lg);
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: var(--fs-body2); line-height: var(--lh-body2);
  font-weight: var(--fw-medium); cursor: pointer; list-style: none;
}
.ye-advanced > summary::-webkit-details-marker { display: none; }
.ye-advanced > summary::marker { content: ""; }
.ye-advanced > summary .dir-caret { color: var(--grey400); transition: transform .2s ease; }
.ye-advanced[open] > summary { color: var(--text-primary); }
.ye-advanced[open] > summary .dir-caret { transform: rotate(180deg); }
.ye-advanced .ye-form { margin-top: var(--s-lg); }
.ye-advanced summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

details.ye-guide { margin-top: var(--s-lg); }
details.ye-guide > summary {
  display: inline-flex; align-items: center; gap: var(--s-xs); min-height: 44px; padding: 0 var(--s-lg);
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border);
  color: var(--text-primary); font-size: var(--fs-body2); line-height: var(--lh-body2); font-weight: var(--fw-medium);
  cursor: pointer; list-style: none;
}
details.ye-guide > summary::-webkit-details-marker { display: none; }
details.ye-guide > summary::marker { content: ""; }
details.ye-guide > summary .dir-caret { color: var(--grey400); transition: transform .2s ease; }
details.ye-guide[open] > summary .dir-caret { transform: rotate(180deg); }
details.ye-guide summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
details.ye-guide[open] {
  position: fixed; inset: 0; z-index: 80; overflow: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; align-items: center;
  padding: var(--s-2xl) var(--s-lg); background: rgba(25, 31, 40, .45);
}
details.ye-guide[open] .ye-guide-panel {
  width: min(720px, 100%); margin-top: var(--s-lg); padding: var(--s-xl);
  border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-float);
}
.ye-ph {
  display: flex; align-items: center; gap: var(--s-md); min-height: 72px; margin-top: var(--s-sm);
  padding: var(--s-md) var(--s-lg); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface);
  color: var(--text-tertiary); font-size: var(--fs-caption1); line-height: var(--lh-caption1);
}
.ye-ph svg {
  flex: none; width: 40px; height: 40px; padding: 8px; box-sizing: border-box;
  border-radius: var(--r-sm); background: var(--primary-light); color: var(--primary-pressed);
}
/* 홈택스 갈무리. 번호는 그림 위 레이어. 좁은 화면은 가로로 밀어 글자가 줄어들지 않게 한다. */
.ye-shot { margin-top: var(--s-lg); }
.ye-shot-scroller {
  overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--grey50);
  overscroll-behavior: contain;
}
.ye-shot-stage { position: relative; width: 100%; min-width: 960px; }
.ye-shot-stage img { display: block; width: 100%; height: auto; }
.ye-calls { list-style: none; margin: 0; padding: 0; }
.ye-call {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h);
  border: 2px solid var(--primary-pressed); border-radius: var(--r-sm);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 28%, transparent);
  pointer-events: none;
}
.ye-call-n {
  position: absolute; left: -8px; top: -12px;
  width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: var(--r-full); background: var(--primary-pressed); color: var(--text-on-fill);
  font-size: var(--fs-caption1); line-height: 1; font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
}
.ye-call-key { list-style: none; margin: var(--s-md) 0 0; padding: 0; display: grid; gap: var(--s-sm); }
.ye-call-key li {
  display: flex; align-items: flex-start; gap: var(--s-sm);
  font-size: var(--fs-body2); line-height: var(--lh-body2); color: var(--text-secondary);
}
.ye-call-key .ye-call-n { position: static; flex: none; }
.ye-card { margin-top: var(--s-lg); }
.ye-result.ye-in { animation: ye-in .28s ease; }
@keyframes ye-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.ye .pc-drop { margin: var(--s-lg) 0 0; }
.ye .pc-file { font-size: var(--fs-body1); }   /* body1 = 16px. iOS가 16px 미만 파일 칸을 확대하지 않게 */

@media (hover: hover) {
  .ye-jump a:hover { transform: translateY(-4px); }
  .ye-jump a:hover::before { opacity: 1; }
  .ye-jump a:hover .row-go { transform: translateX(4px); }
  .ye-jump a:hover .ye-ico { transform: translateY(-2px) scale(1.04); }
  .ye-item:hover::before { opacity: 1; }
}
.ye-jump a:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; transform: translateY(-4px); }
.ye-jump a:focus-visible::before { opacity: 1; }
.ye-jump a:active { transform: translateY(-2px); }
.ye-ico { transition: transform .3s cubic-bezier(.2, .8, .2, 1); }

@media (max-width: 1100px) {
  .ye-jump, .ye-jump-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .ye-form { grid-template-columns: minmax(0, 1fr); }
  .ye-actions { flex-direction: column; }
  .ye-actions .btn { width: 100%; }
  .ye .input { font-size: var(--fs-body1); }   /* body1 = 16px. 좁은 화면 입력만. iOS 확대 방지 */
  .ye-upload.card, .ye-panel.card, .ye-progress.card, .ye-sheet-top { padding: var(--s-lg); }
}
@media (min-width: 721px) {
  .ye-funnel .ye-actions .btn { flex: 1 1 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ye-jump a, .ye-jump a::before, .ye-jump .row-go, .ye-ico, .ye-item::before,
  .ye-faq .dir-caret, .ye-advanced > summary .dir-caret, details.ye-guide > summary .dir-caret,
  .ye-meter > span, .ye-result.ye-in { transition: none; animation: none; }
}
/* 홈 배너·고민 카드와 같은 결. 그림은 자체 점토 일러스트. */
.ye-hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(220px, .95fr); align-items: center;
  min-height: 300px; margin: 0 0 var(--s-xl); border-radius: 28px; overflow: hidden;
  background: linear-gradient(120deg, var(--primary), var(--primary-pressed)); color: var(--text-on-fill);
}
.ye-hero-copy { padding: 40px 12px 40px 40px; min-width: 0; }
.ye-hero-k { margin: 0; font-size: var(--fs-label1); line-height: var(--lh-label1); font-weight: var(--fw-semibold); }
.ye-hero-h {
  margin: 8px 0 0; font-size: var(--fs-display); line-height: var(--lh-display);
  font-weight: var(--fw-semibold); letter-spacing: var(--ls-36); color: var(--text-on-fill);
}
.ye-hero-s { margin: 12px 0 0; max-width: 22em; font-size: var(--fs-body1); line-height: var(--lh-body1); color: var(--text-on-fill); }
.ye-hero-art { width: 100%; height: 100%; max-height: 340px; object-fit: cover; object-position: 70% center; }
.ye-hero-slim { min-height: 220px; background: var(--grey100); color: var(--text-primary); }
.ye-hero-slim .ye-hero-h { color: var(--text-primary); }
.ye-hero-slim .ye-hero-s, .ye-hero-slim .ye-hero-k { color: var(--text-secondary); }
.ye-hero-slim .ye-hero-art { max-height: 220px; object-fit: contain; object-position: center; }
.ye-scenes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-lg); margin-top: var(--s-lg); }
.ye-scenes-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ye-scene {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-xs);
  min-height: 248px; padding: var(--s-2xl) var(--s-2xl) 156px; min-width: 0;
  border-radius: var(--r-xl); background: var(--grey100); color: var(--text-primary); text-decoration: none; overflow: hidden;
  box-shadow: 0 1px 2px rgba(17, 31, 40, .04);
  transition: transform .35s cubic-bezier(.22, .61, .36, 1), box-shadow .35s cubic-bezier(.22, .61, .36, 1);
}
.ye-scene-k { font-size: var(--fs-label1); line-height: var(--lh-label1); font-weight: var(--fw-medium); color: var(--primary-pressed); }
.ye-scene-t { font-size: var(--fs-title2); line-height: var(--lh-title2); font-weight: var(--fw-semibold); letter-spacing: var(--ls-18); }
.ye-scene-d { font-size: var(--fs-body1); line-height: var(--lh-body1); color: var(--text-secondary); }
.ye-scene-art {
  position: absolute; right: 4px; bottom: 0; width: 156px; height: 156px; object-fit: contain; pointer-events: none;
  filter: drop-shadow(0 10px 14px rgba(25, 31, 40, .12));
  transition: transform .4s cubic-bezier(.22, .61, .36, 1);
}
.ye-scene:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.ye-drop { min-height: 196px; padding-top: 20px; }
.ye-drop-art { width: 140px; height: 140px; object-fit: contain; }
.ye .pc-drop-t { font-size: var(--fs-body1); }
.ye-result-hero { display: flex; align-items: center; gap: var(--s-xl); }
.ye-result-art { width: 148px; height: 148px; object-fit: contain; flex: none; }
.ye-ask-area { min-height: 168px; font-size: var(--fs-body1); line-height: var(--lh-body1); }
.ye-ask-prog { margin: 0 0 var(--s-md); font-size: var(--fs-label1); line-height: var(--lh-label1); font-weight: var(--fw-semibold); color: var(--primary-pressed); }
.ye-ask-head { position: sticky; top: var(--topbar-h); z-index: 4; background: var(--background); padding: 48px 0 16px; scroll-margin-top: calc(var(--topbar-h) + 8px); }
.ye-bar { height: 4px; border-radius: var(--r-full); background: var(--grey100); overflow: hidden; }
.ye-bar > span { display: block; height: 100%; width: 100%; background: var(--primary); transform: scaleX(.2); transform-origin: left center; transition: transform .3s ease; }
.ye-q-t { margin: 56px 0 28px; font-size: var(--fs-title1); line-height: var(--lh-title1); font-weight: var(--fw-semibold); letter-spacing: var(--ls-22); color: var(--text-primary); }
.ye-q-err { margin: 0 0 var(--s-md); color: var(--error); font-size: var(--fs-body1); line-height: var(--lh-body1); }
.ye-money { position: relative; }
.ye .ye-money-in {
  height: 80px; padding: 0 40px 0 0; text-align: left;
  border: 0; border-radius: 0; border-bottom: 2px solid var(--grey300);
  background: transparent; box-shadow: none;
  font-size: var(--fs-display); line-height: var(--lh-display); font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-36); font-variant-numeric: tabular-nums;
}
.ye .ye-money-in:focus {
  border-color: transparent; border-bottom: 2px solid var(--primary);
  background: transparent; box-shadow: none;
}
.ye .ye-money-in:focus-visible { outline: 2px solid var(--primary); outline-offset: 6px; }
.ye .ye-pdf-step .ye-money-in:focus,
.ye .ye-pdf-step .ye-money-in:focus-visible { outline: none; box-shadow: none; }
.ye-money-unit { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: var(--fs-body1); color: var(--text-secondary); }
.ye-money-say { min-height: 32px; margin: var(--s-sm) 0 0; font-size: var(--fs-title3); line-height: var(--lh-title3); font-weight: var(--fw-semibold); color: var(--primary-pressed); }
.ye-adds { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-sm); margin-top: var(--s-md); }
.ye-add {
  min-height: 48px; min-width: 44px; padding: 0 18px;
  border: 0; border-radius: var(--r-full);
  background: var(--grey100); color: var(--text-primary);
  font: inherit; font-size: var(--fs-body1); font-weight: var(--fw-semibold); cursor: pointer;
}
.ye-add.is-clear { background: transparent; color: var(--text-secondary); font-weight: var(--fw-medium); padding: 0 14px; }
.ye-add:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.ye-add:active { transform: scale(.98); }
.ye .ye-money-in { transform-origin: left center; }
@keyframes ye-bump { 0% { transform: scale(1); } 35% { transform: scale(1.045); } 100% { transform: scale(1); } }
.ye .ye-money-in.ye-bump { animation: ye-bump .28s ease; }
.ye-chips { display: flex; flex-wrap: wrap; gap: var(--s-sm); margin-top: var(--s-md); }
.ye-chip {
  min-height: 44px; padding: 0 var(--s-lg); border: 1px solid var(--border); border-radius: var(--r-full);
  background: var(--surface); color: var(--text-primary); font: inherit; font-size: var(--fs-body1); font-weight: var(--fw-semibold); cursor: pointer;
}
.ye-chip:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.ye-stepper { display: flex; align-items: center; gap: var(--s-md); }
.ye-stepper .input { width: 112px; height: 72px; text-align: center; font-size: var(--fs-title1); font-weight: var(--fw-semibold); }
.ye-stepbtn {
  width: 56px; height: 56px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); color: var(--text-primary); cursor: pointer;
}
.ye-stepbtn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.ye-stepbtn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.ye-ask-nav { display: none; }
.ye-form.is-wizard .ye-ask-nav { display: flex; gap: var(--s-sm); margin-top: var(--s-xl); }
.ye-form.is-wizard .ye-ask-nav .btn { flex: 1 1 0; }
.ye-ask .ye-q, .ye-ask .ye-ask-nav, .ye-ask .ye-ask-head, .ye-ask .ye-q-err, .ye-ask .ye-actions { grid-column: 1 / -1; }
.ye-q-stage, .ye-form.is-wizard { position: relative; }
.ye.is-asking #ye-step2 { min-height: calc(100vh - var(--topbar-h) - 32px); border: 0; box-shadow: none; background: transparent; max-width: 560px; margin-left: auto; margin-right: auto; }
.ye.is-asking .ye-aside { display: none; }
.ye-form.is-wizard .ye-q { display: block; position: absolute; left: 0; right: 0; top: 0; opacity: 0; pointer-events: none; transform: translateX(28px); }
.ye-form.is-wizard .ye-q.is-on { position: relative; opacity: 1; pointer-events: auto; transform: none; animation: ye-qin .28s ease; }
.ye-form.is-wizard .ye-q.is-leave { position: absolute; animation: ye-qout .28s ease forwards; }
@keyframes ye-qin { from { opacity: 0; transform: translateX(var(--ye-from, 28px)); } to { opacity: 1; transform: none; } }
@keyframes ye-qout { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(var(--ye-x, -28px)); } }
@media (hover: hover) and (pointer: fine) {
  .ye-scene:hover, .ye-pick:hover { transform: translateY(-8px); box-shadow: 0 12px 24px rgba(17, 31, 40, .08), 0 28px 56px rgba(17, 31, 40, .14); }
  .ye-scene:hover .ye-scene-art, .ye-pick:hover .ye-pick-art { transform: translateY(-6px) scale(1.06) rotate(-4deg); }
  .ye-chip:hover, .ye-add:hover, .ye-stepbtn:hover { background: var(--primary-light); border-color: var(--tint-blue-line); }
  .ye-add.is-clear:hover { background: var(--grey100); }
}
.ye-scene:active, .ye-pick:active { transform: translateY(-2px); }
@media (max-width: 720px) {
  .ye-ask-head { padding: 40px 0 16px; }
  .ye-q-t { margin-top: 48px; }
  .ye-pick-grid { grid-template-columns: 1fr; }
  .ye .ye-money-in, .ye .ye-stepper .input { font-size: var(--fs-title1); }
  .ye.is-asking .ye-form.is-wizard .ye-ask-nav,
  .ye.is-asking .ye-form.is-wizard .ye-actions {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    margin: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--surface); border-top: 1px solid var(--border);
  }
  .ye.is-asking #ye-step2 { padding-bottom: 96px; }
}
@media (max-width: 800px) {
  .ye-hero, .ye-scenes, .ye-scenes-2 { grid-template-columns: minmax(0, 1fr); }
  .ye-hero-copy { padding: 28px 24px 8px; }
  .ye-hero-art { max-height: 220px; }
  .ye-scene { min-height: 0; padding: var(--s-xl) var(--s-xl) 128px; }
  .ye-scene-art { width: 112px; height: 112px; }
  .ye-result-hero { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .ye-scene, .ye-scene:hover, .ye-scene-art, .ye-pick, .ye-pick:hover, .ye-pick-art, .ye-bar > span, .ye-add, .ye-add:active, .ye .ye-money-in.ye-bump, .ye-form.is-wizard .ye-q, .ye-form.is-wizard .ye-q.is-on, .ye-form.is-wizard .ye-q.is-leave {
    transform: none; transition: none; animation: none;
  }
  .ye-scene:hover, .ye-pick:hover { box-shadow: 0 1px 2px rgba(17, 31, 40, .04); }
}
button.ye-start-card { width: 100%; border: 0; cursor: pointer; font: inherit; text-align: left; }
.ye-start { display: grid; gap: var(--s-md); margin-top: var(--s-lg); }
.ye.is-pdf #ye-pdf, .ye.is-result #ye-result { max-width: 920px; margin-left: auto; margin-right: auto; }
.ye.is-pdf .pg-head, .ye.is-pdf .page-tabs, .ye.is-pdf #ye-flow, .ye.is-pdf #ye-step2, .ye.is-pdf .ye-aside,
.ye.is-asking .pg-head, .ye.is-asking .page-tabs, .ye.is-asking #ye-flow, .ye.is-asking #ye-pdf,
.ye.is-result .pg-head, .ye.is-result .page-tabs, .ye.is-result #ye-flow, .ye.is-result #ye-pdf, .ye.is-result #ye-step2, .ye.is-result #ye-card {
  display: none;
}
.ye-pdf-step { max-width: 560px; margin: 0 auto; }
.ye-pdf-step[data-step="start"] { max-width: 760px; }
.ye-pdf-step .ye-g { display: none; }
.ye-pdf-step .ye-g.is-on { display: block; animation: ye-qin .28s ease; }
.ye-g-n {
  width: 40px; height: 40px; display: grid; place-items: center; margin: 0 0 var(--s-sm);
  border-radius: var(--r-full); background: var(--primary); color: var(--text-on-fill);
  font-size: var(--fs-title3); font-weight: var(--fw-semibold);
}
.ye-g-art { display: block; width: min(320px, 88%); height: auto; margin: var(--s-lg) auto 0; }
.ye-pdf-step[data-step="password"] { padding-top: 48px; }
.ye-pdf-step[data-step="password"] .ye-q-help { margin: 8px 0 40px; }
.ye-pdf-msg { margin: 12px 0 0; font-size: var(--fs-body2); line-height: var(--lh-body2); color: var(--text-secondary); }
.ye-pdf-msg:empty { display: none; }
.ye-lock .t-link { color: var(--primary); }
.ye-g-shot { height: 320px; margin-top: var(--s-md); border-radius: var(--r-xl); }
.ye-mark {
  position: absolute; left: 46%; top: 62%; z-index: 2; width: 168px; height: 48px;
  transform: translate(-50%, -50%); pointer-events: none;
  border: 2px solid var(--primary-pressed); border-radius: 12px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 28%, transparent);
}
.ye-lock {
  display: flex; align-items: flex-start; gap: 12px; margin-top: 12px; padding: 14px 16px;
  border-radius: var(--r-lg); background: var(--tint-warm-bg); color: var(--tint-warm-ink);
}
.ye-lock > svg { flex: none; width: 22px; height: 22px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ye-lock p { margin: 0; font-size: var(--fs-body1); line-height: var(--lh-body1); }
.ye-lock .t-link { display: inline-block; margin: 8px 0 0; padding: 0; border: 0; background: none; color: var(--tint-warm-ink); font: inherit; font-weight: var(--fw-semibold); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ye-guide-end { display: flex; flex-wrap: wrap; gap: var(--s-sm); margin-top: var(--s-lg); }
.ye-guide-end .btn { text-decoration: none; }
.ye-pdf-nav { display: flex; gap: var(--s-sm); margin-top: var(--s-xl); }
.ye-pdf-nav .btn { flex: 1 1 0; }
.ye-file-chip {
  display: inline-flex; align-items: center; gap: var(--s-sm); min-height: 44px; margin-top: var(--s-md);
  padding: 0 var(--s-lg); border-radius: var(--r-full); background: var(--primary-light); color: var(--text-primary);
  font-size: var(--fs-body1); font-weight: var(--fw-semibold);
}
.ye-file-chip svg { width: 18px; height: 18px; fill: none; stroke: var(--primary-pressed); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ye-file-chip .ye-chip-lock { display: none; }
.ye-file-chip.is-lock { background: var(--tint-warm-bg); color: var(--tint-warm-ink); }
.ye-file-chip.is-lock svg { stroke: var(--tint-warm-ink); }
.ye-file-chip.is-lock .ye-chip-ok { display: none; }
.ye-file-chip.is-lock .ye-chip-lock { display: block; }
.ye-drop.has-file .pc-drop-s { display: none; }
.ye-drop { position: relative; }
.ye-drop-info { position: absolute; top: 4px; right: 4px; z-index: 3; margin: 0; }
@keyframes ye-pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
.ye-file-chip.is-in { animation: ye-pop .28s ease; }
@keyframes ye-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}
.ye-money-in.ye-shake { animation: ye-shake .28s ease; }
.ye-read-rows { margin-top: var(--s-lg); }
.ye-drop-info { margin-top: var(--s-sm); }
.ye-drop-info > summary {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: var(--r-full); color: var(--text-secondary); cursor: pointer; list-style: none;
}
.ye-drop-info > summary::-webkit-details-marker { display: none; }
.ye-drop-info > summary::marker { content: ""; }
.ye-drop-info > summary svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.ye-drop-info > summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.ye-drop-info p { margin: 0; max-width: 36em; font-size: var(--fs-body2); line-height: var(--lh-body2); color: var(--text-secondary); }
@media (min-width: 800px) {
  .ye-start { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .ye.is-pdf .ye-pdf-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    margin: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--surface); border-top: 1px solid var(--border);
  }
  .ye.is-pdf #ye-pdf { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .ye-pdf-step.ye-in, .ye-pdf-step .ye-g.is-on, .ye-file-chip.is-in, .ye-money-in.ye-shake { animation: none; }
}

/* author display가 [hidden]을 이기지 않게 한다. */
.ye [hidden] { display: none; }
