/* 뚝딱 ERP 홍보 페이지 — 에디션 찾기(뚝딱봇) 모양. A = 대화형(기본), C = 상담형(data-mode="C" 또는 "auto" 의 PC) */
/* ── A ── */
dialog.ewA { padding: 0; border: 0; border-radius: 24px; width: min(560px, calc(100vw - 32px)); height: min(800px, calc(100dvh - 48px)); max-width: none; max-height: none; background: var(--paper); color: var(--fg); box-shadow: 0 24px 70px rgba(0,0,0,.35); overflow: hidden; font-family: var(--sans); }
dialog.ewA[open] { display: flex; flex-direction: column; animation: eaPop .22s ease-out; }
dialog.ewA::backdrop { background: rgba(5,8,18,.6); }
@keyframes eaPop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes eaUp { from { transform: translateY(100%); } }
.ea-grab { display: none; width: 44px; height: 5px; border-radius: 99px; background: var(--line); margin: 8px auto 0; flex: none; }
.ea-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 10px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 14%, var(--paper)), var(--paper)); flex: none; }
.ea-head .ea-rb { width: 68px; height: 68px; flex: none; }
.ea-title { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ea-title h2 { font-size: 19px; font-weight: 900; }
.ea-title p { margin: 0; font-size: 13px; color: var(--muted); word-break: keep-all; }
.ea-x { all: unset; box-sizing: border-box; cursor: pointer; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--fg); flex: none; }
.ea-x:hover { border-color: var(--accent); }
.ea-x:focus-visible, .ea-chip:focus-visible, .ea-nb:focus-visible, .ea-go:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ea-prog { display: flex; align-items: center; gap: 10px; padding: 0 16px 12px; font-size: 12px; color: var(--muted); font-weight: 700; flex: none; font-variant-numeric: tabular-nums; }
.ea-track { flex: 1; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.ea-fill { height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .35s ease; }
.ea-log { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 14px 18px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); overscroll-behavior: contain; }
.ea-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 90%; }
.ea-msg.bot { align-self: flex-start; }
.ea-msg.me { align-self: flex-end; flex-direction: row-reverse; margin-block: 2px 6px; }
.ea-av { width: 34px; height: 34px; flex: none; }
.ea-msg.cont .ea-av { visibility: hidden; }
.ea-bub { padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; min-width: 0; }
.bot .ea-bub { background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bot.react .ea-bub { font-size: 14px; color: var(--muted); }
.me .ea-bub { background: var(--accent); color: var(--accent-fg); border-bottom-right-radius: 6px; font-weight: 700; }
.me.skip .ea-bub { background: var(--paper); color: var(--muted); border: 1px dashed var(--line); }
.ea-pad { border-top: 1px solid var(--line); padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); display: grid; gap: 10px; background: var(--paper); flex: none; }
.ea-hint { font-size: 12px; color: var(--muted); font-weight: 700; }
.ea-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 40dvh; overflow-y: auto; padding: 2px; }
.ea-chip { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--fg); min-width: 0; transition: border-color .15s, background .15s; }
.ea-chip:hover { border-color: var(--accent); }
.ea-ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); flex: none; position: relative; }
.ea-chip b { display: block; font-size: 14px; line-height: 1.35; word-break: keep-all; }
.ea-chip small { display: block; font-size: 12px; color: var(--muted); line-height: 1.35; }
.ea-chip[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--paper)); }
.ea-chip[aria-pressed="true"] .ea-ic { background: var(--accent); color: var(--accent-fg); }
.ea-nav { display: flex; gap: 8px; align-items: center; }
.ea-nb { all: unset; box-sizing: border-box; cursor: pointer; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); font-size: 14px; font-weight: 700; display: inline-flex; gap: 4px; align-items: center; color: var(--fg); }
.ea-nb .ew-i { width: 16px; height: 16px; }
.ea-nb.ghost { color: var(--muted); border-color: transparent; }
.ea-nb.primary { margin-left: auto; background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.ea-nb[disabled] { opacity: .4; cursor: default; }
/* 결과 카드 */
.ea-flip { align-self: stretch; perspective: 1400px; margin-top: 4px; min-width: 0; }
.ea-flip-in { display: grid; transition: transform .6s cubic-bezier(.3,1.25,.5,1); transform-style: preserve-3d; }
.ea-flip.flipped .ea-flip-in { transform: rotateY(180deg); }
.ea-face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 20px; min-width: 0; }
.ea-back { display: grid; place-items: center; align-self: start; height: 260px; color: #fff; font-size: 64px; font-weight: 900; background-image: radial-gradient(rgba(255,255,255,.18) 2px, transparent 2px), linear-gradient(135deg, #3B5BFD, #7C4DFF); background-size: 22px 22px, auto; }
.ea-res { transform: rotateY(180deg); background: var(--paper); border: 2px solid var(--accent); padding: 16px; display: grid; gap: 12px; }
.ea-flip.done .ea-flip-in, .ea-flip.done .ea-res { transform: none; transition: none; }
.ea-flip.done .ea-back { display: none; }
.ea-kick { font-size: 13px; color: var(--accent); font-weight: 700; }
.ea-edrow { display: flex; align-items: center; gap: 12px; }
.ea-big { width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(135deg, #3B5BFD, #7C4DFF); color: #fff; display: grid; place-items: center; flex: none; }
.ea-big .ew-i { width: 28px; height: 28px; }
.ea-edrow h3 { margin: 0; font-size: 24px; font-weight: 900; letter-spacing: -.02em; }
.ea-edrow p { margin: 2px 0 0; font-size: 13px; color: var(--accent); font-weight: 700; }
.ea-why { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.ea-why li { display: flex; gap: 8px; font-size: 14px; line-height: 1.5; word-break: keep-all; }
.ea-why li .ew-i { width: 18px; height: 18px; color: var(--accent); margin-top: 2px; }
.ea-has { font-size: 13px; color: var(--muted); line-height: 1.55; margin: 0; word-break: keep-all; }
.ea-price { font-size: 14px; font-weight: 700; padding: 8px 12px; border-radius: 12px; background: var(--bg); }
.ea-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ea-go { display: inline-flex; align-items: center; gap: 6px; padding: 12px 16px; border-radius: 12px; background: var(--accent); color: var(--accent-fg); text-decoration: none; font-weight: 700; font-size: 15px; }
.ea-go .ew-i { width: 16px; height: 16px; }
.ea-cmp { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.55; word-break: keep-all; }
.ea-note { font-size: 12px; color: var(--muted); margin: 0; }
/* 로봇 움직임: 눈 깜빡임·고개 갸웃·안테나 반짝 */
.ea-rb .rb-eyes { transform-box: fill-box; transform-origin: center; animation: eaBlink 4.2s infinite; }
.ea-rb .rb-head { transform-box: view-box; transform-origin: 60px 92px; animation: eaTilt 7s ease-in-out infinite; }
.ea-rb .rb-tip { animation: eaGlow 1.6s ease-in-out infinite alternate; }
.ea-av .rb-head { animation: none; }
.ea-rb.cheer .rb-head { animation: eaHop .5s ease-out; }
@keyframes eaBlink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes eaTilt { 0%, 58%, 100% { transform: rotate(0); } 68% { transform: rotate(-9deg); } 80% { transform: rotate(5deg); } 88% { transform: rotate(0); } }
@keyframes eaGlow { from { fill: #FFD54A; } to { fill: #FFF6C2; filter: drop-shadow(0 0 5px #FFD54A); } }
@keyframes eaHop { 40% { transform: translateY(-6px) rotate(-4deg); } }
@media (max-width: 600px) {
  dialog.ewA { width: 100%; height: 94dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; animation: eaUp .28s ease-out; }
  .ea-grab { display: block; }
  .ea-head { padding-top: 6px; }
  .ea-head .ea-rb { width: 56px; height: 56px; }
  .ea-chip { padding: 8px 10px; gap: 8px; }
  .ea-ic { width: 32px; height: 32px; }
  .ea-edrow h3 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { dialog.ewA, dialog.ewA * { animation: none !important; transition: none !important; } }
/* ── C ── */
dialog.ewC { padding: 0; border: 1px solid var(--line); border-radius: 18px; width: min(700px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); max-width: none; background: var(--paper); color: var(--fg); box-shadow: 0 20px 60px rgba(0,0,0,.28); overflow: hidden; font-family: var(--sans); }
dialog.ewC[open] { display: flex; flex-direction: column; animation: ecIn .2s ease-out; }
dialog.ewC::backdrop { background: rgba(5,8,18,.55); }
@keyframes ecIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes ecUp { from { transform: translateY(100%); } }
.ec-grab { display: none; width: 40px; height: 4px; border-radius: 99px; background: var(--line); margin: 8px auto 0; flex: none; }
.ec-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex: none; }
.ec-av { width: 46px; height: 46px; flex: none; }
.ec-ttl { flex: 1; min-width: 0; display: grid; gap: 1px; }
.ec-ttl h2 { font-size: 17px; font-weight: 700; }
.ec-ttl p { margin: 0; font-size: 13px; color: var(--muted); word-break: keep-all; }
.ec-x { all: unset; box-sizing: border-box; cursor: pointer; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); flex: none; }
.ec-x:hover { background: var(--bg); color: var(--fg); }
.ec-x:focus-visible, .ec-opt:focus-visible, .ec-nb:focus-visible, .ec-go:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ec-prog { display: flex; align-items: center; gap: 12px; padding: 12px 20px 0; flex: none; }
.ec-seg { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.ec-seg i { height: 4px; border-radius: 2px; background: var(--line); }
.ec-seg i.on { background: var(--accent); }
.ec-cnt { font-size: 12px; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ec-body { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 20px 20px; display: grid; gap: 16px; align-content: start; overscroll-behavior: contain; }
.ec-step { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .04em; }
.ec-q { margin: -10px 0 0; font-size: 21px; font-weight: 700; line-height: 1.4; letter-spacing: -.01em; word-break: keep-all; min-height: 1.4em; }
.ec-hint { margin: -8px 0 0; font-size: 13px; color: var(--muted); }
.ec-list { display: grid; gap: 8px; }
.ec-list.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ec-opt { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--fg); min-width: 0; transition: border-color .15s, background .15s; }
.ec-opt:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.ec-mk { width: 20px; height: 20px; border: 2px solid var(--line); border-radius: 50%; flex: none; display: grid; place-items: center; color: transparent; }
.ec-mk .ew-i { width: 13px; height: 13px; stroke-width: 3; }
.ec-list.multi .ec-mk { border-radius: 6px; }
.ec-opt[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--paper)); }
.ec-opt[aria-pressed="true"] .ec-mk { border-color: var(--accent); background: var(--accent); color: var(--accent-fg); }
.ec-opt .ec-t { flex: 1; min-width: 0; display: grid; gap: 1px; }
.ec-opt b { font-size: 15px; font-weight: 700; word-break: keep-all; }
.ec-opt small { font-size: 12.5px; color: var(--muted); }
.ec-opt > .ew-i { color: var(--muted); width: 20px; height: 20px; }
.ec-opt[aria-pressed="true"] > .ew-i { color: var(--accent); }
.ec-foot { display: flex; align-items: center; gap: 8px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); flex: none; }
.ec-nb { all: unset; box-sizing: border-box; cursor: pointer; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); font-size: 14px; font-weight: 700; display: inline-flex; gap: 4px; align-items: center; color: var(--fg); }
.ec-nb .ew-i { width: 15px; height: 15px; }
.ec-nb.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.ec-nb.primary { margin-left: auto; background: var(--accent); color: var(--accent-fg); border-color: var(--accent); min-width: 96px; justify-content: center; }
.ec-nb[disabled] { opacity: .4; cursor: default; }
/* 결과 */
.ec-rec { display: grid; gap: 12px; padding: 18px; border-radius: 14px; border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--paper)); }
.ec-rec .ec-step { margin: 0; }
.ec-recrow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.ec-recrow h3 { margin: 0; font-size: 24px; font-weight: 900; letter-spacing: -.02em; }
.ec-recrow span { font-size: 14px; color: var(--muted); }
.ec-why { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; counter-reset: w; }
.ec-why li { counter-increment: w; display: flex; gap: 10px; font-size: 14px; line-height: 1.55; word-break: keep-all; }
.ec-why li::before { content: counter(w); flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 1px; }
.ec-price { font-size: 14px; font-weight: 700; }
.ec-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ec-go { display: inline-flex; align-items: center; gap: 6px; padding: 11px 16px; border-radius: 10px; background: var(--accent); color: var(--accent-fg); text-decoration: none; font-weight: 700; font-size: 14px; }
.ec-go .ew-i { width: 15px; height: 15px; }
.ec-tbl { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 13px; }
.ec-tbl caption { text-align: left; font-size: 14px; font-weight: 700; padding-bottom: 8px; }
.ec-tbl th, .ec-tbl td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; word-break: keep-all; line-height: 1.4; }
.ec-tbl thead th { font-size: 13px; font-weight: 700; padding-top: 10px; }
.ec-tbl th[scope="row"] { text-align: left; font-weight: 500; color: var(--muted); width: 34%; }
.ec-tbl th[scope="row"].mine { color: var(--fg); font-weight: 700; }
.ec-tbl th[scope="row"].mine::after { content: "고르신 일"; display: inline-block; margin-left: 6px; font-size: 10.5px; font-weight: 700; color: var(--accent); border: 1px solid var(--accent); border-radius: 99px; padding: 0 6px; vertical-align: 1px; }
.ec-tbl .hl { background: color-mix(in srgb, var(--accent) 9%, transparent); color: var(--fg); font-weight: 700; }
.ec-tbl thead .hl { color: var(--accent); border-top: 2px solid var(--accent); border-radius: 10px 10px 0 0; }
.ec-tbl thead .hl small { display: block; font-size: 10.5px; }
.ec-tbl .no { color: var(--muted); opacity: .6; }
.ec-cmp { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; word-break: keep-all; }
.ec-note { margin: 0; font-size: 12px; color: var(--muted); }
/* 아이콘 로봇: 깜빡임·안테나 은은한 반짝, 고개는 아주 살짝 */
@media (max-width: 600px) {
  dialog.ewC { width: 100%; max-height: 94dvh; height: 94dvh; margin: auto 0 0; border-radius: 18px 18px 0 0; border-bottom: 0; animation: ecUp .26s ease-out; }
  .ec-grab { display: block; }
  .ec-head { padding: 8px 16px 12px; }
  .ec-prog, .ec-body, .ec-foot { padding-inline: 16px; }
  .ec-list.two { grid-template-columns: 1fr; }
  .ec-q { font-size: 19px; }
  .ec-tbl { font-size: 12px; }
  .ec-tbl th, .ec-tbl td { padding: 7px 3px; }
  .ec-tbl th[scope="row"].mine::after { display: block; margin: 2px 0 0; width: max-content; }
  .ec-recrow h3 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { dialog.ewC, dialog.ewC * { animation: none !important; transition: none !important; } }
/* 차분한 뚝딱봇(C 머리글): 갸웃은 작고 느리게, 깜빡임·안테나는 그대로 */
.ec-av { width: 48px; height: 48px; flex: none; }
.ea-rb.calm .rb-head { animation: eaTiltCalm 10s ease-in-out infinite; }
@keyframes eaTiltCalm { 0%, 76%, 100% { transform: rotate(0); } 84% { transform: rotate(-4deg); } 92% { transform: rotate(0); } }
@media (prefers-reduced-motion: reduce) { .ea-rb, .ea-rb * { animation: none !important; } }
