/* 앱 화면 구조 v2 — 색·글꼴·둥글기는 theme.css 값만 쓴다 (여기서 직접 색을 쓰지 말 것) */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
/* 아이폰 사파리: 화면 밖으로 삐져나온 게 하나라도 있으면 화면 전체가 넓어져 오른쪽이 잘린다(2026-10-08 유저 아이폰) → 가로 넘침은 잘라 낸다 */
html, body { overflow-x: hidden; overflow-x: clip; max-width: 100%; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
img, video { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
.app { max-width: 520px; margin: 0 auto; min-height: 100dvh; position: relative; }

/* 화면 틀 */
.scr { min-height: 100dvh; padding: calc(12px + var(--safe-t)) 0 calc(110px + var(--safe-b)); }
.scr.tabbed { padding-bottom: calc(var(--tab-h) + 24px + var(--safe-b)); }
.pad { padding-left: 24px; padding-right: 24px; }
.bar { height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px 0 12px; }
.back { width: 40px; height: 40px; display: grid; place-items: center; }
.back i { width: 11px; height: 11px; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); margin-left: 4px; }
.bar .meta { font-size: 14px; font-weight: 600; color: var(--faint); }
.bar .act { font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 8px; }
.prog { padding: 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.prog i { height: 4px; border-radius: 2px; background: var(--line); }
.prog i.on { background: var(--brand); }
.h1 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.35; margin: 0; }
.h1.big { font-size: 26px; line-height: 1.3; }
.desc { font-size: 14px; color: var(--muted); line-height: 1.5; margin: 8px 0 0; }
.sec { display: flex; justify-content: space-between; align-items: baseline; }
.sec b { font-size: 15px; font-weight: 700; }
.sec b.l { font-size: 18px; }
.sec span, .sec button { font-size: 13px; color: var(--faint); font-weight: 600; }
.sec .add { color: var(--brand); font-size: 14px; }
.divider { height: 8px; background: var(--line-2); margin: 20px 0 0; }
.tiny { font-size: 12px; color: var(--faint); }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; } .mt24 { margin-top: 24px; }

/* 버튼 */
.cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--bg); padding: 12px 20px calc(20px + var(--safe-b)); }
.cta .in { max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.btn { height: 56px; border-radius: var(--r-lg); background: var(--brand); color: var(--on-color); font-size: 17px; font-weight: 700; display: flex; align-items: center; justify-content: center; width: 100%; gap: 8px; }
.btn:active { background: var(--brand-strong); }
.btn:disabled { opacity: .4; }
.btn.gray { background: var(--field); color: var(--ink); }
.btn.dark { background: var(--dark); color: var(--on-color); }
.btn.line { background: var(--bg); border: 1px solid var(--line); color: var(--ink); }
.btn.kakao { background: var(--kakao); color: var(--kakao-ink); }
.btn.sm { height: 48px; font-size: 16px; border-radius: var(--r-md); }
.btn.xs { height: 44px; font-size: 14px; font-weight: 600; color: var(--muted); background: none; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.row3 .btn { height: 48px; font-size: 14px; font-weight: 600; border-radius: var(--r-md); }
.link { font-size: 14px; font-weight: 600; color: var(--ink-2); }

/* 입력 */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 13px; font-weight: 600; color: var(--muted); }
.inp { min-height: 48px; width: 100%; border: 0; border-radius: var(--r-md); background: var(--field); padding: 13px 14px; font-size: 15px; line-height: 1.45; color: var(--ink); outline: none; }
textarea.inp { min-height: 88px; resize: none; }
.inp:focus { box-shadow: inset 0 0 0 1.5px var(--brand); }
.inp.filled { box-shadow: inset 0 0 0 1.5px var(--ok); }
.inline { display: flex; gap: 8px; }
.inline .inp { flex: 1; min-width: 0; }
.inline .go { height: 48px; padding: 0 16px; border-radius: var(--r-md); background: var(--dark); color: var(--on-color); font-size: 14px; font-weight: 700; flex: none; }
.ok-msg { font-size: 13px; font-weight: 600; color: var(--ok); }
.warn-msg { font-size: 13px; font-weight: 600; color: var(--warn); }
.err { font-size: 13px; color: var(--danger); min-height: 18px; margin: 4px 0 0; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--field); border-radius: var(--r-md); padding: 4px; gap: 4px; }
.seg button { height: 40px; font-size: 15px; font-weight: 600; color: var(--muted); border-radius: var(--r-sm); }
.seg button.on { background: var(--bg); color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 34px; padding: 0 13px; border-radius: 999px; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; background: var(--field); color: var(--ink-2); }
.chip.on { background: var(--dark); color: var(--on-color); }
.toggle { width: 48px; height: 28px; border-radius: 999px; background: var(--line); position: relative; flex: none; }
.toggle::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); transition: left .15s; }
.toggle.on { background: var(--brand); }
.toggle.on::after { left: 23px; }
.toggle.s { width: 44px; height: 26px; } .toggle.s::after { width: 20px; height: 20px; } .toggle.s.on::after { left: 21px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.check i { width: 18px; height: 18px; border-radius: 5px; background: var(--line); color: var(--on-color); font-size: 11px; font-weight: 800; font-style: normal; display: grid; place-items: center; }
.check.on i { background: var(--brand); }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; height: 34px; }
.stepper button { width: 32px; height: 100%; font-size: 16px; color: var(--ink); }
.stepper button:disabled { color: var(--faint); }
.stepper b { width: 28px; text-align: center; font-size: 14px; }

