:root {
  --accent: #3182f6;
  --accent-deep: #1b64da;
  --tint: #eef4ff;
  --ink: #191f28;
  --ink-2: #333d4b;
  --ink-3: #4e5968;
  --muted: #6b7280;
  --line: #e5e8eb;
  --bg: #f2f4f6;
  --bg-2: #f9fafb;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.app {
  width: 100%;
  max-width: 420px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: #fff;
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 460px) {
  .app { box-shadow: 0 0 0 1px var(--line); }
}

/* ---------- card ---------- */
.card-head {
  display: flex; align-items: center; gap: 12px;
  padding: calc(36px + env(safe-area-inset-top)) 24px 0;
}
.avatar {
  flex: none; width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--accent), var(--accent-deep));
  color: #fff; font-size: 18px; font-weight: 800;
}
.who { font-size: 18px; font-weight: 800; line-height: 1.25; }
.who-title { font-size: 14px; font-weight: 600; color: var(--muted); }
.company { margin-top: 2px; font-size: 13px; color: var(--muted); }

.card-body { padding: 14px 20px 0; display: flex; flex-direction: column; gap: 14px; }

.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  box-shadow: 0 14px 24px -12px rgba(49, 130, 246, 0.55);
  animation: cta-pulse 2.4s ease-in-out infinite;
}
.cta:hover { filter: brightness(1.05); }
.cta-text { display: flex; flex-direction: column; gap: 8px; }
.cta-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #eaf1ff; }
.badge { padding: 3px 8px; border-radius: 8px; background: #fff; color: var(--accent-deep); font-size: 11px; font-weight: 800; }
.cta-title { font-size: 20px; font-weight: 800; line-height: 1.32; }
.cta-arrow { flex: none; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); display: grid; place-items: center; }
.cta-flat { animation: none; justify-content: center; width: 100%; padding: 17px; border-radius: 16px; }
.cta-flat .cta-title { font-size: 16px; line-height: 1.2; }

@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 14px 24px -12px rgba(49, 130, 246, 0.55); transform: scale(1); }
  50% { box-shadow: 0 18px 32px -10px rgba(49, 130, 246, 0.85); transform: scale(1.012); }
}
@media (prefers-reduced-motion: reduce) {
  .cta { animation: none; }
}

.tiles { display: flex; gap: 10px; }
.tile {
  flex: 1; height: 92px; border-radius: 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; font-weight: 700;
}
.tile:hover { filter: brightness(0.97); }
.tile-ig { background: linear-gradient(45deg, #e8590c 0%, #d62976 50%, #8a3ab9 100%); color: #fff; }
.tile-kakao { background: #fee500; color: #3c1e1e; }

.rows { display: flex; flex-direction: column; gap: 4px; }
.row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; min-height: 48px; border-radius: 12px; color: var(--ink-3); }
a.row:hover { background: var(--bg); }
.row-ic { flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--bg); color: var(--muted); display: grid; place-items: center; }
.row-label { flex: none; width: 52px; font-size: 11px; color: var(--muted); }
.row-value { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }

.foot { margin-top: auto; padding: 24px 20px 20px; text-align: center; font-size: 12px; font-weight: 500; color: var(--muted); }

/* ---------- survey ---------- */
.app-survey { height: 100vh; height: 100dvh; }
.s-top { display: flex; justify-content: space-between; align-items: center; padding: calc(14px + env(safe-area-inset-top)) 20px 0; }
.s-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 600; color: var(--muted); }
.s-tag { font-size: 12px; font-weight: 600; color: var(--muted); }
.s-progress { display: flex; align-items: center; gap: 6px; padding: 0 20px 0 12px; }
.s-back { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; padding: 0; color: var(--ink-3); }
.s-back:disabled { color: var(--line); cursor: default; }
.bar { flex: 1; height: 6px; border-radius: 3px; background: var(--bg); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); transition: width 0.3s; }
.count { flex: none; font-size: 12px; font-weight: 700; color: var(--muted); }

.s-body { flex: 1; overflow-y: auto; padding: 24px 20px 20px; }
.q { font-size: 21px; font-weight: 800; line-height: 1.4; letter-spacing: -0.01em; outline: none; }
.q-sub { margin: 6px 0 22px; font-size: 13px; color: var(--muted); }

