/* 사장님 앱. 공용 토큰(스카 연구소 민트 + 따뜻한 크림) 위에 복숭아 포인트를 얹는다. */
:root {
  --sun: #FFD9C9;
  --sun-soft: #FFF1E6;
  --sky-soft: #E3F3F0;
  --mint-soft: #E3F3F0;
  --topbar-h: 57px;
}
body { background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
/* 본문은 항상 화면 한 장 높이 이상: 아래 푸터가 첫 화면 밖에 있어서 내용이 늦게 채워져도 푸터가 튀지 않는다. */
#app { flex: 1 0 auto; min-height: calc(100svh - var(--topbar-h)); }
.slot { display: contents; }
.skel-page { min-height: 60svh; }

/* 위·아래 */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255, 249, 233, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: 8px var(--gutter); min-height: var(--topbar-h); }
.topbar__row { max-width: var(--content); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: -.02em; min-height: 40px; flex: 0 0 auto; }
/* 지금 설정하는 매장(매장 화면에서만). 높이가 정해져 있고 이름은 줄바꿈 없이 말줄임. */
.store-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; max-width: 52vw; min-width: 0; padding: 0 12px 0 6px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: var(--fs-s); font-weight: 700; text-decoration: none; flex: 0 1 auto; }
a.store-chip[href]:hover { border-color: var(--primary); }
.store-chip__icon { flex: none; }
.store-chip__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
@media (max-width: 480px) { .brand__sub { display: none; } }
.brand__mark { width: 32px; height: 32px; border-radius: 10px; flex: none; }
.brand__name { color: var(--primary-ink); }
.brand__sub { font-weight: 600; font-size: var(--fs-s); color: var(--muted); }
.foot { flex: none; display: flex; flex-direction: column; align-items: center; gap: var(--s-3); padding: 20px var(--gutter) calc(24px + env(safe-area-inset-bottom)); font-size: var(--fs-s); color: var(--muted); }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 18px; min-height: 28px; }
.foot__slot { min-height: 30px; display: flex; justify-content: center; }
.foot__biz-wrap > summary { cursor: pointer; text-align: center; color: var(--muted); font-size: var(--fs-s); list-style: none; text-decoration: underline; text-underline-offset: 3px; }
.foot__biz-wrap > summary::-webkit-details-marker { display: none; }
.foot__biz { max-width: var(--content); margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.foot__biz dt { font-weight: 700; }
.foot__biz dd { margin: 0; overflow-wrap: anywhere; }
.foot a, .linklike { color: var(--muted); font-size: var(--fs-s); }
.linklike { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

/* 제목 줄 */
.head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-3); padding: var(--s-2) 0; width: 100%; }
.head__title, .head__sub { width: 100%; }
.head__art, .art { display: block; flex: none; }
.mascot { display: block; height: auto; }
.head__title { font-size: 26px; }
.head__sub { color: var(--ink-2); max-width: 30ch; }
.lead { color: var(--ink-2); text-align: center; }
.hint { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: var(--fs-s); }
.big-num { display: inline-grid; place-items: center; min-width: 38px; height: 38px; margin: 0 4px; border-radius: 12px; background: var(--sun); font-size: 22px; font-weight: 800; }
.auth-number { display: grid; place-items: center; }
.auth-number strong { display: grid; place-items: center; min-width: 96px; height: 84px; padding: 0 20px; border-radius: 24px; background: var(--peach); color: var(--peach-ink); font-size: 52px; font-weight: 800; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.auth-number.is-empty strong { opacity: .5; }
.login-wait__head { display: flex; flex-direction: column; align-items: center; gap: var(--s-2); }
.countdown { min-height: 22px; }
.flow .stepper-wrap { padding: var(--s-2) 0 var(--s-1); }
.flow__body { margin-top: var(--s-4); }

/* 로그인 */
.login { display: flex; flex-direction: column; gap: var(--s-5); padding-top: var(--s-6); }
.login__hero { display: flex; flex-direction: column; align-items: center; gap: var(--s-3); text-align: center; padding: var(--s-5) var(--s-4) var(--s-5); border-radius: 28px; background: radial-gradient(circle at 20% 10%, #fff 0, var(--sun-soft) 50%, var(--mint-soft) 100%); }
.login__brand { font-weight: 800; color: var(--primary-ink); letter-spacing: .02em; }
.login__title { font-size: 30px; }
.login__line { color: var(--ink-2); max-width: 24ch; }
.trio { display: flex; gap: var(--s-3); justify-content: center; flex-wrap: wrap; margin-top: var(--s-2); }
.trio__item { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .85); padding: 6px 14px 6px 6px; border-radius: var(--r-pill); font-weight: 700; font-size: var(--fs-s); }
.trio__dot { width: 30px; height: 30px; border-radius: 50%; background: var(--primary-soft); display: grid; place-items: center; }
.login__links { text-align: center; font-size: var(--fs-s); }
.kakao-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; width: 100%; border-radius: 12px; background: #fee500; color: rgba(0, 0, 0, .85); font-weight: 700; font-size: 17px; text-decoration: none; box-shadow: 0 2px 0 #d9c200; }
.kakao-btn:hover { background: #f5dc00; }
.kakao-btn:focus-visible { box-shadow: var(--focus-ring); border-radius: 12px; }
.dev-login { border: 2px dashed var(--line-strong); border-radius: var(--r-card); padding: var(--s-4); }

/* 개인정보 */
.facts { display: flex; flex-direction: column; gap: var(--s-3); }
.fact { display: flex; gap: var(--s-3); align-items: flex-start; }
.fact__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* 매장 카드 */
.store-card { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-1); text-decoration: none; color: inherit; }
.store-card:hover { border-color: var(--primary); }
.store-card:focus-visible { box-shadow: var(--focus-ring); }
.store-card__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.store-card__name { font-weight: 800; font-size: var(--fs-l); overflow-wrap: anywhere; }

/* 큰 선택 버튼 */
.opt { display: flex; align-items: center; gap: var(--s-3); width: 100%; min-height: 68px; padding: var(--s-3) var(--s-4); text-align: left; background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-1); font-weight: 800; transition: border-color var(--dur) var(--ease), transform 80ms var(--ease); }
.opt:hover:not(:disabled) { border-color: var(--primary); }
.opt:active:not(:disabled) { transform: scale(.985); }
.opt:focus-visible { box-shadow: var(--focus-ring); border-radius: var(--r-card); }
.opt:disabled { opacity: .5; cursor: progress; }
.opt__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.opt__title { font-size: var(--fs-m); line-height: 1.35; }
.opt__desc { font-size: var(--fs-s); font-weight: 500; color: var(--muted); }
.opt__chev { color: var(--muted); }

/* 로그인 칸·단계 안내 */
.login-panel { align-items: stretch; }
.mini-steps { display: flex; flex-direction: column; gap: var(--s-2); }
.mini-step { display: flex; align-items: center; gap: var(--s-3); font-weight: 600; }
.mini-step .bubble { width: 38px; height: 38px; border-radius: 12px; }
.note-steps { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-card); background: var(--surface); border: 2px solid var(--peach); color: var(--ink); }
.mini-step--link { display: block; }
.mini-step--link .bubble { display: none; }
.callout__act { margin-top: var(--s-2); gap: var(--s-2); }

