/* 주최자 앱 전용 */
#view { padding-top: 28px; padding-bottom: 60px; min-height: 70vh; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-h p { margin: 0; color: var(--ink-2); }
.auth-box { max-width: 420px; margin: 24px auto; }
.auth-box .card { padding: 28px; }
.plan-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; border-radius: 14px; background: linear-gradient(120deg, #fff, var(--brand-soft)); border: 1px solid #ffd9cc; margin-bottom: 22px; }
.plan-bar .grow b { font-size: 16px; }
.proj { display: flex; gap: 16px; align-items: stretch; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.proj:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(27,31,59,.1); }
.proj .qr { width: 92px; height: 92px; flex: none; border-radius: 12px; border: 1px solid var(--line); padding: 6px; background: #fff; }
.proj .qr svg { width: 100%; height: 100%; display: block; }
.proj h3 { margin: 4px 0; }
.proj .meta { font-size: 13px; color: var(--ink-2); }
.proj .nums { display: flex; gap: 14px; margin-top: 8px; font-size: 13px; }
.proj .nums b { font-size: 16px; }
.new-proj { border: 2px dashed var(--line-2); background: transparent; box-shadow: none; display: grid; place-items: center; min-height: 128px; color: var(--ink-2); font-weight: 700; cursor: pointer; border-radius: var(--radius); font: inherit; }
.new-proj:hover { border-color: var(--brand); color: var(--brand); }

/* 마법사 */
.wz-steps { display: flex; gap: 6px; margin-bottom: 20px; overflow-x: auto; padding-bottom: 4px; }
.wz-steps button { flex: 1; min-width: 110px; border: 0; background: #fff; border-radius: 12px; padding: 10px 12px; text-align: left; font: inherit; cursor: pointer; border: 1px solid var(--line); }
.wz-steps button small { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 700; }
.wz-steps button span { font-weight: 800; font-size: 14px; }
.wz-steps button.on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255,90,54,.12); }
.wz-steps button.done small { color: var(--mint); }
.wz-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.wz-preview { position: sticky; top: 80px; }
.phone { width: 100%; max-width: 340px; margin: 0 auto; border: 10px solid #1b1f3b; border-radius: 36px; overflow: hidden; height: 640px; background: #fff; box-shadow: var(--shadow-lg); }
.phone iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 960px) { .wz-layout { grid-template-columns: 1fr; } .wz-preview { position: static; } }
.wz-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); padding: 18px 0 10px; }

.fld { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #fff; margin-bottom: 10px; }
.fld .row { gap: 8px; }
.fld-head { display: flex; gap: 8px; align-items: center; }
.fld-head .num { width: 26px; height: 26px; border-radius: 8px; background: var(--bg); display: grid; place-items: center; font-weight: 800; font-size: 12px; flex: none; }
.opt-row { display: flex; gap: 6px; margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line-2); background: #fff; border-radius: 99px; height: 34px; padding: 0 12px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--ink); }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip:disabled { opacity: .4; cursor: default; }

.game-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 700px) { .game-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gp { position: relative; text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 16px; padding: 16px; cursor: pointer; font: inherit; color: var(--ink); }
.gp .ic { font-size: 34px; }
.gp b { display: block; margin: 6px 0 4px; }
.gp p { font-size: 12.5px; color: var(--ink-2); margin: 0; }
.gp.on { border-color: var(--brand); background: var(--brand-soft); }
.gp.locked { opacity: .55; }
.gp .lock { position: absolute; top: 10px; right: 10px; }

.prize-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 110px 110px 40px; gap: 8px; align-items: center; margin-bottom: 8px; }
.prize-row .rk { height: 40px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 900; }
@media (max-width: 600px) { .prize-row { grid-template-columns: 48px minmax(0, 1fr) 80px 36px; } .prize-row .prob { display: none; } }