.opts { display: flex; flex-direction: column; gap: 10px; }
.opt-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 15px 16px; min-height: 52px;
  border: 1px solid var(--line); border-radius: 16px; background: #fff;
  font-size: 14px; font-weight: 600; color: var(--ink-2); text-align: left;
}
.opt-btn:hover { background: var(--bg-2); }
.opt-btn.is-on { background: var(--tint); border-color: var(--accent); color: var(--accent-deep); }
.dot { flex: none; width: 20px; height: 20px; margin-left: 12px; border: 1px solid #b0b8c1; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.is-on .dot { background: var(--accent); border-color: var(--accent); }

.more { margin-top: 6px; min-height: 44px; border: 0; background: none; padding: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.ta, .input {
  width: 100%; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2);
  padding: 14px 16px; font: inherit; font-size: 16px; color: var(--ink);
}
.ta { min-height: 90px; resize: none; }
.ta-lg { min-height: 130px; }
.ta:focus, .input:focus { outline: none; border-color: var(--accent); background: #fff; }

.field { margin-top: 18px; }
.field-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.opt { font-weight: 500; color: var(--muted); }
.req { font-weight: 600; color: var(--accent-deep); }
.error-inline { margin-top: 8px; font-size: 12px; font-weight: 600; color: #d92d20; }
.error-inline[hidden] { display: none; }
.hint { margin-top: 8px; font-size: 12px; line-height: 1.5; color: var(--muted); }

.consent { margin-top: 20px; padding: 14px 16px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid #b0b8c1; background: #fff; display: grid; place-items: center; color: transparent; }
.check input:checked + .check-box { background: var(--accent); border-color: var(--accent); color: #fff; }
.check input:focus-visible + .check-box { outline: 3px solid var(--accent); outline-offset: 2px; }
.consent-detail { margin-top: 4px; font-size: 12px; color: var(--ink-3); }
.consent-detail summary { min-height: 32px; cursor: pointer; color: var(--muted); }
.consent-detail dl { display: grid; gap: 4px; padding-top: 6px; line-height: 1.5; }
.consent-detail dt { font-weight: 700; margin-top: 6px; }
.error { margin-top: 14px; font-size: 13px; font-weight: 600; color: #d92d20; }

.s-foot { flex: none; padding: 12px 20px 22px; }
.next {
  width: 100%; height: 54px; border: 0; border-radius: 16px;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep)); color: #fff;
  font-size: 16px; font-weight: 800;
  box-shadow: 0 10px 20px -8px rgba(49, 130, 246, 0.4);
}
.next:disabled { background: var(--line); color: var(--muted); box-shadow: none; cursor: not-allowed; }

.done { flex: 1; overflow-y: auto; display: flex; flex-direction: column; align-items: center; gap: 0; padding: calc(28px + env(safe-area-inset-top)) 24px 32px; text-align: center; }
.done-ic { width: 52px; height: 52px; margin-bottom: 16px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, var(--accent), var(--accent-deep)); box-shadow: 0 16px 28px -12px rgba(49, 130, 246, 0.45); }
.done h1 { margin-bottom: 8px; font-size: 20px; font-weight: 800; outline: none; }
.done > p { margin-bottom: 22px; font-size: 14px; line-height: 1.6; color: var(--ink-3); }
.done .s-link { margin-top: 12px; }

/* ---------- landing / admin ---------- */
.landing { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 40px 28px; text-align: center; }
.landing .avatar { width: 64px; height: 64px; border-radius: 20px; font-size: 24px; }
.landing h1 { font-size: 24px; font-weight: 800; line-height: 1.4; letter-spacing: -0.02em; }
.landing-sub { font-size: 14px; line-height: 1.7; color: var(--ink-3); margin-bottom: 10px; }
.landing .cta-flat { max-width: 320px; }

.a-head { padding: calc(14px + env(safe-area-inset-top)) 20px 0; }
.a-head h1 { margin-top: 4px; font-size: 22px; font-weight: 800; }
.a-body { padding: 16px 20px 40px; display: flex; flex-direction: column; gap: 14px; }
.panel { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.panel-h { font-size: 16px; font-weight: 800; margin: 0 0 4px; }
.panel-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel .field { margin-top: 10px; }
.panel .hint { margin-top: 6px; }
.notice { padding: 12px 14px; border-radius: 14px; background: var(--tint); color: var(--accent-deep); font-size: 13px; font-weight: 600; line-height: 1.5; }
.notice a { text-decoration: underline; }
.ok { margin-top: 8px; font-size: 13px; font-weight: 600; color: #067647; }

.a-head-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.guide-btn {
  display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--tint); color: var(--accent-deep); font-size: 13px; font-weight: 800;
}
.guide-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 14px 16px; border-radius: 16px;
  background: var(--tint); color: var(--accent-deep); font-size: 14px; text-align: left; line-height: 1.4;
}
.link-btn { padding: 0; background: none; color: var(--accent); font: inherit; font-weight: 700; text-decoration: underline; }

.guide-dlg {
  width: min(560px, 100vw); max-width: 100vw; height: min(88vh, 900px); max-height: 100dvh; padding: 0; border: 0; border-radius: 20px;
  display: flex; flex-direction: column; overflow: hidden; background: #fff; color: var(--ink);
}
.guide-dlg:not([open]) { display: none; }
.guide-dlg::backdrop { background: rgba(15, 23, 42, 0.55); }
@media (max-width: 600px) { .guide-dlg { height: 100dvh; border-radius: 0; } }
.guide-btn, .guide-cta, .guide-x, .link-btn, .g-toc button, .g-jump { border: 0; }
.guide-top { flex: none; border-bottom: 1px solid var(--line); background: #fff; }
.guide-title { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 8px; }
.guide-title h2 { margin: 0; font-size: 18px; font-weight: 800; }
.guide-x { min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--bg); color: var(--ink-2); font-size: 13px; font-weight: 700; }
.g-toc { display: flex; gap: 6px; overflow-x: auto; padding: 0 18px 12px; scrollbar-width: none; }
.g-toc::-webkit-scrollbar { display: none; }
.g-toc button { flex: none; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--bg); color: var(--ink-2); font-size: 12.5px; font-weight: 700; }
.guide-dlg .guide-body { flex: 1; overflow-y: auto; padding: 14px 18px 40px; -webkit-overflow-scrolling: touch; scroll-padding-top: 8px; }
.guide-body { font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.guide-body:focus { outline: none; }
.guide-body p { margin: 0; }
.guide-body p + p { margin-top: 8px; }
.guide-body code { font-size: 12.5px; padding: 1px 6px; border-radius: 6px; background: var(--bg); color: var(--ink); word-break: break-all; }
.guide-body em { font-style: normal; color: #d92d20; font-weight: 800; }

.k { display: inline-block; padding: 0 7px; margin: 0 1px; border: 1px solid #d0d5dd; border-bottom-width: 2px; border-radius: 7px; background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 700; line-height: 1.6; white-space: nowrap; vertical-align: 1px; }
.g-jump { padding: 0; background: none; color: var(--accent); font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

.g-start { padding: 14px 16px; border-radius: 16px; background: var(--tint); color: var(--ink); }
.g-start > b { font-size: 15px; }
.g-start ol { margin: 8px 0 0; padding-left: 22px; list-style: decimal; }
.g-start li { margin-top: 6px; }

.g-sec { margin-top: 26px; padding-top: 22px; border-top: 8px solid var(--bg); scroll-margin-top: 4px; }
.g-sec h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 17px; font-weight: 800; color: var(--ink); }
.g-no { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 800; }
.g-tip, .g-warn { margin-top: 10px !important; padding: 10px 12px 10px 38px; border-radius: 12px; position: relative; font-size: 13.5px; }
.g-tip { background: #eef4ff; color: #1e3a8a; }
.g-warn { background: #fff4e5; color: #7a4100; }
.g-tip::before, .g-warn::before { position: absolute; left: 12px; top: 10px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 900; color: #fff; }
.g-tip::before { content: "i"; background: var(--accent); }
.g-warn::before { content: "!"; background: #f79009; }
.g-must { padding: 14px 16px; border-radius: 14px; background: #fef3f2; border: 2px solid #fda29b; color: #7a271a; }
.g-must > b { color: #d92d20; font-size: 15px; }
.g-must ul { margin: 8px 0 0; padding-left: 18px; list-style: disc; }
.g-steps { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: gk; }
.g-steps li { position: relative; padding: 10px 0 10px 38px; counter-increment: gk; border-bottom: 1px dashed var(--line); }
.g-steps li:last-child { border-bottom: 0; }
.g-steps li::before { content: counter(gk); position: absolute; left: 0; top: 10px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 13px; font-weight: 800; }
.g-sub { font-size: 12.5px; color: var(--muted); }
.g-way { margin: 16px 0 6px; font-size: 15px; color: var(--ink); }
.g-example { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--bg); font-size: 13px; }
.g-note { margin-top: 18px !important; font-size: 12.5px; color: var(--muted); }
.g-swipe { margin-top: 2px !important; font-size: 12px; color: var(--muted); text-align: right; }
.g-faq { border-bottom: 1px solid var(--line); }
.g-faq summary { cursor: pointer; list-style: none; position: relative; padding: 13px 28px 13px 0; font-weight: 700; color: var(--ink); }
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary::after { content: "+"; position: absolute; right: 4px; top: 11px; font-size: 18px; color: var(--muted); }
.g-faq[open] summary::after { content: "−"; }
.g-faq p { padding: 0 0 14px; }

/* 카카오톡·인스타 예시 폰 화면 (단순화한 그림) */
.ph-row { display: flex; gap: 10px; overflow-x: auto; padding: 12px 2px 6px; scroll-snap-type: x mandatory; }
.ph { flex: none; width: 152px; margin: 0; scroll-snap-align: start; }
.ph-frame { position: relative; height: 262px; border: 6px solid #1f2937; border-radius: 24px; background: #fff; overflow: hidden; font-size: 10.5px; color: var(--ink); }
.ph figcaption { margin-top: 8px; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.ph figcaption .k { font-size: 11.5px; }
.ph-no { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 4px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; vertical-align: 1px; }
.ph-bar { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 10px 10px 8px; border-bottom: 1px solid var(--line); font-size: 11px; }
.ph-bar b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ph-icons { display: flex; align-items: center; gap: 5px; }
.ph-rows { padding: 8px 10px; }
.ph-rows i { display: block; height: 22px; margin-bottom: 7px; border-radius: 6px; background: var(--bg); }
.ph-tabs { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: 7px 4px; border-top: 1px solid var(--line); background: #fff; font-size: 9.5px; color: var(--muted); }
.ph-tabs .on { color: var(--ink); font-weight: 800; }
.ph-sheet { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 4px; padding: 12px 10px 16px; border-radius: 14px 14px 0 0; background: #fff; box-shadow: 0 -8px 20px rgba(0,0,0,0.12); }
.ph-sheet span { display: block; padding: 7px 8px; font-size: 11px; font-weight: 600; }
.ph-opts { display: flex; flex-direction: column; gap: 6px; padding: 12px 10px; }
.ph-opts span { display: block; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font-weight: 700; }
.ph-name { margin: 4px 10px; padding: 8px; border-radius: 8px; background: var(--bg); font-size: 10px; }
.ph-done { display: block; margin: 10px; padding: 7px; border-radius: 8px; background: #fee500; color: #191919; text-align: center; font-weight: 800; }
.ph-panel { display: flex; flex-direction: column; gap: 8px; padding: 14px 10px; }
.ph-small { font-size: 9.5px; color: var(--muted); }
.ph-btn { display: block; padding: 7px 8px; border-radius: 8px; background: var(--ink); color: #fff; text-align: center; font-weight: 800; }
.ph-form { display: flex; flex-direction: column; gap: 6px; padding: 12px 10px; }
.ph-label { font-weight: 800; }
.ph-input { padding: 8px; border-radius: 8px; background: var(--bg); font-size: 9.5px; word-break: break-all; }
.ph-prof { display: flex; align-items: center; gap: 8px; padding: 10px; }
.ph-av { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--bg); }
.ph-two { display: flex; gap: 6px; padding: 4px 10px; }
.ph-two > span { flex: 1; display: block; padding: 6px 2px; border-radius: 7px; background: var(--bg); text-align: center; font-weight: 700; font-size: 10px; }
.ph-two .ring { flex: 1; }
.ph-two .ring span { display: block; padding: 6px 2px; border-radius: 7px; background: var(--bg); text-align: center; font-weight: 700; font-size: 10px; }
.ph-qr { width: 88px; height: 88px; margin: 14px auto 10px; border-radius: 10px; background: repeating-linear-gradient(45deg, var(--ink) 0 4px, #fff 4px 8px); opacity: 0.85; }
.ring { display: block; border-radius: 9px; box-shadow: 0 0 0 2px #f04438, 0 0 0 5px rgba(240,68,56,0.18); }
.ring.round { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; }
.ph-bar .ring.round { flex: none; }
.guide-shot { display: block; width: 100%; height: auto; margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; }
.guide-steps { margin: 10px 0 0; padding: 0; list-style: none; counter-reset: gs; }
.guide-steps li { position: relative; margin-top: 8px; padding-left: 30px; counter-increment: gs; }
.guide-steps li::before {
  content: counter(gs); position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  background: #f04438; color: #fff; font-size: 12px; font-weight: 800; line-height: 20px; text-align: center;
}
.guide-steps strong { display: block; color: var(--ink); }
.og-mock {
  position: relative; margin-top: 8px; aspect-ratio: 1200 / 630; border-radius: 12px; overflow: hidden;
  padding: 7% 5.3%; display: flex; flex-direction: column; justify-content: space-between; color: #fff;
  background: linear-gradient(173deg, #0365db 0%, #0a3fb0 46%, #09218b 100%);
}
.og-logo { font-size: 11px; font-weight: 900; letter-spacing: 0.02em; }
.og-name { font-size: 30px; font-weight: 800; letter-spacing: 0.12em; line-height: 1; margin-top: auto; }
.og-sub { font-size: 11px; color: #cfe0ff; margin: 6px 0 auto 4px; }
.og-phone { display: flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 800; }
.og-phone i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: rgba(255,255,255,0.16); }

.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 18px; border: 0; border-radius: 14px;
  font-size: 15px; font-weight: 800;
}
.btn-primary { margin-top: 14px; background: linear-gradient(180deg, var(--accent), var(--accent-deep)); color: #fff; box-shadow: 0 10px 20px -8px rgba(49, 130, 246, 0.4); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { background: var(--bg); color: var(--ink-2); font-weight: 700; font-size: 14px; }
.btn-ghost:hover { background: #ebedf0; }
.btn-out { align-self: center; background: none; color: var(--muted); }
.btn-row { display: flex; gap: 8px; margin-top: 8px; }
.btn-row .btn-ghost { flex: 1; }
.linkbox { display: flex; gap: 8px; }
.linkbox .input { font-size: 13px; }

.resp-list { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.resp { border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.resp summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 8px 14px; cursor: pointer; }
.resp-who { font-weight: 700; }
.resp-when { font-size: 12px; color: var(--muted); }
.resp-tel { padding: 0 14px 6px; font-weight: 700; color: var(--accent-deep); }
.resp dl { padding: 0 14px 12px; font-size: 13px; line-height: 1.5; }
.resp dt { margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
.resp dd { white-space: pre-wrap; overflow-wrap: anywhere; }


/* ---------- 추천 결과 ---------- */
.result { width: 100%; margin-bottom: 20px; padding: 18px 16px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg-2); text-align: left; }
.result-h { font-size: 17px; font-weight: 800; }
.result-sub { margin-top: 2px; font-size: 12px; color: var(--muted); }
.rec-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.rec { display: flex; gap: 12px; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.rec:first-child { border-color: var(--accent); background: var(--tint); }
.rec-rank { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.rec-name { font-size: 15px; font-weight: 800; line-height: 1.35; }
.rec-why { margin-top: 6px; display: flex; flex-direction: column; gap: 4px; }
.rec-why li { position: relative; padding-left: 12px; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.rec-why li::before { content: ""; position: absolute; left: 0; top: 8px; width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.result-notes { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.result-notes li { padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.disclaimer { margin-top: 12px; font-size: 11.5px; line-height: 1.6; color: var(--muted); }


/* ---------- 문서(개인정보처리방침) ---------- */
.foot-link { text-decoration: underline; }
.doc { padding: 12px 20px 48px; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; line-height: 1.75; color: var(--ink-2); }
.doc h2 { margin-top: 18px; font-size: 15px; font-weight: 800; color: var(--ink); }
.doc ul { display: flex; flex-direction: column; gap: 6px; padding-left: 18px; list-style: disc; }
.doc a { color: var(--accent-deep); text-decoration: underline; overflow-wrap: anywhere; }
.doc-meta { font-size: 12px; color: var(--muted); }

/* ---------- 받은 설문 목록 (이름 우선, 클릭해서 상세) ---------- */
.app-admin { max-width: 640px; }
.pending { margin-left: 6px; padding: 2px 9px; border-radius: 999px; background: #fff1f0; color: #d92d20; font-size: 12px; font-weight: 800; vertical-align: middle; }
.rs-search { margin-top: 10px; }
.chips { display: flex; gap: 8px; margin: 10px 0 4px; flex-wrap: wrap; }
.chip { min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.chip b { margin-left: 4px; color: var(--muted); font-weight: 800; }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-on b { color: #cbd5e1; }

.rs-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.rs { border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; }
.rs.is-open { border-color: var(--accent); box-shadow: 0 8px 24px -14px rgba(49, 130, 246, 0.5); }
.rs.is-done .rs-name { color: var(--muted); }
.rs.is-done .rs-av { background: #e5e8eb; color: var(--muted); }
.rs-btn { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border: 0; background: none; text-align: left; }
.rs-btn:hover { background: var(--bg-2); }
.rs-av { flex: none; width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(160deg, var(--accent), var(--accent-deep)); color: #fff; font-size: 16px; font-weight: 800; }
.rs-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rs-l1 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rs-name { font-size: 17px; font-weight: 800; color: var(--ink); }
.rs-l2 { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.rs-tag { padding: 2px 8px; border-radius: 7px; font-size: 11.5px; font-weight: 800; color: #fff; }
.rs-tag-premium { background: #0e7c86; }
.rs-tag-coverage { background: var(--accent); }
.rs-new { padding: 2px 7px; border-radius: 7px; background: #fff1f0; color: #d92d20; font-size: 11px; font-weight: 900; }
.rs-done { padding: 2px 8px; border-radius: 7px; background: #e6f7ee; color: #067647; font-size: 11.5px; font-weight: 800; }
.rs-chev { flex: none; color: var(--muted); display: grid; }

.rs-detail { padding: 4px 14px 16px; border-top: 1px solid var(--line); background: var(--bg-2); }
.rs-actions { display: flex; gap: 6px; flex-wrap: wrap; padding: 12px 0 4px; }
.rs-actions .btn-ghost { min-height: 42px; padding: 0 14px; font-size: 13.5px; background: #fff; border: 1px solid var(--line); }
.btn-call { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border-radius: 14px; background: linear-gradient(180deg, var(--accent), var(--accent-deep)); color: #fff; font-size: 14px; font-weight: 800; }
.rs-sec { margin-top: 12px; }
.rs-sec h4 { margin: 0 0 6px; font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: 0.02em; }
.rs-pre { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--tint); border: 1px solid #cfe0ff; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 13px; line-height: 1.65; color: var(--ink-2); }
.rs-text { font-size: 13.5px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); }
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 8px 10px; font-size: 13.5px; line-height: 1.5; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }

/* ---------- 에즈금융서비스 테마 (파랑 그라데이션 + 로고) ---------- */
.app.theme-az {
  color: #fff;
  background:
    radial-gradient(420px 320px at 100% 0%, rgba(101, 149, 238, 0.65), transparent 65%),
    radial-gradient(380px 300px at 0% 100%, rgba(3, 101, 219, 0.55), transparent 65%),
    linear-gradient(173deg, #0365db 0%, #0a3fb0 42%, #09218b 100%);
}
.az-head { padding: calc(30px + env(safe-area-inset-top)) 24px 0; }
.az-brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.az-logo { height: 24px; width: auto; display: block; }
.az-pill { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.3); font-size: 12px; font-weight: 700; }
.az-who { margin-top: 30px; }
.az-av { width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; background: #fff; color: #0365db; font-size: 25px; font-weight: 800; box-shadow: 0 12px 26px -10px rgba(0, 0, 0, 0.45); }
.az-name { margin-top: 16px; font-size: 34px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.15; }
.az-title { margin-top: 6px; font-size: 15px; font-weight: 500; color: #d6e5ff; }

.theme-az .card-body { padding-top: 24px; }
.theme-az .cta { background: #fff; color: #09218b; box-shadow: 0 26px 46px -18px rgba(0, 0, 0, 0.55); animation: cta-pulse-az 2.4s ease-in-out infinite; }
.theme-az .cta:hover { filter: none; }
.theme-az .cta-meta { color: #4a5f8f; }
.theme-az .badge { background: #0365db; color: #fff; }
.theme-az .cta-arrow { background: linear-gradient(135deg, #0365db, #09218b); color: #fff; }
.theme-az .rows { padding: 6px; border-radius: 22px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.25); }
.theme-az .row { color: #fff; }
.theme-az a.row:hover { background: rgba(255, 255, 255, 0.1); }
.theme-az .row-ic { background: rgba(255, 255, 255, 0.18); color: #fff; }
.theme-az .row-label { color: #bcd2fb; }
.theme-az .foot { color: #a9c3f5; }

@keyframes cta-pulse-az {
  0%, 100% { box-shadow: 0 26px 46px -18px rgba(0, 0, 0, 0.55), 0 0 0 0 rgba(255, 255, 255, 0.35); transform: translateY(0) scale(1); }
  50% { box-shadow: 0 34px 54px -14px rgba(0, 0, 0, 0.62), 0 0 0 12px rgba(255, 255, 255, 0); transform: translateY(-4px) scale(1.02); }
}
@media (prefers-reduced-motion: reduce) {
  .theme-az .cta { animation: none; }
}