/* 기다리는 화면: 모든 칸의 높이가 정해져 있어 글이 바뀌어도 아래가 밀리지 않는다 */
.wait__top { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-2); }
.wait__hero { display: grid; place-items: center; width: 112px; height: 112px; }
.wait__penguin { animation: bob 2s ease-in-out infinite; }
.wait__title { width: 100%; min-height: calc(2 * 1.3em); font-size: 24px; line-height: 1.3; display: grid; place-items: center; }
.wait__status { width: 100%; min-height: 3.2em; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; font-weight: 700; color: var(--ink); }
.wait__count { font-weight: 800; color: var(--primary-ink); }
.wait__count:not(:empty) { display: block; }
.wait__bar { width: 100%; height: 8px; visibility: hidden; }
.wait__bar[data-on="true"] { visibility: visible; }
.wait__time { width: 100%; min-height: 1.6em; margin: 0; color: var(--muted); font-size: var(--fs-s); }
.wait__rows { display: flex; flex-direction: column; gap: var(--s-2); }
.wait__row { display: flex; align-items: center; gap: var(--s-3); min-height: 48px; padding: 8px var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.wait__ico { display: grid; place-items: center; width: 24px; flex: none; }
.wait__row[data-state="done"] .icon { color: var(--success); }
.wait__row[data-state="running"] { border-color: var(--primary); background: var(--primary-soft); }
.wait__row[data-state="running"] .icon { color: var(--primary); }
.wait__row[data-state="failed"] .icon { color: var(--danger); }
.wait__row[data-state="pending"], .wait__row[data-state="skipped"] { color: var(--muted); }
.wait__state { font-size: var(--fs-s); color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wait__joke { min-height: calc(2 * 1.6em); text-align: center; color: var(--primary-ink); font-weight: 600; margin: 0; }
.wait__note { color: var(--success-ink); font-weight: 700; background: var(--mint-soft); padding: 10px; border-radius: 14px; display: flex; gap: 6px; align-items: center; justify-content: center; margin: 0; }
.wait__note[hidden] { display: none; }
.wait-note { display: flex; flex-direction: column; gap: 2px; align-items: center; text-align: center; }
.wait-note__joke { min-height: 1.6em; font-size: var(--fs-s); color: var(--primary-ink); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-6px) rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .wait__penguin { animation: none; } }

/* 멈춘 일 안내(쉬운 제목 + 다음 할 일) */
.friendly { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-card); background: #FFF7F3; border: 1px solid #F3D6C8; color: var(--peach-ink); }
.friendly__head { display: flex; gap: var(--s-3); align-items: flex-start; }
.friendly__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.friendly__title { font-size: var(--fs-l); }
.friendly__text { color: var(--ink-2); }
.friendly__detail > summary { cursor: pointer; font-size: var(--fs-s); color: var(--muted); }
.friendly__raw { margin-top: var(--s-2); font-size: var(--fs-s); color: var(--muted); overflow-wrap: anywhere; }

/* 확인하기 첫 화면 */
.facts-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: var(--s-2); }
.facts-row__item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: var(--s-3); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.facts-row__num { font-size: var(--fs-xl); font-weight: 800; color: var(--primary-ink); }
.facts-row__label { font-size: var(--fs-s); color: var(--ink-2); }
.intro-card { padding: var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.intro-card__line { display: flex; gap: var(--s-3); align-items: flex-start; margin: 0; }
.intro-card__line .art { margin-top: 2px; }

/* 집중 화면 */
.focus__title { font-size: 24px; line-height: 1.35; }
.focus { padding: var(--s-5) var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-1); }
.focus .opt { box-shadow: none; background: var(--sky-soft); border-color: transparent; }
.bubble--peach { background: var(--peach); color: var(--peach-ink); }
.focus .opt:hover:not(:disabled) { border-color: var(--primary); }
.focus__nav { padding-top: var(--s-2); }