.qr-big { width: 260px; max-width: 100%; aspect-ratio: 1; margin: 0 auto; border-radius: 18px; border: 1px solid var(--line); padding: 12px; background: #fff; }
.qr-big svg { width: 100%; height: 100%; display: block; }
.linkbox { display: flex; gap: 8px; }
.linkbox input { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.locked-box { text-align: center; padding: 40px 20px; }
.locked-box .big { font-size: 46px; }
.msg { border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; max-width: 86%; white-space: pre-wrap; }
.msg.me { background: var(--brand-soft); margin-left: auto; }
.msg.admin { background: #fff; border: 1px solid var(--line); }
.msg .when { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.price-card { position: relative; }
.price-card.hot { border: 2px solid var(--brand); }
.price-card .amt { font-size: 30px; font-weight: 850; letter-spacing: -0.02em; }
.price-card ul { padding-left: 18px; margin: 12px 0; color: var(--ink-2); font-size: 14px; }
.price-card li { margin: 4px 0; }
.studio { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 22px; align-items: start; }
.studio-canvas { background: repeating-conic-gradient(#eceef5 0 25%, #f7f8fb 0 50%) 0 0 / 20px 20px; border-radius: 16px; padding: 20px; display: grid; place-items: center; min-height: 420px; }
.studio-canvas canvas { max-width: 100%; max-height: 70vh; box-shadow: var(--shadow-lg); background: #fff; }
.tpl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tpl button { height: 56px; border-radius: 10px; border: 2px solid var(--line); cursor: pointer; font: inherit; font-size: 12px; font-weight: 800; }
.tpl button.on { border-color: var(--brand); }
@media (max-width: 900px) { .studio { grid-template-columns: 1fr; } }
.drag-handle { flex: none; width: 30px; height: 36px; border: 0; border-radius: 8px; background: var(--bg); color: var(--ink-3); font-size: 18px; cursor: grab; touch-action: none; }
.drag-handle:hover { color: var(--ink); background: var(--line); }
.drag-handle:active { cursor: grabbing; }
.fld.dragging { box-shadow: 0 12px 30px rgba(27,31,59,.18); border-color: var(--brand); opacity: .95; position: relative; z-index: 5; }
.edit-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.edit-steps a.chip { display: inline-flex; align-items: center; text-decoration: none; }

/* ---------- 현장 상담 ---------- */
.c-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; background: #fdecec; color: #c62828; font-weight: 800; font-size: 12px; border-radius: 99px; padding: 4px 10px; }
.live-pill i { width: 8px; height: 8px; border-radius: 50%; background: #e5484d; animation: pulse 1s infinite; }
.chips .chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.c-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; align-items: start; }
.c-list { display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 220px); overflow: auto; padding-right: 4px; }
.c-item { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 12px 14px; cursor: pointer; font: inherit; color: var(--ink); display: flex; flex-direction: column; gap: 4px; transition: border .15s, box-shadow .15s; }
.c-item:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.c-item.on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255,90,54,.12); }
.c-item.fresh { animation: freshGlow 1.2s ease-in-out 4; border-color: #3b82f6; }
@keyframes freshGlow { 50% { box-shadow: 0 0 0 6px rgba(59,130,246,.18); } }
.c-detail { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-height: 420px; position: sticky; top: 76px; max-height: calc(100vh - 100px); overflow: auto; }
.c-back { display: none; margin-bottom: 8px; }
.c-answers { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; }
.c-answers th { text-align: left; color: var(--ink-2); font-weight: 600; width: 120px; padding: 7px 10px 7px 0; vertical-align: top; border-bottom: 1px solid var(--line); }
.c-answers td { padding: 7px 0; border-bottom: 1px solid var(--line); word-break: break-all; }
.c-status { display: flex; flex-wrap: wrap; gap: 6px; }
.c-status button { border: 1px solid var(--line-2); background: #fff; border-radius: 99px; height: 34px; padding: 0 14px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--ink-2); }
.c-status button.on { background: var(--c); border-color: var(--c); color: #fff; }
.c-notes { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 12px; max-height: 320px; overflow: auto; }
.c-note { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; position: relative; }
.c-note-body { white-space: pre-wrap; margin-top: 4px; font-size: 14px; }
.c-del { position: absolute; right: 6px; bottom: 6px; height: 26px; font-size: 12px; }
.c-compose { border-top: 1px solid var(--line); padding-top: 12px; }
.rec-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.rec-btn.on { background: #e5484d; color: #fff; border-color: #e5484d; animation: pulse 1.2s infinite; }
@media (max-width: 860px) {
  .c-grid { grid-template-columns: 1fr; }
  .c-list { max-height: none; }
  .c-detail { display: none; position: fixed; inset: 0; z-index: 60; border-radius: 0; max-height: none; top: 0; }
  .consult.detail-open .c-detail { display: block; }
  .c-back { display: inline-flex; }
}
.proj-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.t button svg { width: 100%; height: 100%; display: block; }
.stats-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 600px) {
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stats-row .stat { padding: 10px 12px; }
  .stats-row .stat .v { font-size: 19px; }
}
.c-game { margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--line-2); }
.modal.game-modal { width: min(560px, 100%); }
.modal .cs-body { background: var(--surface-2); padding: 10px 12px; border-radius: 10px; margin-top: 8px; font-size: 13px; }
.modal .cs-more { background: none; border: 0; color: var(--ink-3); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; padding: 0; }
.check-list { max-height: 220px; overflow: auto; }
.ul-panel { background: #fffaf0; border: 1px solid #f5d98a; border-radius: 14px; padding: 10px 14px; margin-bottom: 12px; }
.ul-panel summary { cursor: pointer; font-weight: 800; }
.ul-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; margin-top: 10px; }
.ul-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; position: relative; }
.ul-item.fresh { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
.ul-match { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.ul-del { position: absolute; top: 6px; right: 6px; height: 26px; font-size: 12px; }
.ul-item .row.between { padding-right: 40px; }

/* 그룹 상담 */
.g-tag { font-size: 12px; font-weight: 700; color: #6d28d9; }
.badge.grp { background: #ede9fe; color: #6d28d9; }
.g-card { margin-top: 14px; border: 1px solid #ddd6fe; background: #faf8ff; border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.g-card.empty { flex-direction: row; align-items: center; justify-content: space-between; border-style: dashed; background: #fff; }
.g-members { display: flex; flex-wrap: wrap; gap: 6px; }
.g-chip { border: 1px solid var(--line-2); background: #fff; border-radius: 99px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; color: var(--ink); }
.g-chip.lead { border-color: #a78bfa; background: #ede9fe; }
.g-chip.me { box-shadow: 0 0 0 2px var(--brand); }
.g-pick { max-height: 46vh; overflow: auto; display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.g-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.g-row.on { border-color: #a78bfa; background: #faf8ff; }
.g-row.off { opacity: .55; }
.g-row .check { flex: 1; min-width: 0; }
.g-lead { flex: none; }

/* 1회권 · 업그레이드 안내 */
.pass-price { font-size: 30px; font-weight: 850; margin: 10px 0 4px; }
.pass-list { padding-left: 18px; margin: 8px 0 16px; color: var(--ink-2); font-size: 14px; }
.pass-list li { margin: 3px 0; }
.pass-card { border: 2px dashed #f5b301; background: #fffbeb; }
.upg-options { display: grid; gap: 8px; margin-top: 12px; }
.upg-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; border: 1px solid var(--line-2); background: #fff; border-radius: 14px; padding: 12px 14px; font: inherit; cursor: pointer; color: var(--ink); }
.upg-opt:hover { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255,90,54,.12); }
.survey-banner { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.survey-banner > span { flex: 1; min-width: 220px; }

.contact-box { border: 1px dashed var(--line-2); border-radius: 14px; padding: 12px 14px; }
.contact-box summary { cursor: pointer; }

/* 현장 리포트 */
.hbars { display: flex; align-items: flex-end; gap: 6px; height: 150px; overflow-x: auto; padding-bottom: 2px; }
.hbar { flex: 1 0 28px; max-width: 48px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; font-size: 11px; }
.hbar i { width: 100%; background: var(--brand); border-radius: 6px 6px 2px 2px; opacity: .85; }
.hbar b { order: -1; font-size: 11px; }
.hbar span { color: var(--ink-3, #8a90a6); }

/* 후속 영업 */
.fu-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.fu-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.fu-card textarea { font-size: 14px; line-height: 1.6; }
.stat-mini { background: var(--bg); border-radius: 12px; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; }
.stat-mini span { color: var(--ink-2); font-size: 13px; }

/* 현장 신뢰성 · ROI */
.warn-chip { border-color: #f59e0b !important; color: #92400e; background: #fffbeb; }
.check-item { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.roi { border: 2px solid #c7d2fe; background: #f8f9ff; }
@media print {
  .topbar, .tabs, .no-print, .page-h .row, .edit-steps, .toast-wrap, .btn { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none !important; break-inside: avoid; }
}

.tpl-bio { display: flex; gap: 12px; align-items: center; justify-content: space-between; border: 1px dashed #a5b4fc; background: #f5f7ff; border-radius: 14px; padding: 12px 14px; }

.launch-tag { display: inline-block; background: #fff1e6; color: #c2410c; font-weight: 800; font-size: 12px; border-radius: 99px; padding: 3px 10px; margin-bottom: 6px; }
/* 상담자 로그인: 관리자 연락처 */
.staff-contact { border-top: 1px solid var(--line); padding-top: 12px; line-height: 1.8; font-size: 14px; }
.staff-contact a { color: inherit; text-decoration: underline; }
/* 상담자 관리: 배치 칩 (마우스를 올리면 × 로 빼기) */
.assign-chip { display: inline-flex; align-items: center; gap: 4px; margin: 2px; padding: 4px 10px; border-radius: 999px; border: 1px solid #c9d6f5; background: #eef3ff; color: #1e4f9c; font-size: 12.5px; font-weight: 600; cursor: pointer; position: relative; }
.assign-chip .perm { font-size: 11px; opacity: .8; }
.assign-chip .x { display: none; border: 0; background: #1e4f9c; color: #fff; width: 18px; height: 18px; border-radius: 50%; font-size: 12px; line-height: 18px; padding: 0; cursor: pointer; margin-left: 2px; }
.assign-chip:hover .x, .assign-chip:focus-within .x { display: inline-block; }
@media (hover: none) { .assign-chip .x { display: inline-block; } }
.assign-add { font-size: 12.5px; border-radius: 999px; padding: 3px 8px; border: 1px dashed #9aa6c4; background: #fff; max-width: 170px; }
.team-qr { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.team-qr .qr { width: 132px; height: 132px; flex: none; background: #fff; border-radius: 10px; padding: 6px; border: 1px solid var(--line); }
.team-qr .qr svg { width: 100%; height: 100%; }
/* 내 프로젝트: 만들다 만 것 삭제(×), 보관함 */
.card.proj { position: relative; }
.proj-x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink-3, #8a90a6); font-size: 18px; line-height: 1; cursor: pointer; z-index: 2; }
.proj-x:hover { background: #fff0f0; color: #c0392b; border-color: #f3c4c4; }
.archive-h { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-radius: 14px; border: 1px dashed #c3c9da; background: #fafbfe; font: inherit; font-weight: 700; cursor: pointer; text-align: left; }
.voice-sentence { background: #f6f7fb; border-radius: 12px; padding: 12px 14px; font-size: 15px; line-height: 1.6; font-weight: 600; }
/* 경품 추천 */
.goal-opt { text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 12px; cursor: pointer; font: inherit; }
.goal-opt.on { border-color: var(--brand, #FF5A36); background: #fff6f2; }
.reco-sum { display: flex; gap: 16px; flex-wrap: wrap; font-weight: 800; }