/* 하단 탭 (홈 · 보관함 · 내 식당) */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--bg); border-top: 1px solid var(--line-2); padding-bottom: var(--safe-b); }
.tabs .in { max-width: 520px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); height: 74px; padding-top: 10px; }
.tabs button { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--hint); }
.tabs button svg { width: 24px; height: 24px; }
.tabs button.on { color: var(--ink); }

/* 로그인 */
.login { min-height: 100dvh; display: flex; flex-direction: column; padding: calc(12px + var(--safe-t)) 0 calc(24px + var(--safe-b)); }
.login .hero { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 28px; padding: 0 24px; }
.collage { display: flex; align-items: center; }
.collage div { border-radius: 16px; background-size: cover; background-position: center; }
.collage .a { width: 110px; height: 196px; transform: rotate(-7deg) translateX(14px); box-shadow: 0 10px 30px rgba(0, 0, 0, .15); }
.collage .b { width: 120px; height: 214px; position: relative; z-index: 1; box-shadow: 0 14px 36px rgba(0, 0, 0, .2); }
.brand { text-align: center; }
.brand-ic { width: 64px; height: 64px; border-radius: 18px; display: block; margin: 0 auto 12px; box-shadow: 0 6px 18px rgba(255,107,107,.3); }
.brand b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.brand span { display: block; font-size: 15px; color: var(--muted); line-height: 1.5; margin-top: 8px; }
.login .btns { padding: 0 20px; display: flex; flex-direction: column; gap: 8px; }

