/* =================================================================
   SNS 마법사 (sns) — 공용 ui.css 위에 덮어쓴다. venture·초코택스와 같은 색·글꼴.
   원칙: 큰 글씨, 장식 없이, 똑바로. 폰에서는 위에서 아래로, PC 에서는 카드 2~4개씩.
   ================================================================= */
:root {
  --bg: #F6F7FB; --paper: #FFFFFF; --line: #E3E0EC;
  --ink: #2B2730; --ink-2: #4F4A5A; --ink-3: #7A7588;
  --pink: #FFD9E6;   --pink-ink: #B33C68;
  --mint: #D6F3E8;   --mint-ink: #1F7A5F;
  --lav: #E7E1FF;    --lav-ink: #5B47B8;
  --peach: #FFE6D3;  --peach-ink: #A65A1E;
  --sky: #DDEBFF;    --sky-ink: #2F61B5;
  --yellow: #FFF1C7; --yellow-ink: #8A6400;
  --grey: #ECEBF1;   --grey-ink: #3B3744;
  --site: var(--sky); --site-ink: var(--sky-ink);
  --radius: 20px;
  --shadow: 0 1px 2px rgba(43, 39, 48, .05), 0 8px 24px -14px rgba(43, 39, 48, .18);
  --f-title: 'Pretendard Variable', Pretendard, 'Noto Sans KR', sans-serif;
  --f-body: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
}
body { background: var(--bg); background-image: none; font-size: 17px; }
.top { background: rgba(246, 247, 251, .94); border-bottom: 1px solid var(--line); }
.top .wrap { height: 64px; }
.top .jump.wrap { height: auto; }
.brand img { border: 0; border-radius: 12px; background: transparent; }
.brand { color: var(--ink); }
.brand b { font-family: var(--f-title); font-weight: 800; font-size: 23px; letter-spacing: -.02em; }
h1, h2, h3 { font-family: var(--f-title); letter-spacing: -.025em; margin: 0; }
a { color: var(--sky-ink); }
.pill { font-size: 16px; padding: 11px 18px; }
.pill.big { padding: 15px 28px; font-size: 18px; }
.pill-ghost { background: #fff; color: var(--ink-2); }
.pill-sm { padding: 8px 14px; font-size: 15px; }
.pill-xs { padding: 4px 11px; font-size: 13.5px; }
.card { border: 1px solid var(--line); box-shadow: var(--shadow); }
.pad { padding: 18px 20px; }
.sub { color: var(--ink-2); margin: 8px 0 18px; }
.hint { font-size: 15px; color: var(--ink-3); margin: 8px 0; }
.note { font-size: 15.5px; margin: 12px 0; background: #fff; border: 1px solid var(--line); }
.note.warn { border-color: transparent; }
.note.full { grid-column: 1 / -1; }
.spacer { flex: 1; }
.linkbtn { border: 0; background: none; color: var(--sky-ink); font-weight: 700; text-decoration: underline; cursor: pointer; padding: 0; }
.input.sm { padding: 6px 10px; font-size: 14px; border-radius: 10px; }
.field .input, .field textarea { font-size: 16px; }

.jump { display: flex; gap: 2px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.jump a { padding: 8px 14px; border-radius: 12px; text-decoration: none; font-size: 16px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.jump a:hover { background: #fff; color: var(--ink); }
.jump a.on { background: var(--ink); color: #fff; }

#main { padding-top: 24px; padding-bottom: 80px; min-height: 60vh; }
.hero { padding: 40px 0; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; }
.page-title { font-size: clamp(26px, 3.2vw, 34px); font-weight: 800; margin-bottom: 16px; }
.page-title small, h2 small, h3 small { font-size: .58em; color: var(--ink-3); font-weight: 700; margin-left: 6px; letter-spacing: 0; }
.bar { display: flex; align-items: center; gap: 8px; margin: 10px 0; }
.wrap-ok { flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.chip { font-size: 15px; padding: 7px 14px; }
.chip.sm { font-size: 13.5px; padding: 5px 11px; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tag { font-size: 13px; background: var(--bg); }
.tag.done { background: var(--mint); color: var(--mint-ink); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }

/* ---------- 단계 ---------- */
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 16px; }
.step h2, .sec h2 { font-size: 22px; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 17px; flex: none; }
.sec { margin-bottom: 16px; }
.sec h3 { font-size: 18px; margin: 18px 0 8px; }

/* ① SNS 켜기 */
.chs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.chs.small { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chs.small .chip { text-decoration: none; color: var(--ink-2); }
.ch-chip { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left;
  border: 2px solid var(--line); background: #fff; border-radius: 16px; padding: 10px 12px; cursor: pointer; font: inherit; color: var(--ink-3); opacity: .75; }
.ch-chip .ci { grid-row: span 2; font-size: 26px; filter: grayscale(1); }
.ch-chip b { font-size: 16px; color: var(--ink-2); }
.ch-chip small { font-size: 12.5px; line-height: 1.35; }
.ch-chip[aria-pressed="true"] { opacity: 1; border-color: var(--ink); background: var(--c-bg, #fff); color: var(--ink-2); box-shadow: var(--shadow); }
.ch-chip[aria-pressed="true"] .ci { filter: none; }
.ch-chip[aria-pressed="true"] b { color: var(--ink); }
.c-pink { --c-bg: var(--pink); --c-ink: var(--pink-ink); }
.c-mint { --c-bg: var(--mint); --c-ink: var(--mint-ink); }
.c-sky { --c-bg: var(--sky); --c-ink: var(--sky-ink); }
.c-yellow { --c-bg: var(--yellow); --c-ink: var(--yellow-ink); }
.c-peach { --c-bg: var(--peach); --c-ink: var(--peach-ink); }
.c-ink { --c-bg: var(--grey); --c-ink: var(--grey-ink); }

/* ② 알릴 것 */
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.pgrid.one { grid-template-columns: 1fr; }
.pgrid .wide { grid-column: 1 / -1; }
.field.narrow { max-width: 360px; }
.field.inline { margin: 0; display: flex; align-items: center; gap: 8px; }
.field.inline > span { margin: 0; white-space: nowrap; }
.field > span { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.field .src { display: none; font-style: normal; font-size: 12px; background: var(--lav); color: var(--lav-ink); padding: 1px 8px; border-radius: 999px; }
.field.from-docs .src { display: inline; }
.field.ai-filled .input { border-color: var(--lav-ink); box-shadow: 0 0 0 3px var(--lav); }
.cnt { font-style: normal; font-size: 12.5px; color: var(--ink-3); margin-left: auto; }
.cnt.over { color: var(--err); font-weight: 700; }
.meetrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; background: var(--lav); border-radius: 14px; padding: 10px 12px; }
.meetrow .hint { margin: 0; color: var(--lav-ink); }

/* ③ 그림 */
.tabs { display: flex; gap: 4px; background: var(--bg); padding: 4px; border-radius: 14px; margin-bottom: 12px; overflow-x: auto; }
.tab { flex: 1; border: 0; background: none; padding: 10px 12px; border-radius: 10px; font-weight: 700; color: var(--ink-3); cursor: pointer; white-space: nowrap; font-size: 15.5px; }
.tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(36, 31, 26, .12); }
.pgal { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pg { position: relative; display: flex; flex-direction: column; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; cursor: pointer; }
.pg input { position: absolute; top: 8px; left: 8px; width: 22px; height: 22px; accent-color: var(--ink); }
.pg img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--bg); }
.pg span { padding: 6px 9px; display: flex; flex-direction: column; min-width: 0; }
.pg b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg small { font-size: 12.5px; color: var(--ink-3); }
.pg.on { border-color: var(--ink); box-shadow: var(--shadow); }
img.broken { opacity: .3; min-height: 60px; }
.picked-h { font-size: 17px; margin: 16px 0 8px; }
.picked { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.pk { position: relative; flex: none; width: 118px; background: var(--bg); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.pk img { width: 118px; height: 118px; object-fit: cover; }
.pk-n { position: absolute; top: 6px; left: 6px; background: var(--ink); color: #fff; font-size: 13px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.pk-t { font-size: 12.5px; padding: 4px 6px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-b { display: flex; justify-content: space-between; padding: 4px; }
.pk-b button { border: 0; background: #fff; border-radius: 8px; padding: 4px 8px; cursor: pointer; font-size: 13px; }
.pk-b button:disabled { opacity: .3; cursor: default; }

.gobar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 20px; }
.gobar .note { margin: 0; }

/* ④ 질문 */
.known { background: var(--mint); color: var(--mint-ink); padding: 10px 14px; border-radius: 12px; font-weight: 700; }
.qs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.q { background: var(--bg); border-radius: 14px; padding: 12px 14px; }
.q b { display: block; margin-bottom: 6px; }
.q .input { margin-top: 4px; }

/* ⑤ 결과 */
.outbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 12px; }
.outbar h2 { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 3px; }
.seg button { border: 0; background: none; padding: 8px 12px; border-radius: 10px; font-weight: 700; color: var(--ink-3); cursor: pointer; font-size: 15px; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; align-items: start; }
@media (min-width: 1500px) { .cards { grid-template-columns: repeat(4, 1fr); } }

.snscard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.sc-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--c-bg, var(--bg)); flex-wrap: wrap; }
.sc-ico { font-size: 24px; }
.sc-head b { font-size: 18px; }
.sc-auto { font-size: 12.5px; color: var(--c-ink, var(--ink-3)); margin-left: auto; font-weight: 700; }
.sc-posted { font-size: 13px; background: var(--ink); color: #fff; padding: 2px 9px; border-radius: 999px; }
.sc-acts { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px 0; position: sticky; top: 0; }
.sc-tip { font-size: 13.5px; color: var(--ink-3); margin: 6px 16px 10px; }

.mock { margin: 0 16px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; font-size: 15px; }
.m-who { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.m-who .av { width: 30px; height: 30px; border-radius: 50%; background: var(--c-bg, var(--bg)); border: 2px solid var(--c-ink, var(--line)); }
.m-who b { font-size: 14.5px; }
.m-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slide { position: relative; flex: none; width: 100%; scroll-snap-align: center; background: var(--bg); display: grid; place-items: center; overflow: hidden; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.sl-tools { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; gap: 4px; align-items: center; }
.sl-btn { border: 0; background: rgba(43, 39, 48, .78); color: #fff; font-size: 12.5px; font-weight: 700; padding: 5px 9px; border-radius: 9px; cursor: pointer; }
.sl-n { margin-left: auto; background: rgba(255, 255, 255, .9); font-size: 12px; border-radius: 9px; padding: 3px 8px; }
.sl-err { font-size: 13px; color: var(--ink-3); text-align: center; padding: 10px; }
.ph-load { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--ink-3); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.m-dots { display: flex; justify-content: center; gap: 4px; padding: 6px; }
.m-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.m-dots i.on { background: var(--sky-ink); }
.m-title { font-weight: 800; padding: 8px 12px 0; }
.m-title:empty, .m-tags:empty { display: none; }
.m-text { padding: 8px 12px; white-space: pre-wrap; line-height: 1.55; }
.m-text .more { border: 0; background: none; color: var(--ink-3); cursor: pointer; padding: 0 0 0 4px; font: inherit; }
.m-tags { padding: 0 12px 10px; color: var(--sky-ink); font-size: 14px; }
.m-blog { padding: 14px; }
.m-blog .m-title { font-size: 20px; padding: 0; line-height: 1.35; }
.m-by { font-size: 13px; color: var(--ink-3); border-bottom: 1px solid var(--line); padding: 6px 0 10px; margin-bottom: 10px; }
.m-body p { margin: 0 0 4px; }
.m-body p.gap { height: 8px; }
.m-body h4 { font-size: 16px; margin: 14px 0 6px; }
.m-body .slide { margin: 8px 0; border-radius: 8px; }
.m-blog .m-tags { padding: 10px 0 0; }
.m-vert { position: relative; background: #111; color: #fff; max-height: 560px; margin: 0 auto; }
.m-vert .slide.full { position: absolute; inset: 0; width: 100%; height: 100%; }
.m-over { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 12px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
.m-over .m-title { padding: 0; }
.m-over p { margin: 4px 0 0; white-space: pre-wrap; font-size: 14px; max-height: 6.5em; overflow: hidden; }
.m-over .m-tags { padding: 0; color: #cfe0ff; }
.m-empty { position: absolute; inset: 0; display: grid; place-items: center; color: #aaa; }

.sc-fields { padding: 12px 16px 0; display: flex; flex-direction: column; gap: 10px; }
.sf-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.sf-head b { font-size: 14.5px; color: var(--ink-2); }
.sf textarea.input { min-height: 90px; }
.sf .input { width: 100%; font-size: 15.5px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; resize: vertical; line-height: 1.55; }
.sc-redo { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; padding: 10px 16px 0; }
.sc-redo .hint { margin: 0 4px 0 0; font-size: 13.5px; }
.sc-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 12px 16px 16px; }

/* ---------- 가입 도우미 ---------- */
.c-pink-soft, .c-mint-soft, .c-sky-soft, .c-yellow-soft, .c-peach-soft, .c-ink-soft { border-top: 6px solid var(--c-ink, var(--line)); }
.c-pink-soft { --c-ink: var(--pink-ink); } .c-mint-soft { --c-ink: var(--mint-ink); } .c-sky-soft { --c-ink: var(--sky-ink); }
.c-yellow-soft { --c-ink: var(--yellow-ink); } .c-peach-soft { --c-ink: var(--peach-ink); } .c-ink-soft { --c-ink: var(--grey-ink); }
.srows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.srow { display: flex; align-items: center; gap: 12px; background: var(--bg); border-radius: 14px; padding: 12px 14px; }
.srow .n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.rmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rmain > b { font-size: 15px; color: var(--ink-2); }
.rnote { color: var(--ink-3); font-size: 13.5px; }
.rval { background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 10px; white-space: pre-wrap; max-height: 9em; overflow: auto; font-size: 16px; }
.rval.empty { color: var(--ink-3); background: transparent; border-style: dashed; }
.rimg { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rimg img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; background: #fff; }
.srow .copy { flex: none; align-self: center; padding: 12px 18px; }
.note-row { background: transparent; border: 1.5px dashed var(--line); }
.tools { margin-bottom: 10px; }

/* ---------- 가게 프로필 ---------- */
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.ph { margin: 0; background: var(--bg); border-radius: 14px; overflow: hidden; }
.ph img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #fff; }
.ph figcaption { display: flex; gap: 4px; padding: 6px; }
.ph select { flex: 1; }
.mini { border: 0; border-radius: 10px; padding: 6px 10px; cursor: pointer; background: #fff; }
.savebar { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 30%); }

/* ---------- 지난 게시물 ---------- */
.plist { display: flex; flex-direction: column; gap: 10px; }
.prow { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.pr-main { flex: 1; min-width: 0; }
.pr-main .hint { margin: 2px 0; display: block; }
.pr-act { display: flex; gap: 6px; flex: none; }

/* ---------- 창·알림·기다림 ---------- */
.dlg { border: 0; border-radius: 22px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: 90vh; box-shadow: var(--shadow); }
.dlg::backdrop { background: rgba(30, 26, 36, .35); }
.dlg-in { padding: 24px; position: relative; }
.dlg h2 { font-size: 21px; margin: 0 40px 12px 0; }
.dlg .x { position: absolute; top: 14px; right: 14px; border: 0; background: var(--bg); width: 36px; height: 36px; border-radius: 50%; font-size: 20px; cursor: pointer; }
.dlg-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
#toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 6px; align-items: center; width: max-content; max-width: calc(100vw - 24px); }
.toast { padding: 11px 16px; border-radius: 14px; font-weight: 700; box-shadow: var(--shadow); font-size: 15px; transition: opacity .3s; }
.toast.ok { background: var(--ink); color: #fff; }
.toast.warn { background: var(--warn-bg); color: var(--warn); }
.toast.err { background: var(--err-bg); color: var(--err); }
.toast.out { opacity: 0; }
.busy { position: fixed; inset: 0; z-index: 150; background: rgba(246, 247, 251, .7); display: grid; place-items: center; }
.busy-in { background: #fff; border-radius: 18px; padding: 20px 26px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; }
.busy-in p { margin: 0; font-weight: 700; }
.spin { width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--ink); animation: spin 1s linear infinite; }

.foot { border-top: 1px solid var(--line); padding: 20px 0; color: var(--ink-3); font-size: 14px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot a { color: inherit; }

@media (max-width: 760px) {
  .wrap { padding: 0 14px; }
  .top .home { display: none; }
  .step { padding: 16px 14px; }
  .pgrid, .qs { grid-template-columns: 1fr; }
  .chs { grid-template-columns: 1fr 1fr; }
  .ch-chip small { display: none; }
  .cards { grid-template-columns: 1fr; }
  .mock { margin: 0 10px; }
  .sc-acts, .sc-fields, .sc-redo, .sc-foot { padding-left: 12px; padding-right: 12px; }
  .srow { flex-wrap: wrap; }
  .srow .copy { width: 100%; }
  .gobar .pill.big { width: 100%; }
  .prow { flex-direction: column; align-items: stretch; }
}
.chs.small .chip.on { color: #fff; }