/* 연결 카드 */
.channel { gap: var(--s-3); }
.conn-row { display: flex; align-items: center; gap: var(--s-3); }
.mstep { display: flex; gap: var(--s-3); align-items: flex-start; }
.msteps { display: flex; flex-direction: column; gap: var(--s-4); }
.mstep__n { width: 30px; height: 30px; border-radius: 50%; background: var(--peach); color: var(--peach-ink); display: grid; place-items: center; font-weight: 800; flex: none; }
.mstep__body { min-width: 0; flex: 1; }
.mstep__body .btn { align-self: flex-start; }

/* 홈 */
.check-line { display: flex; gap: var(--s-3); align-items: center; font-weight: 600; }
.check-line input { width: 22px; height: 22px; accent-color: var(--primary); }
.fold { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.fold > summary { list-style: none; display: flex; align-items: center; gap: var(--s-3); min-height: 56px; padding: var(--s-3) var(--s-4); cursor: pointer; font-weight: 700; border-radius: var(--r-card); }
.fold > summary::-webkit-details-marker { display: none; }
.fold[open] > summary .fold__chev { transform: rotate(180deg); }
.fold > summary:focus-visible { box-shadow: var(--focus-ring); }
.fold__body { padding: 0 var(--s-4) var(--s-4); }
.fold--inner { background: var(--surface-2); border-color: transparent; }
.fold--inner > summary { min-height: 48px; }
.entry { padding: var(--s-3); background: var(--surface); border-radius: 12px; }
.entry__text { white-space: pre-wrap; color: var(--ink-2); font-size: var(--fs-s); margin-top: 4px; }

/* 규칙 바꾸기 */
.edit { padding: var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); display: flex; flex-direction: column; gap: var(--s-3); }
.edit--flag { border-color: var(--warn); background: #fffbe8; }
.edit__head { display: flex; align-items: center; gap: var(--s-3); }
.edit__head input { width: 22px; height: 22px; accent-color: var(--primary); flex: none; }
.edit__flag { display: flex; gap: 6px; align-items: center; color: var(--warn-ink); font-size: var(--fs-s); font-weight: 600; }
.edit__pair { display: grid; gap: var(--s-3); grid-template-columns: 1fr; }
@media (min-width: 640px) { .edit__pair { grid-template-columns: 1fr 1fr; } }
.edit pre { margin: 4px 0 0; white-space: pre-wrap; font: inherit; font-size: var(--fs-s); padding: var(--s-3); border-radius: 12px; }
.edit__before pre { background: var(--danger-bg); }
.edit__after pre { background: var(--success-bg); }
.edit__lab { font-size: 12px; font-weight: 700; color: var(--muted); }

@media (min-width: 720px) {
  .head__title { font-size: 30px; }
  .page { padding-top: var(--s-6); }
}

[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { box-shadow: none; outline: none; }

/* 관리자가 사장님 화면으로 볼 때 */
.admin-banner { max-width: var(--content); margin: 6px auto 0; padding: 4px 12px; border-radius: var(--r-pill); background: var(--info-bg); color: var(--info-ink); font-size: var(--fs-s); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.admin-banner a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.funnel__sub { margin-top: calc(var(--s-2) * -1); }

/* 요금제·약관 */
.plan-count { font-size: 18px; }
.plan-count strong { font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.progress--warn .progress__bar { background: linear-gradient(90deg, var(--warn), #f0a020); }
.plan-price { font-size: var(--fs-m); }
.plan-price strong { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.plan-included { display: flex; gap: 8px; align-items: center; color: var(--ink-2); }
.plan-consents { margin-top: var(--s-2); }
.plan-consent { align-items: flex-start; font-weight: 500; line-height: 1.5; }
.plan-consent input { margin-top: 2px; flex: none; }
.plan-consent__link { font-weight: 700; white-space: nowrap; }
.plan-recurring { padding: var(--s-3) var(--s-4); border-radius: 14px; background: var(--surface); border: 1px solid var(--line-strong); font-size: var(--fs-s); line-height: 1.6; color: var(--ink); }
.plan-fake { text-align: center; }
.plan-rows { margin: var(--s-3) 0; }
.plan-row { display: flex; align-items: center; gap: var(--s-2); padding: 10px var(--s-3); background: var(--surface-2); border-radius: 12px; }
.plan-actions { gap: var(--s-2); }
.plan-pays { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.plan-pay { display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-s); }
.plan-pay--refunded { color: var(--muted); }
.terms p { line-height: 1.65; }
.terms__list { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; line-height: 1.6; }
.biz { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: var(--fs-s); }
.biz dt { font-weight: 700; color: var(--ink-2); }
.biz dd { margin: 0; overflow-wrap: anywhere; }
.biz__missing, .foot__biz dd:empty { color: var(--muted); }

/* ── 새 흐름(2026-11-21): ① 내 매장 연결 · ② 중요한 질문 · 홈 ─────────────────── */
.sec { display: flex; flex-direction: column; gap: var(--s-4); }
.sec--l { gap: var(--s-5); }
.cta { margin-top: var(--s-2); display: flex; flex-direction: column; gap: var(--s-2); align-items: stretch; }
.cta .linklike { align-self: center; }
.tag { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--peach); color: var(--peach-ink); white-space: nowrap; }
.stepline { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: var(--fs-s); font-weight: 700; color: var(--muted); list-style: none; margin: 0; padding: 0; }
.stepline li { padding: 3px 12px; border-radius: 999px; background: var(--surface-2); }
.stepline li.on { background: var(--primary); color: #fff; }
.stepline li.done { background: var(--success-bg); color: var(--success-ink); }
.why { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-2); font-size: var(--fs-s); background: var(--primary-soft); padding: 10px 14px; border-radius: 14px; }
.why .icon { flex: none; margin-top: 2px; }
.app-btn { background: #03C75A; color: #fff; box-shadow: 0 2px 0 #02a049; }
.tg-btn { background: #229ED9; color: #fff; box-shadow: 0 2px 0 #1a7fae; }
.kk-btn2 { background: #fee500; color: rgba(0,0,0,.85); box-shadow: 0 2px 0 #d9c200; }
.wcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-1); padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-3); }
.wcard__head { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.wcard__name { font-weight: 800; flex: 1; min-width: 6em; }
.wcard p { color: var(--ink-2); font-size: var(--fs-s); margin: 0; }
.wcard__row { display: flex; gap: var(--s-2); }
.wcard__row .btn { flex: 1; }
.wcard--ok { background: #F4FBF8; }
.wcard .art { width: 32px; height: 32px; }
.wcard .list { gap: var(--s-2); }
.lead-title { margin: var(--s-2) 0 0; }
.pick { display: flex; flex-direction: column; gap: var(--s-2); }
.codeinput { display: flex; gap: 8px; align-items: flex-start; }
.codeinput .field { flex: 1; }
.homehero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-3); padding: var(--s-5) var(--s-4); border-radius: 28px; background: radial-gradient(circle at 20% 10%, #fff 0, var(--sun-soft) 50%, var(--mint-soft) 100%); }
.homehero__chips { gap: 8px; flex-wrap: wrap; }
.pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--success-solid); box-shadow: 0 0 0 0 rgba(31,191,138,.5); animation: pulse 1.8s infinite; display: inline-block; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(31,191,138,0); } 100% { box-shadow: 0 0 0 0 rgba(31,191,138,0); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
.todo { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); text-align: left; width: 100%; color: inherit; text-decoration: none; min-height: 56px; }
.todo:hover { border-color: var(--line-strong); }
.todo:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.todo__body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.todo__sub { font-size: var(--fs-s); color: var(--muted); }
.qhead { display: flex; align-items: center; justify-content: space-between; }
.qq { font-size: 24px; line-height: 1.35; }
.source { margin: 0; font-size: var(--fs-s); background: var(--primary-soft); color: var(--ink-2); padding: 8px 12px; border-radius: 12px; }
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-3); }
.reuse { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.reuse .icon { color: var(--success); flex: none; }
.stores { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.stores a.chip { text-decoration: none; }
.wait__fold { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.wait__fold > summary { list-style: none; display: flex; align-items: center; gap: var(--s-3); min-height: 48px; padding: var(--s-2) var(--s-4); cursor: pointer; font-weight: 700; font-size: var(--fs-s); border-radius: var(--r-card); }
.wait__fold > summary::-webkit-details-marker { display: none; }
.wait__fold[open] > summary .fold__chev { transform: rotate(180deg); }
.wait__fold > summary:focus-visible { box-shadow: var(--focus-ring); }
.wait__fold .wait__rows { padding: 0 var(--s-3) var(--s-3); }
.wait__fold .wait__row { border-color: transparent; }
.terms__summary { background: var(--primary-soft); border-radius: 12px; padding: 8px 12px; margin: 0; color: var(--ink-2); }
.wait-note__joke { display: block; width: 100%; }

/* 기다리는 화면: 위 진행 칸은 작게, 아래에는 일 하나만 */
.wait--compact .wait__top { gap: 4px; }
.wait--compact .wait__title { font-size: var(--fs-l); margin: 0; }
.wait--compact .wait__hero { display: flex; justify-content: center; }
.donechips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; min-height: 32px; }
.donechip { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px 0 8px; border-radius: var(--r-pill); background: var(--success-bg); color: var(--success-ink); font-weight: 700; font-size: 13px; white-space: nowrap; }
.donechip--muted { background: var(--surface-2); color: var(--muted); }
/* 「다음」 단추: 화면 아래에 붙여 둬서 위의 카드가 바뀌어도 제자리에 있다. */
.page--wait { display: flex; flex-direction: column; min-height: calc(100svh - var(--topbar-h)); }
.page--wait > .sec { flex: 1 1 auto; display: flex; flex-direction: column; }
.cta--dock { position: sticky; bottom: 0; margin-top: auto; padding: 12px 0 calc(8px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 78%, rgba(255, 249, 233, 0)); z-index: 5; }
.tg-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-s); }
.tg-steps li { display: flex; gap: 8px; align-items: flex-start; }
.tg-steps__n { flex: none; font-weight: 800; color: var(--primary-ink); }
.store-here { font-size: var(--fs-s); font-weight: 800; color: var(--success-ink); }
.stores--list { flex-direction: column; align-items: stretch; width: 100%; }
.stores--list a.chip { justify-content: flex-start; min-height: 44px; border-radius: var(--r-ctrl); }
.stores--list a.chip .store-here { margin-left: auto; }
.stores--list a.chip.is-here { font-weight: 800; box-shadow: 0 0 0 2px var(--success); }
/* 맨 위 진행 칸을 작게: 펭귄·제목·상태·시간을 한 덩어리로 좁힌다(높이는 여전히 정해져 있다). */
.wait--compact .wait__hero { width: 56px; height: 56px; }
.wait--compact .wait__title { min-height: 1.3em; font-size: var(--fs-l); }
.wait--compact .wait__status { min-height: 1.6em; font-size: var(--fs-s); flex-direction: row; gap: 8px; justify-content: center; flex-wrap: wrap; }
.wait--compact .wait__time { min-height: 1.4em; }
.wait--compact .wait__joke { min-height: 1.6em; font-size: var(--fs-s); }
.wait--compact .wait__fold > summary { min-height: 40px; }
.wait--compact .wait__penguin { width: 56px; height: 56px; }
.btn.is-preselected { box-shadow: 0 0 0 3px var(--primary-soft, rgba(37, 99, 235, .25)), 0 0 0 5px var(--primary, #2563eb); }
/* 중요한 질문: 저장 상태 한 줄(자리를 늘 잡는다), 「기타」 쓰기 칸 */
.savestate { margin: 0; min-height: 20px; }
.other { margin-top: var(--s-2); }
.other .textarea { width: 100%; }