/* 홈 */
.home-top { display: flex; align-items: center; justify-content: space-between; }
.home-top b { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.pill { font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--field); padding: 6px 10px; border-radius: 999px; }
.make-card { margin: 24px 20px 0; border-radius: var(--r-2xl); padding: 22px; height: 300px; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; color: var(--on-color); background-size: cover; background-position: center 60%; background-color: var(--ink-2); width: calc(100% - 40px); text-align: left; }
.make-card b { display: block; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.make-card span { display: block; font-size: 14px; opacity: .92; margin-top: 4px; }
.make-card i { height: 48px; border-radius: var(--r-md); background: var(--brand); font-style: normal; font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.recent { display: flex; gap: 10px; padding: 0 24px; overflow-x: auto; }
.rc { width: 80px; flex: none; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.rc .th { height: 128px; border-radius: var(--r-lg); background: var(--field) center/cover; position: relative; }
.rc .th em { position: absolute; left: 8px; top: 8px; font-size: 11px; font-weight: 700; font-style: normal; background: var(--bg); padding: 3px 7px; border-radius: 6px; }
.rc .th.busy { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: var(--muted); }
.rc b { font-size: 13px; font-weight: 600; line-height: 1.3; }
.rc b.f { color: var(--faint); }
.spin { width: 24px; height: 24px; box-sizing: border-box; border-radius: 50%; border: 2.5px solid var(--brand); border-right-color: var(--brand-faint); animation: spin .9s linear infinite; }
.spin.s { width: 22px; height: 22px; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { padding: 32px 24px; text-align: center; color: var(--faint); font-size: 14px; line-height: 1.6; }

/* 만들기 1/3 사진 */
.mrow { display: flex; gap: 8px; padding: 0 24px; overflow-x: auto; }
.mcard { width: 76px; flex: none; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.mcard .th { height: 96px; border-radius: var(--r-md); background: var(--field) center/cover; position: relative; }
.mcard .th.none { background: repeating-linear-gradient(135deg, var(--line) 0 6px, var(--field) 6px 12px); }
.mcard.on .th { outline: 2.5px solid var(--brand); outline-offset: -2.5px; }
.mcard b { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcard.off b { color: var(--muted); }
.num { position: absolute; right: 5px; top: 5px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: var(--on-color); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.newp { margin: 0 24px 8px; border-radius: var(--r-lg); background: var(--soft); padding: 12px; display: flex; gap: 12px; align-items: center; }
.newp .th { width: 56px; height: 72px; flex: none; border-radius: 10px; background: var(--field) center/cover; position: relative; }
.newp .th .num { width: 18px; height: 18px; font-size: 11px; right: 4px; top: 4px; }
.newp .th.up::after { content: ''; position: absolute; inset: 0; border-radius: 10px; background: rgba(255, 255, 255, .6); }
.newp .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.newp select, .newp .nm { height: 36px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line); padding: 0 10px; font-size: 14px; font-weight: 600; width: 100%; outline: none; }
.newp .x { width: 28px; height: 28px; flex: none; color: var(--faint); font-size: 18px; }
.addp { margin: 0 24px; height: 52px; border-radius: var(--r-lg); border: 1.5px dashed var(--line-dash); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: var(--ink-2); width: calc(100% - 48px); }

/* 만들기 2/3 자막 스타일 */
.styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.st { display: flex; flex-direction: column; gap: 6px; }
.st .pv { position: relative; aspect-ratio: 9/16; border-radius: var(--r-md); background: var(--ink-2) center/cover; overflow: hidden; } /* 실제 영상 엔진으로 만든 4초 미리보기 (tools/preview-clips.mjs) */
.st .pv video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st.on .pv { outline: 2.5px solid var(--brand); outline-offset: 2px; }
.st b { font-size: 12px; font-weight: 600; text-align: center; color: var(--muted); }
.st.on b { font-weight: 700; color: var(--ink); }

/* 만들기 3/3 스폰서 */
/* 3/3 스폰서: 제조사별 한 줄 슬라이드 */
.sprow { display: flex; gap: 8px; overflow-x: auto; padding: 0 24px 4px; scroll-padding: 0 24px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.sprow::-webkit-scrollbar { display: none; }
.sprow .sp { flex: none; width: 104px; scroll-snap-align: start; }
.ppl .ph.on { outline: 2.5px solid var(--brand); outline-offset: -2.5px; }
.ppl .ph .mini { position: absolute; right: 6px; bottom: 6px; height: 34px; width: auto; mix-blend-mode: multiply; border-radius: 4px; }
.sp { border-radius: var(--r-lg); background: var(--field); height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 10px 6px; gap: 6px; text-align: center; }
.sp.none { justify-content: center; font-size: 13px; font-weight: 600; color: var(--muted); }
.sp img { height: 70px; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.sp b { font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sp.on { background: var(--brand-soft); outline: 2px solid var(--brand); }
.sp.on b { font-weight: 700; color: var(--ink); }
.sum { display: flex; flex-direction: column; gap: 16px; font-size: 15px; }
.sum div { display: flex; justify-content: space-between; align-items: center; }
.sum span { color: var(--muted); }
.sum b { font-weight: 600; }
.sum .ths { display: flex; gap: 4px; }
.sum .ths i { width: 28px; height: 36px; border-radius: 6px; background: var(--field) center/cover; }
.note { margin: 24px 24px 0; background: var(--soft); border-radius: var(--r-lg); padding: 14px 16px; font-size: 13px; line-height: 1.55; color: var(--ink-2); }

/* 만드는 중 */
.proc { display: flex; flex-direction: column; align-items: center; padding: 40px 24px 0; gap: 28px; }
.proc .th { width: 150px; height: 266px; border-radius: var(--r-xl); background: var(--field) center/cover; position: relative; overflow: hidden; }
.proc .th::before { content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, .35); }
.proc .th .pbar { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .6); }
.proc .th .pbar i { display: block; height: 100%; border-radius: 2px; background: var(--brand); transition: width .6s; }
.proc .t { text-align: center; }
.proc .t b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.proc .t span { display: block; font-size: 14px; color: var(--muted); margin-top: 6px; }
.steps { align-self: stretch; display: flex; flex-direction: column; gap: 14px; padding: 0 16px; font-size: 15px; }
.steps div { display: flex; align-items: center; gap: 12px; color: var(--hint); }
.steps .d { width: 22px; height: 22px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--on-color); }
.steps .done { color: var(--ink); }
.steps .done .d { background: var(--brand); border-color: var(--brand); }
.steps .now { color: var(--ink); font-weight: 700; }
.steps .now .d { border: 2.5px solid var(--brand); border-right-color: var(--brand-faint); animation: spin .9s linear infinite; }

/* 영상 보기 */
.player { margin: 4px 72px 0; aspect-ratio: 9/16; border-radius: var(--r-xl); background: #000; overflow: hidden; }
.player video, .player img { width: 100%; height: 100%; object-fit: cover; }
.vtitle b { display: block; font-size: 18px; font-weight: 700; }
.vtitle span { display: block; font-size: 13px; color: var(--faint); margin-top: 4px; }
.capbox { margin: 14px 24px 0; background: var(--soft); border-radius: var(--r-lg); padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; }
.capbox p { flex: 1; margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); white-space: pre-wrap; }
.capbox button { font-size: 13px; font-weight: 700; color: var(--brand); white-space: nowrap; }
.failbox { margin: 16px 24px 0; background: var(--soft); border-radius: var(--r-lg); padding: 16px; font-size: 13px; color: var(--ink-2); line-height: 1.5; }

/* 보관함 */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 8px; }
.vc { display: flex; flex-direction: column; gap: 8px; text-align: left; min-width: 0; }
.vc .th { aspect-ratio: 9/16; border-radius: var(--r-lg); background: var(--field) center/cover; display: grid; place-items: center; }
.vc b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.vc span { font-size: 12px; color: var(--faint); display: block; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc b.f { color: var(--faint); }

/* 내 식당 · 메뉴 */
.mlist { display: flex; flex-direction: column; }
.mi { display: flex; gap: 12px; align-items: center; padding: 10px 0; text-align: left; width: 100%; }
.mi .th { width: 52px; height: 52px; flex: none; border-radius: var(--r-md); background: var(--field) center/cover; }
.mi .th.none { background: repeating-linear-gradient(135deg, var(--line) 0 6px, var(--field) 6px 12px); }
.mi .b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mi .b b { display: flex; gap: 6px; align-items: center; font-size: 15px; font-weight: 600; }
.mi .b span { font-size: 12px; color: var(--faint); }
.mi .p { font-size: 15px; font-weight: 600; }
.badge { font-size: 10px; font-weight: 800; color: var(--brand); background: var(--brand-soft); padding: 2px 6px; border-radius: 5px; }
.photos { display: flex; gap: 8px; overflow-x: auto; }
.ph { width: 72px; height: 72px; flex: none; border-radius: var(--r-md); background: var(--field) center/cover; position: relative; }
.ph.tall { width: 84px; height: 104px; }
.ph em { position: absolute; left: 6px; top: 6px; font-size: 10px; font-weight: 800; font-style: normal; background: var(--bg); padding: 2px 6px; border-radius: 5px; }
.ph .x { position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: var(--on-color); font-size: 13px; display: grid; place-items: center; }
.ph.add { border: 1.5px dashed var(--line-dash); background: none; display: grid; place-items: center; font-size: 20px; color: var(--faint); }
.ph.add.tall { width: 52px; }
.foot-row { display: flex; justify-content: space-between; font-size: 14px; }
.foot-row span { color: var(--muted); }
.menu-links { display: flex; flex-direction: column; margin-top: 8px; }
.menu-links button { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; font-weight: 600; display: flex; justify-content: space-between; }
.menu-links button span { color: var(--faint); font-weight: 500; }
.trow { display: flex; justify-content: space-between; align-items: center; padding-top: 2px; font-size: 15px; font-weight: 600; }

/* 관리자 */
.admin-badge { font-size: 12px; font-weight: 700; color: var(--on-color); background: var(--dark); padding: 4px 8px; border-radius: 6px; }
.alist { display: flex; flex-direction: column; }
.ar { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.ar .b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ar .b b { font-size: 15px; font-weight: 600; }
.ar .b span { font-size: 12px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar .r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ar .r small { font-size: 11px; color: var(--faint); }
.ar .bt { width: 44px; height: 56px; flex: none; border-radius: 10px; background: var(--soft) center/contain no-repeat; }
.stat { background: var(--soft); border-radius: var(--r-lg); padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.stat span { font-size: 12px; color: var(--muted); }
.stat b { font-size: 22px; font-weight: 700; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.inq { padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.inq p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.inq.done { opacity: .5; }
.apl.done { opacity: .75; }
.apl .row { display: flex; gap: 8px; }
.apl .row .btn { flex: 1; width: auto; }
.apl p a { color: var(--brand); word-break: break-all; }
.ast { font-style: normal; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--field); color: var(--muted); white-space: nowrap; }
.ast.new { background: var(--brand-soft); color: var(--brand); }
.ast.approved { background: #E8F6EE; color: var(--ok); }

/* 아래에서 올라오는 시트 · 알림 */
.sheet-bg { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .4); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet { width: 100%; max-width: 520px; max-height: 90dvh; overflow: auto; background: var(--bg); border-radius: 24px 24px 0 0; padding: 12px 24px calc(24px + var(--safe-b)); animation: up .2s ease-out; }
.sheet .grab { width: 40px; height: 5px; border-radius: 99px; background: var(--line); margin: 0 auto 16px; }
@keyframes up { from { transform: translateY(40px); opacity: .5; } }
@keyframes fade { from { opacity: 0; } }
.toast { position: fixed; left: 16px; right: 16px; width: fit-content; margin: 0 auto; bottom: calc(110px + var(--safe-b)); z-index: 60; text-align: center; background: var(--dark); color: var(--on-color); padding: 12px 18px; border-radius: var(--r-lg); font-size: 14px; animation: fade .2s; }
.mock { margin: 12px 24px 0; font-size: 12px; padding: 8px 12px; border-radius: var(--r-md); background: var(--soft); color: var(--muted); }
.mock.on { color: var(--ok); }

.login .legal{margin:6px 0 0;text-align:center;font-size:11.5px;color:var(--hint)}
.login .legal a{color:var(--faint);text-decoration:underline}
/* 1/3 매장 사진 고르기 */
.stp { padding-top: 2px; }
.stp .ph.on { outline: 2.5px solid var(--brand); outline-offset: -2.5px; }
.stp .ph.opt { background: var(--field); font-size: 13px; font-weight: 700; color: var(--ink-2); }
.stp .ph.opt.on { background: var(--brand-soft); color: var(--brand); }
.stp .ph.opt.dis { opacity: .4; }
/* 요금제 */
.plans { display: flex; flex-direction: column; gap: 10px; }
.plan { position: relative; border: 1.5px solid var(--line); border-radius: var(--r-xl); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.plan.best { border-color: var(--brand); }
.plan.cur { background: var(--soft); border-color: var(--dark); }
.plan em.now { background: var(--dark); }
.plan em { position: absolute; top: -10px; left: 14px; background: var(--brand); color: var(--on-color); font-style: normal; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.plan .t { display: flex; justify-content: space-between; align-items: baseline; }
.plan .t b { font-size: 17px; }
.plan .t span { font-size: 20px; font-weight: 800; }
.plan .t small { font-size: 12px; font-weight: 600; color: var(--faint); margin-left: 2px; }
.plan ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 13.5px; line-height: 1.7; }
.btn.sm { height: 44px; font-size: 14px; }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pack { border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.pack em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--muted); }
.pack b { font-size: 20px; font-weight: 800; line-height: 1.2; }
.pack span { font-size: 15px; font-weight: 700; color: var(--brand); }
.pack small { font-size: 11px; color: var(--faint); }
button.pill { border: 0; cursor: pointer; }
/* 📷 바로 찍기 */
.addrow { display: flex; gap: 8px; margin: 0 24px; }
.addrow .addp { margin: 0; width: auto; flex: 1; }
.addp.cam { flex: 0 0 auto; padding: 0 16px; }
.ph.add.cam { font-size: 18px; }
/* 영상 제작 정보 */
.vinfo-menus { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.vinfo-menus > div { flex: none; width: 64px; display: flex; flex-direction: column; gap: 4px; }
.vinfo-menus i { position: relative; width: 64px; height: 84px; border-radius: var(--r-sm); background: var(--field) center/cover; }
.vinfo-menus em { position: absolute; left: 4px; top: 4px; font-style: normal; font-size: 10px; font-weight: 800; background: var(--bg); padding: 1px 5px; border-radius: 5px; }
.vinfo-menus span { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vinfo { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 14px 0 0; font-size: 13.5px; }
.vinfo dt { color: var(--faint); }
.vinfo dd { margin: 0; color: var(--ink-2); font-weight: 600; text-align: right; }
/* 영상 화면: 문구 수정 · 테마 바꾸기 · 목소리 다시 만들기 */
.vacts { display: flex; gap: 6px; flex-wrap: wrap; }
.vacts button { flex: 1 1 auto; height: 40px; padding: 0 10px; border-radius: var(--r-md); background: var(--field); color: var(--ink); font-size: 13px; font-weight: 700; white-space: nowrap; }
.perk { background: var(--brand-soft); border-radius: var(--r-lg); padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.perk b { color: var(--brand); font-size: 14px; }
.perk span { color: var(--ink-2); font-size: 12.5px; line-height: 1.5; }

/* AI 보정 사진 저장 */
.aiph { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.aiph > div { flex: none; width: 96px; display: flex; flex-direction: column; gap: 4px; }
.aiph b { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aiph button { position: relative; display: block; width: 96px; aspect-ratio: 9/16; border-radius: var(--r-sm); background: var(--field) center/cover; }
.aiph em { position: absolute; left: 6px; top: 6px; font-size: 11px; font-weight: 700; line-height: 1; font-style: normal; color: #fff; background: rgba(0,0,0,.55); padding: 4px 6px; border-radius: 6px; }
.aiph span { position: absolute; right: 6px; bottom: 6px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.92); color: #111; display: grid; place-items: center; font-size: 13px; }

/* SNS에 올리는 법 */
.seg.sns button { height: 36px; font-size: 13px; }
.snsol { margin: 12px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.snsol b { color: var(--ink); }

/* 출시 기념가 (곧 인상 · 지금 가입하면 유지) */
.launch { background: color-mix(in srgb, var(--brand) 10%, var(--bg)); border-radius: var(--r-lg); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.launch b { font-size: 14px; color: var(--brand); }
.launch span { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.plan .later { font-size: 12.5px; color: var(--muted); margin-top: -4px; }
.plan .later b { color: var(--brand); }
.plan .open { display: inline-block; font-size: 10.5px; font-weight: 800; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, var(--bg)); padding: 1px 6px; border-radius: 999px; margin-left: 4px; vertical-align: 1px; }

/* 관리자 · 모든 식당 영상 */
.avids { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 8px; }
.avids > button { display: flex; flex-direction: column; gap: 3px; text-align: left; min-width: 0; }
.avids i { position: relative; display: block; aspect-ratio: 9/16; border-radius: var(--r-sm); background: var(--field) center/cover; }
.avids em { position: absolute; left: 5px; top: 5px; font-style: normal; font-size: 10.5px; font-weight: 800; color: var(--on-color); background: rgba(0, 0, 0, .6); padding: 3px 6px; border-radius: 6px; }
.avids em.failed { background: var(--danger); }
.avids u { position: absolute; right: 5px; bottom: 5px; text-decoration: none; font-size: 10px; font-weight: 800; color: #111; background: rgba(255, 255, 255, .9); padding: 2px 5px; border-radius: 5px; }
.avids b { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avids span { font-size: 11px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vlink { font-size: 11.5px; font-weight: 600; color: var(--brand); margin-left: 4px; }

/* 올리셨어요? 설문 */
.fbcard { background: var(--soft); border-radius: var(--r-lg); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.fbcard b { font-size: 14px; }
.fbcard span { font-size: 12.5px; color: var(--muted); }
.fbcard .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fbcard .chip { height: 32px; font-size: 13px; background: var(--bg); }
.fbcard .chip.on { background: var(--dark); }

/* 자주 묻는 질문 */
.faqg { display: block; font-size: 13px; font-weight: 700; color: var(--brand); letter-spacing: .02em; margin-bottom: 4px; }
.faq { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 14px 24px 14px 0; font-size: 15px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 2px; top: 12px; font-size: 18px; color: var(--faint); }
.faq[open] summary::after { content: '−'; }
.faq p { margin: 0 0 14px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }

/* 관리자 지표 */
.funnel { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.frow { display: grid; grid-template-columns: 116px 1fr 30px 36px; gap: 8px; align-items: center; font-size: 12.5px; }
.frow span { color: var(--ink-2); }
.frow .bar { height: 10px; background: var(--field); border-radius: 999px; overflow: hidden; }
.frow .bar i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.frow b { text-align: right; font-size: 13px; }
.frow em { font-style: normal; color: var(--faint); font-size: 11.5px; text-align: right; }
.stbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.stbl th { text-align: left; color: var(--faint); font-weight: 600; padding: 6px 4px; border-bottom: 1px solid var(--line-2); }
.stbl td { padding: 8px 4px; border-bottom: 1px solid var(--line-2); }
.stbl small { color: var(--faint); }
.stat small { font-size: 12px; color: var(--faint); font-weight: 600; }
.dist { display: flex; flex-direction: column; gap: 6px; }
.drow { display: grid; grid-template-columns: 116px 1fr 28px; gap: 8px; align-items: center; font-size: 12.5px; }
.drow span { color: var(--ink-2); }
.drow i { display: block; height: 8px; background: var(--brand); border-radius: 999px; }
.drow b { text-align: right; }

/* 초대 링크 */
.invban { background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: var(--r-lg); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; margin-bottom: 4px; text-align: left; }
.invban b { font-size: 14px; }
.invban span { font-size: 13px; color: var(--ink-2); }
.ar.inv .b span b { font-size: 12px; color: var(--ink); }
.ar.inv .r { gap: 8px; }
.off { font-size: 11px; color: var(--faint); font-weight: 600; }
.sp { position: relative; }
.sp .rec { position: absolute; top: 6px; left: 6px; font-style: normal; font-size: 10px; font-weight: 800; color: var(--on-color); background: var(--brand); padding: 2px 6px; border-radius: 999px; }

/* 원본 vs AI 사진 */
.aiph u { position: absolute; left: 6px; bottom: 6px; text-decoration: none; font-size: 10px; font-weight: 800; color: #111; background: rgba(255,255,255,.92); padding: 3px 5px; border-radius: 5px; }
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cmp > div { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.cmp i { display: block; width: 100%; aspect-ratio: 3/4; border-radius: var(--r-md); background: var(--field) center/cover; }
.cmp b { font-size: 13px; color: var(--muted); }
.check.dis { color: var(--faint); cursor: default; }
.check.dis .link { font-size: 13px; margin-left: 4px; }

/* 무빙 구매 안내 */
.mvopt { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; }
.mvopt:first-of-type { border-color: var(--brand); }
.mvopt div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mvopt b { font-size: 15px; }
.mvopt span { font-size: 12.5px; color: var(--muted); }
.mvopt em { font-style: normal; font-size: 17px; font-weight: 800; color: var(--brand); white-space: nowrap; }
.mvopt em small { font-size: 11px; color: var(--faint); font-weight: 600; }
.backmake { width: 100%; text-align: left; font-size: 14px; font-weight: 700; color: var(--brand); background: var(--brand-soft); border-radius: var(--r-lg); padding: 12px 14px; }

/* 영상 종류: 사진 영상 / 무빙 영상 */
.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kind { position: relative; display: flex; flex-direction: column; gap: 4px; text-align: left; border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 8px 8px 12px; }
.kind.on { border-color: var(--brand); outline: 2px solid var(--brand); outline-offset: -1px; background: var(--brand-soft); }
.kind b { font-size: 15px; margin-top: 4px; }
.kind span { font-size: 12px; line-height: 1.4; color: var(--muted); }
.kind small { font-size: 11.5px; font-weight: 700; color: var(--brand); margin-top: 2px; }
.kind > em { position: absolute; z-index: 2; top: 14px; right: 14px; font-style: normal; font-size: 11px; font-weight: 800; color: var(--on-color); background: var(--brand); padding: 3px 8px; border-radius: 999px; }
.kv { position: relative; aspect-ratio: 9/16; border-radius: var(--r-md); overflow: hidden; background: var(--ink-2); }
.kv video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* 목소리 고르기 */
.voices { display: flex; flex-direction: column; gap: 8px; }
.vcard { display: flex; align-items: center; gap: 12px; text-align: left; border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 10px 12px; }
.vcard.on { border-color: var(--brand); background: var(--brand-soft); }
.vcard .ve { font-size: 22px; width: 28px; text-align: center; }
.vcard > div { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vcard b { font-size: 14.5px; }
.vcard b em { font-style: normal; font-size: 10.5px; font-weight: 800; color: var(--on-color); background: var(--dark); padding: 1px 6px; border-radius: 999px; margin-left: 4px; vertical-align: 1px; }
.vcard small { font-size: 12px; color: var(--muted); }
.vcard i { font-style: normal; width: 34px; height: 34px; border-radius: 50%; background: var(--field); display: grid; place-items: center; font-size: 12px; color: var(--ink); flex: none; }
.voices .vg { margin: 6px 0 -2px; font-size: 12.5px; font-weight: 700; color: var(--muted); }

/* 내 홈페이지 카드 · 영업시간 입력 (2026-10-08) */
.sitecard { border: 1.5px solid var(--line); border-radius: var(--r-lg, 16px); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.sitecard .sec { padding: 0; align-items: center; }
.sitecard .row { display: flex; gap: 8px; justify-content: space-between; }
.sitecard .row .btn { flex: 1; width: auto; }
.surl { color: var(--brand); font-weight: 700; font-size: 15px; word-break: break-all; text-decoration: none; background: var(--brand-soft); border-radius: 10px; padding: 8px 10px; margin: 6px 0 2px; display: inline-block; }
.hours { display: flex; flex-direction: column; gap: 6px; }
.hrow { display: grid; grid-template-columns: 24px 1fr 14px 1fr; gap: 6px; align-items: center; }
.hrow .inp { height: 44px; padding: 0 10px; font-size: 15px; min-width: 0; }
.hrow span { text-align: center; color: var(--faint); }

/* 샘플 가게 고르기 (주인 전용, 2026-10-08) */
.shoprow { display: flex; gap: 6px; overflow-x: auto; padding: 0 20px 4px; scrollbar-width: none; }
.shoprow::-webkit-scrollbar { display: none; }
.shoprow .chip { flex: none; }
.shoprow .chip.add { background: none; border: 1px dashed var(--line-dash); color: var(--muted); }
/* 예시 영상 줄 (2026-10-10) */
.exrow { display: flex; gap: 10px; padding: 0 24px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.exrow::-webkit-scrollbar { display: none; }
.exv { flex: none; width: 128px; display: flex; flex-direction: column; gap: 6px; text-align: left; scroll-snap-align: start; padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.exv video { width: 128px; aspect-ratio: 9/16; object-fit: cover; border-radius: 14px; background: var(--soft, #f2f4f6); display: block; }
.exv b { font-size: 13px; font-weight: 700; color: var(--ink, #191f28); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 홈 v2 (2026-10-10, Claude Design 「Home v2」) */
.home-top b { font-size: 16px; font-weight: 700; color: #4E5968; }
.home-h1 { margin: 0; padding: 12px 24px 24px; font-size: 28px; line-height: 1.35; font-weight: 800; letter-spacing: -.03em; }
.make-card { margin: 0 20px; height: 400px; border-radius: 24px; padding: 20px; gap: 16px; }
.make-card b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.make-card span { font-size: 14px; line-height: 1.5; opacity: .85; margin-top: 6px; }
.make-card i { height: 56px; border-radius: 16px; font-size: 17px; }
.home-sec { padding-bottom: 14px; }
.home-sec b.l { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.home-sec span, .home-sec button { font-size: 13px; color: #8B95A1; }
.exv { width: 156px; gap: 8px; }
.exth { position: relative; width: 156px; aspect-ratio: 9/16; border-radius: 16px; overflow: hidden; background: #2B2B2E; }
.exth video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.exth::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 70%, rgba(0,0,0,.45)); }
.exth .play { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); z-index: 1; }
.exth .play::before { content: ''; position: absolute; left: 11px; top: 9px; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.exv b { font-size: 14px; font-weight: 600; }
.rc { width: 104px; }
.rc .th { height: auto; aspect-ratio: 3/4; border-radius: 14px; }
.rc b { font-size: 13px; color: #333D4B; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.exl .th { position: relative; overflow: hidden; }
.exl .th video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.exrow { padding-left: 24px; padding-right: 24px; scroll-padding-left: 24px; }
