/* app.css — 함께워크 ON 사용자(멤버) 페이지 셸
   ※ 디자인 토큰·기본 컴포넌트(btn/inp/field/modal/toast/tag/card/table)는 admin.css를 그대로 재사용.
      여기서는 모바일 우선 멤버 셸 레이아웃 + S2 전용 컴포넌트(스텝·견적·서명·OTP)만 추가. */

body.won-app { background: var(--bg); word-break: keep-all; }

/* ─────────── 앱 셸 레이아웃(모바일 우선, 가운데 정렬 컬럼 ~520px) ─────────── */
.app-shell { min-height: 100vh; max-width: 520px; margin: 0 auto; background: var(--bg); display: flex; flex-direction: column; position: relative; }
.app-bar {
  position: sticky; top: 0; z-index: 40; height: 56px; display: flex; align-items: center; gap: 10px;
  padding: 0 16px; background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.app-brand { font-size: 16px; font-weight: 800; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; letter-spacing: -.01em; }
.app-brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(26,139,70,.18); }
.app-bar .spacer { flex: 1; }
.app-bar-actions { display: flex; align-items: center; gap: 8px; }
.app-bar-actions .who { font-size: 12.5px; color: var(--muted); font-weight: 600; }

.app-main { flex: 1; padding: 18px 16px calc(78px + env(safe-area-inset-bottom)); width: 100%; }

/* 하단 탭바 */
.app-tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 520px; z-index: 45;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: rgba(255,255,255,.94); backdrop-filter: saturate(180%) blur(8px);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.app-tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px;
  min-height: 52px; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--soft); text-decoration: none; transition: color .18s ease;
}
.app-tabbar a .ic { width: 22px; height: 22px; }
.app-tabbar a .ic svg { width: 22px; height: 22px; }
.app-tabbar a.active { color: var(--green-d); }
.app-tabbar a:active { background: var(--line2); }

/* ─────────── 페이지 헤더 ─────────── */
.page-head { margin: 4px 0 16px; }
.page-head h1 { font-size: 21px; font-weight: 800; margin: 0 0 4px; letter-spacing: -.01em; }
.page-head p { color: var(--muted); font-size: 13px; margin: 0; }
.back-link { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); font-weight: 600; background: none; border: 0; cursor: pointer; padding: 6px 0; margin-bottom: 4px; }
.back-link:hover { color: var(--ink2); }

/* ─────────── 히어로/안내 ─────────── */
.hero { background: linear-gradient(135deg, var(--green) 0%, var(--green-d) 100%); color: #fff; border-radius: var(--radius); padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow); }
.hero h2 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.hero p { margin: 0; font-size: 13px; opacity: .92; }
.hero .btn { margin-top: 14px; background: #fff; color: var(--green-d); border-color: #fff; }

/* ─────────── 멤버 상품 카드 ─────────── */
.prod-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow-sm); cursor: pointer; transition: var(--t); }
.prod-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.prod-card .pc-top { display: flex; align-items: flex-start; gap: 10px; }
.prod-card .pc-name { font-size: 15.5px; font-weight: 800; }
.prod-card .pc-alias { color: var(--muted); font-size: 12px; }
.prod-card .pc-price { font-size: 20px; font-weight: 800; letter-spacing: -.01em; margin-top: 8px; }
.prod-card .pc-price small { font-size: 12px; color: var(--muted); font-weight: 600; }
.prod-card .pc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
/* S9: 비상주 혜택(features) 미리보기 칩 + 상세 혜택 리스트 */
.prod-card .pc-feats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.prod-card .pc-feats .feat-chip { font-size: 11.5px; font-weight: 600; color: var(--green-d); background: var(--green-soft); border-radius: 7px; padding: 3px 9px; }
.feat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.feat-list li { position: relative; padding-left: 22px; font-size: 13.5px; color: var(--ink); line-height: 1.5; }
.feat-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green-d); font-weight: 800; }

/* ─────────── 스텝퍼(구매·가입) ─────────── */
.stepper { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; }
.stepper .step { flex: 1; height: 5px; border-radius: 999px; background: var(--line); transition: var(--t); }
.stepper .step.on { background: var(--green); }
.stepper .step.done { background: var(--green-l); }
.step-label { font-size: 12px; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
.step-label b { color: var(--green-d); }

/* ─────────── OTP 입력 ─────────── */
.otp-hint { background: var(--green-soft); color: var(--green-d); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 12.5px; font-weight: 600; margin-bottom: 12px; }
.otp-row { display: flex; gap: 10px; align-items: flex-end; }
.otp-row .field { flex: 1; margin-bottom: 0; }

/* ─────────── 견적 요약 ─────────── */
.quote { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; box-shadow: var(--shadow-sm); }
.quote .q-row { display: flex; justify-content: space-between; padding: 12px 16px; font-size: 13.5px; border-bottom: 1px solid var(--line2); }
.quote .q-row .q-label { color: var(--ink2); }
.quote .q-row .q-amt { font-weight: 700; }
.quote .q-row.minus .q-amt { color: var(--green-d); }
.quote .q-total { display: flex; justify-content: space-between; padding: 16px; background: var(--panel2); }
.quote .q-total .q-label { font-weight: 800; font-size: 14px; }
.quote .q-total .q-amt { font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.quote .q-monthly { padding: 10px 16px; font-size: 12.5px; color: var(--muted); background: var(--panel2); border-top: 1px solid var(--line2); }

/* ─────────────────────────────────────────────────────────────────────
   2026-05-28: 월자동청구 견적 직관화 — 오늘 결제·매월 자동청구 큰 카드
   ───────────────────────────────────────────────────────────────────── */
.quote.auto { background: transparent; box-shadow: none; border: 0; }
.quote .q-billcards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
@media (max-width: 480px) { .quote .q-billcards { grid-template-columns: 1fr; } }
.quote .q-billcard { border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; padding: 16px 18px; box-shadow: var(--shadow-sm); }
.quote .q-billcard.primary { background: var(--green-soft); border-color: var(--green); }
.quote .q-billcard .qb-head { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--ink2); margin-bottom: 8px; }
.quote .q-billcard.primary .qb-head { color: var(--green-d); }
.quote .q-billcard .qb-ic { font-size: 14px; }
.quote .q-billcard .qb-amt { font-size: 22px; font-weight: 900; letter-spacing: -.02em; color: var(--ink); }
.quote .q-billcard.primary .qb-amt { color: var(--green-d); }
.quote .q-billcard .qb-amt .qb-unit { font-size: 13px; font-weight: 700; color: var(--muted); margin-left: 2px; }
.quote .q-billcard .qb-sub { font-size: 12px; color: var(--soft); margin-top: 6px; line-height: 1.45; }
.quote .q-billcard.primary .qb-sub { color: var(--green-d); opacity: .9; }
.quote .q-prepaid-note { font-size: 12.5px; color: var(--muted); margin: 8px 2px 12px; line-height: 1.5; }
.quote .q-detail { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.quote .q-detail.muted { border-color: var(--line2); opacity: .85; }
.quote .q-detail-cap { padding: 8px 16px; font-size: 11.5px; font-weight: 700; color: var(--soft); background: var(--panel2); border-bottom: 1px solid var(--line2); letter-spacing: .02em; }

/* 도움말 ? 버튼(라벨 옆에 인라인) — 나이트워크 등 옵션 설명 모달 트리거 */
.help-btn { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--soft); background: #fff; color: var(--soft); font-weight: 800; font-size: 11.5px; line-height: 1; cursor: pointer; padding: 0; margin-left: 4px; vertical-align: middle; transition: var(--t); }
.help-btn:hover { border-color: var(--green); color: var(--green); background: var(--green-soft); }
.nw-help ul { padding-left: 18px; margin: 8px 0 4px; line-height: 1.7; font-size: 13px; }
.nw-help li { margin-bottom: 4px; }
.nw-help li b { color: var(--ink); }
.notice-box { background: var(--warn-soft); color: #92400e; border-radius: var(--radius-sm); padding: 12px 14px; font-size: 12.5px; line-height: 1.5; margin: 14px 0; }

/* ─────────── 전자계약 ─────────── */
/* 본문은 모달·풀스크린 어디든 짤리지 않게 충분히 크고, 가독성 위주(line-height 1.8 / padding 20px) */
.contract-body { white-space: pre-wrap; background: var(--panel2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 22px; font-size: 13.5px; line-height: 1.8; max-height: min(70vh, 720px); min-height: 320px; overflow-y: auto; color: var(--ink); letter-spacing: -0.1px; word-break: keep-all; overflow-wrap: anywhere; -webkit-overflow-scrolling: touch; }
/* 조항 헤더(제N조) — 마크업으로 h4/strong/b 사용 시 시각 강조 */
.contract-body h4, .contract-body strong, .contract-body b { display: inline-block; font-weight: 800; color: var(--ink); font-size: 14px; letter-spacing: -0.2px; }
.contract-body h4 { display: block; margin: 18px 0 8px; padding-top: 10px; border-top: 1px dashed var(--line2); color: var(--green-deep, #16a34a); font-size: 14.5px; }
.contract-body h4:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.contract-body p { margin: 0 0 10px; }
.contract-body ul, .contract-body ol { padding-left: 22px; margin: 6px 0 12px; }
.contract-body li { margin-bottom: 4px; }
/* 본문 내부에 "제N조" 텍스트를 식별 가능한 라인이 들어올 때 별도 강조 클래스(서버/렌더 측 옵션) */
.contract-body .article { display: block; margin: 18px 0 6px; padding-top: 10px; border-top: 1px dashed var(--line2); font-weight: 800; color: var(--green-deep, #16a34a); font-size: 14.5px; }
.contract-body .article:first-child { border-top: 0; padding-top: 0; margin-top: 0; }

/* 서명란 — 본문과 시각적으로 분리 */
.sign-wrap { margin-top: 24px; padding-top: 20px; border-top: 2px solid var(--line); }
.sign-wrap .sign-label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.sign-canvas { width: 100%; height: 180px; border: 2px dashed var(--line); border-radius: var(--radius-sm); background: #fff; touch-action: none; cursor: crosshair; display: block; }
.sign-canvas.signed { border-style: solid; border-color: var(--green); }
.sign-tools { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.sign-tools .hint { font-size: 12px; color: var(--soft); }

/* ─────────── 약관 동의 ─────────── */
.agree-list { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.agree-item { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-bottom: 1px solid var(--line2); }
.agree-item:last-child { border-bottom: 0; }
.agree-item input { width: 18px; height: 18px; accent-color: var(--green); flex: 0 0 18px; }
.agree-item .a-label { flex: 1; font-size: 13.5px; font-weight: 600; }
.agree-item .a-label .req { color: var(--danger); font-size: 11px; font-weight: 700; margin-left: 4px; }
.agree-item .a-label .opt { color: var(--muted); font-size: 11px; font-weight: 600; margin-left: 4px; }
.agree-item .a-view { font-size: 12px; color: var(--muted); background: none; border: 0; cursor: pointer; text-decoration: underline; }
.agree-all { display: flex; align-items: center; gap: 10px; padding: 13px 14px; background: var(--panel2); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; font-weight: 800; font-size: 14px; }
.agree-all input { width: 19px; height: 19px; accent-color: var(--green); }

/* ─────────── 리스트 행(계약·결제) ─────────── */
.list-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.list-card .lc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.list-card .lc-title { font-size: 14.5px; font-weight: 800; }
.list-card .lc-sub { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.list-card .lc-amt { font-size: 16px; font-weight: 800; white-space: nowrap; }
.list-card .lc-foot { display: flex; gap: 7px; margin-top: 12px; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; margin-top: 10px; }
.kv .k { color: var(--muted); }
.kv .v { font-weight: 600; text-align: right; }

/* 고정 하단 액션바(구매·결제 단계) */
.action-bar { position: sticky; bottom: 0; margin: 18px -16px -18px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-top: 1px solid var(--line); display: flex; gap: 10px; }
.action-bar .btn { flex: 1; justify-content: center; padding: 13px; font-size: 14.5px; }

/* 좌석 선택 그리드 */
.seat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; }
.seat-pick { border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; padding: 12px 4px; text-align: center; font-weight: 700; font-size: 13px; cursor: pointer; transition: var(--t); }
.seat-pick:hover { border-color: var(--green); }
.seat-pick.on { background: var(--green); color: #fff; border-color: var(--green); }
.seat-pick.taken { background: var(--line2); color: var(--soft); cursor: not-allowed; }

/* 성공 화면 */
.success { text-align: center; padding: 40px 16px; }
.success .ck { width: 72px; height: 72px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin: 0 auto 16px; }
.success .ck svg { width: 38px; height: 38px; }
.success h2 { font-size: 20px; font-weight: 800; margin: 0 0 6px; }
.success p { color: var(--muted); font-size: 13.5px; margin: 0 0 18px; }

/* 데스크톱: 셸 폭(520px 컬럼) 유지. 하단 탭바는 컬럼 내에 그대로 고정 노출. */
@media (min-width: 600px) {
  .app-shell { box-shadow: 0 0 0 1px var(--line); }
}

/* ════════════════════════ S3 — 출입·좌석·나이트워크 + 홈 (UI 비주얼가이드 준수) ════════════════════════ */

/* 버튼 터치 타겟 44px+ · 로딩 스피너 · 큰 CTA */
.won-app .btn { min-height: 44px; transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .12s ease; }
.won-app .btn.sm { min-height: 34px; }
.won-app .btn.lg { padding: 15px 18px; font-size: 15.5px; font-weight: 800; border-radius: var(--radius-md); }
.won-app .btn .ic { width: 18px; height: 18px; display: inline-flex; }
.won-app .btn .ic svg { width: 18px; height: 18px; }
.won-app .btn[disabled] { position: relative; }
.won-app .btn .ic + span { margin-left: 2px; }
/* S26 A5: withLoading 처리 중 상태 — 반투명·대기 커서(라벨은 '처리 중…'으로 교체됨) */
/* ★ 핫픽스 2026-05-30 — .loading 페이지 인디케이터(padding 60px·::before 스피너)와 충돌 차단 위해 .btn-loading 전용 클래스 사용. */
.won-app .btn.btn-loading, .btn.btn-loading { opacity: .7; cursor: wait; pointer-events: none; }
.won-app .btn.loading, .btn.loading { opacity: .7; cursor: wait; }   /* 하위 호환 */

/* 스켈레톤 로딩(가이드 §6) */
.skeleton { border-radius: var(--radius); background: linear-gradient(100deg, var(--line2) 30%, #f3f6fa 50%, var(--line2) 70%); background-size: 200% 100%; animation: sk 1.2s ease-in-out infinite; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.sk-card { height: 110px; margin-bottom: 14px; }
.sk-line { height: 14px; margin: 8px 0; border-radius: 6px; }

/* 페이지/뷰 등장 모션 */
.app-main > * { animation: viewin .2s ease; }
@keyframes viewin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ─────────── 홈(#/home) — 첫인상 ─────────── */
.home-greet { margin: 6px 2px 18px; }
.home-greet h1 { font-size: 23px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.home-greet h1 span { color: var(--muted); font-weight: 700; font-size: 17px; margin-left: 2px; }
.home-greet p { color: var(--muted); font-size: 13.5px; margin: 5px 0 0; }

.home-usage > h3, .section > h3 .ic { display: inline-flex; }
.section > h3 .ic { width: 18px; height: 18px; color: var(--green-d); }
.section > h3 .ic svg { width: 18px; height: 18px; }

/* 이용현황 — 미체크인(큰 CTA) */
.usage-idle { text-align: center; padding: 8px 4px 4px; }
.usage-idle .ui-msg { color: var(--muted); font-size: 13.5px; line-height: 1.6; margin-bottom: 14px; }
.usage-idle .ui-actions { display: flex; flex-direction: column; gap: 10px; }
.usage-idle .ui-actions .btn { width: 100%; justify-content: center; }

/* 이용현황 — 체크인 중(라이브 카드) */
.usage-live { border: 1px solid var(--green); border-radius: var(--radius-md); overflow: hidden; background: linear-gradient(180deg, var(--green-soft), #fff 60%); }
.usage-live.out { border-color: var(--warn); background: linear-gradient(180deg, var(--warn-soft), #fff 60%); }
.usage-live .ul-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 14px; }
.usage-live .ul-seat { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.usage-live .ul-zone { color: var(--muted); font-size: 12.5px; margin-top: 6px; display: flex; align-items: center; }
.usage-live .ul-remain { text-align: right; }
.usage-live .ul-remain .r-label { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.usage-live .ul-remain .r-val { font-size: 18px; font-weight: 800; color: var(--green-d); margin-top: 3px; font-variant-numeric: tabular-nums; }
.usage-live.out .ul-remain .r-val { color: var(--warn); }
.usage-live .ul-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 0 14px 14px; }
.usage-live .ul-actions .btn { justify-content: center; padding: 11px 6px; font-size: 12.5px; }
.yield-banner { display: flex; align-items: center; gap: 9px; background: #eef2ff; color: #3730a3; border-radius: var(--radius-sm); padding: 11px 13px; font-size: 12.5px; margin-bottom: 12px; line-height: 1.5; }
.yield-banner .ic, .yield-banner .ic svg { width: 18px; height: 18px; flex: 0 0 18px; }

/* 멤버십 요약 행 */
.ms-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line2); }
.ms-row:last-child { border-bottom: 0; padding-bottom: 0; }
.ms-row .ms-name { font-size: 14.5px; font-weight: 800; }
.ms-row .ms-sub { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.ms-row .ms-left { text-align: right; white-space: nowrap; }
.ms-row .ms-left b { font-size: 20px; font-weight: 800; color: var(--green-d); }
.ms-row .ms-left span { font-size: 12px; color: var(--muted); margin-left: 2px; }

/* 나이트워크 카드(홈) */
.nw-card .nwc-row { display: flex; align-items: center; gap: 12px; }
.nw-card .nwc-ic { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; background: #1e293b; color: #fbbf24; display: grid; place-items: center; }
.nw-card .nwc-ic svg { width: 22px; height: 22px; }
.nw-card .nwc-title { font-size: 14.5px; font-weight: 800; }
.nw-card .nwc-sub { color: var(--muted); font-size: 12.5px; margin-top: 3px; }

/* 공지·바로가기 */
.notice-row { font-size: 13px; padding: 4px 0 12px; }
.home-links { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.home-links .btn { justify-content: center; font-size: 12.5px; padding: 11px 4px; }

/* ─────────── 체크인(#/access) ─────────── */
.checkin-hero { text-align: center; padding: 30px 16px 8px; }
.checkin-hero .ci-ic { width: 84px; height: 84px; border-radius: 24px; background: var(--green-soft); color: var(--green-d); display: grid; place-items: center; margin: 0 auto 18px; }
.checkin-hero .ci-ic svg { width: 42px; height: 42px; }
.checkin-hero .ci-title { font-size: 20px; font-weight: 800; }
.checkin-hero .ci-sub { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.gps-note { display: flex; gap: 10px; align-items: flex-start; background: var(--panel2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 14px; margin: 18px 0; font-size: 12.5px; color: var(--ink2); line-height: 1.55; }
.gps-note .ic, .gps-note .ic svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--green-d); }

/* ─────────── 나이트워크(#/nightwalk) ─────────── */
.nw-banner { display: flex; align-items: center; gap: 12px; border-radius: var(--radius); padding: 16px; margin-bottom: 14px; background: #0f172a; color: #e2e8f0; }
.nw-banner.on { background: linear-gradient(135deg, #1e293b, #0f172a); }
.nw-banner .nw-ic { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 11px; background: rgba(251,191,36,.16); color: #fbbf24; display: grid; place-items: center; }
.nw-banner .nw-ic svg { width: 22px; height: 22px; }
.nw-banner .nw-title { font-size: 15px; font-weight: 800; }
.nw-banner .nw-sub { font-size: 12px; opacity: .82; margin-top: 3px; }
.nw-h3 { font-size: 14px; font-weight: 800; margin: 18px 2px 12px; }
.nw-h3 .muted { color: var(--muted); font-weight: 600; margin-left: 6px; }
.seat-pick.nw { display: flex; flex-direction: column; gap: 2px; padding: 14px 4px; min-height: 60px; justify-content: center; }
.seat-pick.nw small { font-size: 10.5px; color: var(--soft); font-weight: 600; }
.seat-pick.nw.fixed { border-color: var(--warn); }
.seat-pick.nw.fixed small { color: var(--warn); }
.seat-pick.nw:hover { border-color: var(--green); box-shadow: var(--shadow-sm); }
.seat-pick.nw:active { transform: translateY(.5px); }

/* ─────────── 모바일 바텀시트 모달(가이드 §4) ─────────── */
@media (max-width: 560px) {
  .won-app .modal-backdrop { align-items: flex-end; padding: 0; }
  .won-app .modal { max-width: 520px; border-radius: 18px 18px 0 0; animation: sheetup .22s cubic-bezier(.2,.8,.2,1); }
  .won-app .modal.wide { max-width: 520px; }
  @keyframes sheetup { from { transform: translateY(100%); } to { transform: none; } }
}

/* ─────────── 결제 복귀(payment-success/fail) ─────────── */
.pay-result { padding: 44px 16px; }
.pay-result .ck { width: 76px; height: 76px; }
.pay-result .ck.fail { background: var(--danger-soft); color: var(--danger); }
.pay-result .pay-amt { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 10px; font-variant-numeric: tabular-nums; }
.pay-result p { max-width: 360px; margin: 0 auto 22px; line-height: 1.6; }
.pay-actions { display: flex; flex-direction: column; gap: 10px; max-width: 320px; margin: 0 auto; }
.pay-actions .btn { width: 100%; justify-content: center; }

/* ════════════════════════ S4 — 공지 배너 · 할인 직관표시 (UI 비주얼가이드 준수) ════════════════════════ */

/* 홈 최상단 공지 배너 */
.notice-banner { border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); margin-bottom: 16px; overflow: hidden; }
.notice-banner .nb-head { display: flex; align-items: center; gap: 8px; padding: 11px 14px 9px; }
.notice-banner .nb-ic { width: 18px; height: 18px; color: var(--green-d); display: inline-flex; }
.notice-banner .nb-ic svg { width: 18px; height: 18px; }
.notice-banner .nb-h { font-size: 12.5px; font-weight: 800; color: var(--ink2); letter-spacing: .01em; }
.notice-banner .nb-count { font-size: 11px; font-weight: 700; color: var(--green-d); background: var(--green-soft); border-radius: 999px; padding: 1px 8px; }
.notice-banner .nb-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line2); padding: 13px 14px; min-height: 44px; cursor: pointer; transition: background .15s ease; }
.notice-banner .nb-item:hover { background: var(--panel2); }
.notice-banner .nb-item:active { background: var(--line2); }
.notice-banner .nb-title { flex: 1; font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice-banner .nb-date { font-size: 11.5px; color: var(--soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.nb-modal-period { font-size: 12px; color: var(--muted); margin-bottom: 10px; font-weight: 600; }

/* 상품 카드 할인 배지 */
.pc-disc { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.pc-disc .disc-badge { font-size: 12px; font-weight: 800; color: #fff; background: var(--green); border-radius: 7px; padding: 3px 10px; letter-spacing: -.01em; }
.pc-disc .disc-sub { font-size: 11.5px; color: var(--muted); font-weight: 600; }

/* 상품 상세 할인 혜택 리스트 */
.disc-list { display: flex; flex-direction: column; gap: 0; }
.disc-row { display: flex; align-items: center; gap: 10px; padding: 11px 2px; border-bottom: 1px solid var(--line2); font-size: 13.5px; }
.disc-row:last-child { border-bottom: 0; }
.disc-row .disc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: 0 0 7px; }
.disc-row .disc-label { flex: 1; color: var(--ink2); font-weight: 600; }
.disc-row .disc-val { font-weight: 800; color: var(--green-d); font-variant-numeric: tabular-nums; }

/* 견적표 절약액 강조 */
.quote .q-save { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; background: var(--green-soft); border-top: 1px solid var(--green-l); }
.quote .q-save .qs-label { font-size: 12.5px; font-weight: 700; color: var(--green-d); }
.quote .q-save .qs-val { font-size: 13.5px; color: var(--green-d); }
.quote .q-save .qs-val b { font-size: 15.5px; font-weight: 800; letter-spacing: -.01em; }

/* ════════════════════════ S5 — 회의실 예약 · 포인트 · 정기휴업 ════════════════════════ */

/* 앱바 포인트 잔액 칩 */
.point-chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--green-l); background: var(--green-soft); color: var(--green-d); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; font-weight: 800; cursor: pointer; font-variant-numeric: tabular-nums; }
.point-chip:active { transform: translateY(.5px); }
.point-chip .pc-p { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--green); color: #fff; font-size: 10px; }

/* 회의실 선택 pill */
.room-pills { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; -webkit-overflow-scrolling: touch; }
.room-pill { flex: 0 0 auto; display: flex; flex-direction: column; gap: 2px; text-align: left; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; padding: 9px 14px; cursor: pointer; transition: var(--t); min-width: 120px; }
.room-pill b { font-size: 13.5px; font-weight: 800; }
.room-pill small { font-size: 11px; color: var(--muted); font-weight: 600; }
.room-pill.on { border-color: var(--green); background: var(--green-soft); }
.room-pill.on small { color: var(--green-d); }

/* 날짜 이동 바 + 잔여쿼터 칩 */
.rday-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.rday-label { font-size: 14.5px; font-weight: 800; min-width: 116px; }
.rday-pick { width: auto; padding: 5px 8px; font-size: 12.5px; }
.rquota-chip { font-size: 11.5px; font-weight: 700; color: var(--green-d); background: var(--green-soft); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }

/* 캘린더 범례 */
.rcal-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11.5px; color: var(--muted); margin: 2px 2px 8px; align-items: center; }
.rcal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.rcal-legend .lg { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.rcal-legend .lg.mine { background: var(--green); }
.rcal-legend .lg.taken { background: #e2e8f0; border: 1px solid #cbd5e1; }
.rcal-legend .lg.closed { background: repeating-linear-gradient(45deg, rgba(148,163,184,.4), rgba(148,163,184,.4) 4px, rgba(148,163,184,.15) 4px, rgba(148,163,184,.15) 8px); }

/* 예약 결제 모달 */
.pay-note { background: var(--panel2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13px; margin-top: 12px; }
.pay-note .muted { color: var(--muted); font-size: 12px; }
.reserve-pay-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.reserve-pay-actions .btn { width: 100%; justify-content: center; padding: 13px; font-size: 14px; }

/* 포인트함 — 잔액 카드 */
.point-balance { background: linear-gradient(135deg, var(--green) 0%, var(--green-d) 100%); color: #fff; border-radius: var(--radius); padding: 22px; margin-bottom: 16px; box-shadow: var(--shadow); }
.point-balance .pb-label { font-size: 12.5px; opacity: .9; font-weight: 700; }
.point-balance .pb-val { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.point-balance .pb-sub { font-size: 12px; opacity: .88; }

/* 포인트 내역 */
.ledger-list { display: flex; flex-direction: column; }
.ledger-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 2px; border-bottom: 1px solid var(--line2); }
.ledger-row:last-child { border-bottom: 0; }
.ledger-row .lr-title { font-size: 13.5px; font-weight: 700; }
.ledger-row .lr-sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.ledger-row .lr-amt { font-size: 15px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ledger-row .lr-amt.plus { color: var(--green-d); }
.ledger-row .lr-amt.minus { color: var(--ink2); }

/* 미납 재결제 */
.overdue-sec { border-left: 3px solid var(--warn); }
.overdue-total { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: var(--panel2); border-radius: var(--radius-sm); margin-top: 6px; }
.overdue-total b { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* 정기휴업 안내 카드(홈) */
.closure-card .closure-rules { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.closure-card .cr-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink2); }
.closure-card .cr-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); flex: 0 0 7px; }
.closure-card .closure-next-wrap { border-top: 1px solid var(--line2); padding-top: 12px; }
.closure-card .cn-head { font-size: 11.5px; font-weight: 800; color: var(--muted); margin-bottom: 8px; letter-spacing: .02em; }
.closure-card .closure-next { display: flex; flex-direction: column; gap: 8px; }
.closure-card .cn-row { display: flex; gap: 10px; font-size: 13px; }
.closure-card .cn-date { font-weight: 800; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 64px; }
.closure-card .cn-when { color: var(--muted); }

/* ═══════════════ S6 — 알림함 + 앱바 벨 뱃지 ═══════════════ */
/* 앱바 알림 벨 */
.bell-btn { position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink2); cursor: pointer; }
.bell-btn:active { transform: translateY(.5px); }
.bell-btn .ic { width: 18px; height: 18px; display: inline-flex; }
.bell-btn .ic svg { width: 18px; height: 18px; }
.bell-badge { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 17px; text-align: center; box-shadow: 0 0 0 2px #fff; }

/* 알림함 */
.notif-head { display: flex; align-items: center; gap: 8px; margin: 4px 0 12px; }
.notif-head .nh-count { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.notif-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; box-shadow: var(--shadow-sm); }
.notif-item { display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line2); padding: 14px; cursor: pointer; }
.notif-item:first-child { border-top: 0; }
.notif-item:hover { background: var(--panel2); }
.notif-item.unread { background: var(--green-soft); }
.notif-item.unread:hover { background: #e1f1e8; }
.notif-item .ni-ic { flex: 0 0 auto; width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 9px; background: var(--green-soft); color: var(--green-d); }
.notif-item.unread .ni-ic { background: #fff; }
.notif-item .ni-ic svg { width: 18px; height: 18px; }
.notif-item .ni-body { flex: 1; min-width: 0; }
.notif-item .ni-title { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; color: var(--ink); }
.notif-item .ni-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--danger); flex: 0 0 auto; }
.notif-item .ni-text { font-size: 13px; color: var(--ink2); margin-top: 3px; line-height: 1.5; word-break: break-word; }
.notif-item .ni-time { font-size: 11.5px; color: var(--soft); margin-top: 5px; }

/* S7: 체크인 소프트 지오펜싱 경고 */
.notice-box.warn-box { background: var(--warn-soft); color: #92400e; }

/* S7: 센터 위치안내 카드(#/home) */
.loc-card .loc-addr { margin-bottom: 12px; }
.loc-card .la-name { font-size: 14px; font-weight: 800; color: var(--ink); }
.loc-card .la-text { font-size: 13px; color: var(--ink2); margin-top: 3px; line-height: 1.5; word-break: keep-all; }
.loc-card .loc-map { width: 100%; height: 200px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--panel2); margin-bottom: 12px; }
.loc-card .loc-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.loc-card .loc-actions .btn { flex: 1; min-width: 120px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.loc-card .loc-actions .btn .ic { width: 16px; height: 16px; }

/* ════════════════════════ S10 — 사용자 좌석 도면 허브(#/seatmap) + 이용 이력 ════════════════════════ */

/* 헤더(제목 + 이용이력) */
.sm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin: 4px 0 14px; }
.sm-head h1 { font-size: 21px; font-weight: 800; margin: 0 0 4px; letter-spacing: -.01em; }
.sm-head p { color: var(--muted); font-size: 13px; margin: 0; }
.sm-head .btn .ic, .sm-head .btn .ic svg { width: 15px; height: 15px; }

/* 상단 혼잡도 */
.sm-congest { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); padding: 14px 16px; margin-bottom: 12px; }
.sm-congest .sm-cg-top { display: flex; align-items: center; gap: 14px; }
.sm-cg-main { white-space: nowrap; }
.sm-cg-main .cg-pct { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.sm-cg-main .cg-label { font-size: 12.5px; font-weight: 700; margin-top: 4px; }
.sm-cg-main .cg-label span { color: var(--muted); font-weight: 600; }
.sm-cg-bar { flex: 1; height: 10px; border-radius: 999px; background: var(--line2); overflow: hidden; }
.sm-cg-bar span { display: block; height: 100%; border-radius: 999px; background: var(--green); transition: width .4s ease; }
.sm-congest.calm .cg-pct { color: var(--green-d); }   .sm-congest.calm .sm-cg-bar span { background: var(--green); }
.sm-congest.mid  .cg-pct { color: var(--warn); }       .sm-congest.mid  .sm-cg-bar span { background: var(--warn); }
.sm-congest.busy .cg-pct { color: var(--danger); }     .sm-congest.busy .sm-cg-bar span { background: var(--danger); }
.sm-cg-zones { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.sm-zchip { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel2); padding: 6px 11px; cursor: pointer; transition: var(--t); }
.sm-zchip b { font-size: 12px; font-weight: 800; color: var(--ink); }
.sm-zchip span { font-size: 11px; color: var(--green-d); font-weight: 700; }
.sm-zchip.full span { color: var(--soft); }
.sm-zchip:hover { border-color: var(--green); }

/* 도구바(검색·내자리·줌) */
.sm-tools { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.sm-search-wrap { position: relative; flex: 1; display: flex; align-items: center; }
.sm-search-wrap .ic { position: absolute; left: 11px; width: 16px; height: 16px; color: var(--soft); pointer-events: none; }
.sm-search-wrap .ic svg { width: 16px; height: 16px; }
.sm-search { padding-left: 34px !important; height: 40px; }
.sm-tool-btns { display: flex; gap: 6px; }
.sm-tool-btns .btn .ic, .sm-tool-btns .btn .ic svg { width: 15px; height: 15px; }
.sm-tool-btns .zoom-btn { min-width: 40px; font-size: 18px; font-weight: 800; line-height: 1; padding: 0; justify-content: center; }

.sm-zones { margin-bottom: 12px; }
.sm-zdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }

/* 도면 뷰포트(스크롤=팬) + 캔버스(줌) — S13: 사용자 도면은 모바일 우선(뷰포트 폭에 fit). 컨테이너 쿼리 기준 */
.sm-viewport { container-type: inline-size; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel2); overflow: auto; max-height: 56vh; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; }
/* 기본 줌(1)에서 전체 배치가 폰 폭에 한눈에 들어오도록 캔버스는 뷰포트 폭(100%)을 채운다. 줌(--sm-zoom>1)·핀치 시 transform 으로 확대→팬 스크롤. */
.sm-canvas { transform: scale(var(--sm-zoom, 1)); transform-origin: 0 0; padding: 14px; display: flex; flex-direction: column; gap: 16px; width: 100%; }

/* 구역 클러스터 */
.sm-cluster { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 10px 12px 12px; }
.sm-cluster-label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; color: var(--ink2); margin-bottom: 10px; }
.sm-cluster-label span { font-size: 11px; font-weight: 700; color: var(--muted); background: var(--panel2); border-radius: 999px; padding: 1px 8px; }
.sm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 7px; }
.sm-grid.coords { grid-auto-rows: 56px; }

/* 좌석 셀 */
.sm-seat { position: relative; min-height: 56px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; transition: var(--t); padding: 6px 4px; min-width: 0; }
.sm-seat:hover { box-shadow: var(--shadow-sm); }
.sm-seat:active { transform: translateY(.5px); }
.sm-seat .sm-label { font-weight: 800; font-size: 13.5px; letter-spacing: -.01em; }
.sm-seat .sm-meta { font-size: 10px; font-weight: 600; opacity: .85; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-seat.av { background: #fff; border-color: var(--line); color: var(--ink2); }
.sm-seat.oc { background: var(--green-soft); border-color: var(--green); color: var(--green-d); }
.sm-seat.ot { background: var(--warn-soft); border-color: var(--warn); color: #92400e; }
.sm-seat.mt { background: #f1f5f9; border-color: #cbd5e1; color: var(--soft); cursor: default; }
.sm-seat.mine { background: var(--green); border-color: var(--green-d); color: #fff; box-shadow: 0 0 0 3px rgba(26,139,70,.25); animation: smpulse 1.8s ease-in-out infinite; }
.sm-seat.mine .sm-meta { opacity: .95; }
.sm-seat.owned { border-style: dashed; border-color: var(--green); }
.sm-seat.soon:not(.mine) { box-shadow: 0 0 0 2px rgba(217,119,6,.45); }
@keyframes smpulse { 0%,100% { box-shadow: 0 0 0 3px rgba(26,139,70,.25); } 50% { box-shadow: 0 0 0 6px rgba(26,139,70,.10); } }
.sm-seat .sm-mine-dot { position: absolute; top: 4px; left: 5px; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.5); }
.sm-seat .sm-nw { position: absolute; top: 3px; right: 4px; font-size: 9px; font-weight: 800; background: #6366f1; color: #fff; border-radius: 4px; padding: 1px 3px; }
.sm-seat .sm-owned-tag { position: absolute; bottom: 3px; right: 4px; font-size: 8.5px; font-weight: 800; color: var(--green-d); }

/* S12 통합 보드(전역 좌표 1캔버스: 구역 블록 배경 + 좌석)
   S13 모바일 우선: 고정 px 대신 뷰포트 폭(컨테이너)에 fit. 칸=정사각, 최대 44px 상한, 보드는 중앙정렬.
   --cell = (컨테이너폭 - 캔버스패딩 - 칸사이 gap합) / 칸수, 최대 44px → cols개 칸이 가로 넘침 없이 한눈에. (gap 2px·padding 14px×2≈32px 안전치) */
.sm-uni { --cell: min(44px, calc((100cqw - 32px - (var(--cols, 24) - 1) * 2px) / var(--cols, 24))); position: relative; display: grid; grid-template-columns: repeat(var(--cols, 24), var(--cell)); grid-auto-rows: var(--cell); gap: 2px; justify-content: center; width: 100%; }
.sm-zoneblock { position: relative; z-index: 0; background: color-mix(in srgb, var(--zc) 13%, #fff); border: 1.5px dashed var(--zc); border-radius: var(--radius-sm); }
.sm-zoneblock-name { position: absolute; top: 4px; left: 7px; font-size: 11px; font-weight: 800; color: var(--zc); white-space: nowrap; }
.sm-uni .sm-seat { z-index: 1; min-height: 0; height: 100%; padding: 1px; gap: 0; }
.sm-uni .sm-seat::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--zc, transparent); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.sm-uni .sm-seat.mine::before { display: none; }     /* 내 자리는 전체 그린 강조 */
/* 라벨은 칸 크기에 비례(작은 폰=작게·큰 칸=11px 상한) — 좁은 폰에서 줄바꿈/넘침 없이 한 줄 유지 */
.sm-uni .sm-seat .sm-label { font-size: clamp(8px, calc(var(--cell) * 0.4), 11px); line-height: 1.05; max-width: 100%; overflow: hidden; white-space: nowrap; }
.sm-uni .sm-seat .sm-meta { display: none; }          /* 작은 칸 — 상태는 색으로 표현(범례) */
/* S13: 작은 칸에 맞춰 배지·도트 축소 */
.sm-uni .sm-seat .sm-mine-dot { top: 2px; left: 2px; width: 6px; height: 6px; }
.sm-uni .sm-seat .sm-nw { top: 1px; right: 1px; font-size: 8px; padding: 0 2px; border-radius: 3px; }
.sm-uni .sm-seat .sm-owned-tag { bottom: 1px; right: 2px; font-size: 8px; }

/* 범례 */
.sm-legend { display: flex; gap: 13px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); margin-top: 12px; }
.sm-legend .sm-lg { display: inline-flex; align-items: center; gap: 5px; }
.sm-legend .sm-sw { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--line); display: inline-block; }
.sm-legend .sm-sw.av { background: #fff; } .sm-legend .sm-sw.oc { background: var(--green-soft); border-color: var(--green); }
.sm-legend .sm-sw.ot { background: var(--warn-soft); border-color: var(--warn); } .sm-legend .sm-sw.mt { background: #f1f5f9; }
.sm-legend .sm-sw.mine { background: var(--green); border-color: var(--green-d); }
.sm-legend .sm-sw.soon { box-shadow: 0 0 0 2px rgba(217,119,6,.45); }
.sm-legend .sm-sw.nw { background: #6366f1; color: #fff; border: 0; font-size: 9px; font-weight: 800; display: grid; place-items: center; }

/* ─────────────────────────────────────────────────────────────────────
   지정석 구매 좌석 선택기(seat-picker.js, 2026-05-28)
   · 전체 좌석 도면 위에 상품 zone만 활성, 타구역은 .dim 으로 흐림
   · 같은 zone이지만 점유/정비/내것 → .disabled (회색·클릭 차단)
   · 선택된 좌석 → .picked (파란 외곽 + scale)
   ───────────────────────────────────────────────────────────────────── */
.sp-host { margin-top: 6px; }
.sp-notice { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink2); padding: 6px 0 10px; }
.sp-notice .sp-zd { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--zc, var(--green)); }
.sp-notice .sp-z-label { font-weight: 800; color: var(--ink); }
.sp-notice .sp-z-sep { color: var(--soft); margin: 0 2px; }
.sp-notice .sp-empty { color: var(--warn); font-weight: 700; }
.sp-notice .sp-picked-tag { margin-left: auto; background: var(--green-soft); color: var(--green-d); font-weight: 800; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; }
.sp-viewport { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel2); padding: 12px; max-height: 56vh; overflow: auto; -webkit-overflow-scrolling: touch; }
.sp-uni { /* sm-uni 그대로 사용 + 변형만 추가 */ }
/* 다른 구역 — 시각만 보이고 비활성 */
.sm-uni .sm-seat.dim { opacity: .22; filter: grayscale(.6); cursor: not-allowed; pointer-events: none; }
.sm-uni .sm-zoneblock.dim { opacity: .35; }
/* 같은 구역이지만 점유·정비 — 회색 처리·클릭 차단(상태 색은 유지하되 채도 낮춤) */
.sm-uni .sm-seat.disabled { cursor: not-allowed; opacity: .55; }
.sm-uni .sm-seat.disabled:hover { box-shadow: none; }
/* 선택된 좌석 — 파란 외곽 + 살짝 확대 */
.sm-uni .sm-seat.picked { background: var(--green); border-color: var(--green-d); color: #fff; box-shadow: 0 0 0 3px rgba(26,139,70,.32); transform: scale(1.06); z-index: 2; }
.sm-uni .sm-seat.picked::before { display: none; }
.sm-uni .sm-seat.picked .sm-label, .sm-uni .sm-seat.picked .sm-meta { color: #fff; }
/* 선택기에서 hover 강조(빈 좌석만) */
.sm-uni .sm-seat:not(.dim):not(.disabled):not(.picked):hover { box-shadow: 0 0 0 2px var(--green); }

/* 범례 추가 색칩 — 선택됨/다른 구역 */
.sm-legend .sm-sw.picked-sw { background: var(--green); border-color: var(--green-d); box-shadow: 0 0 0 2px rgba(26,139,70,.18); }
.sm-legend .sm-sw.dim-sw { background: #fff; opacity: .35; filter: grayscale(.6); }

/* 하단 액션바(활성 세션 시 — 탭바 위에 고정) */
.sm-actionbar { position: sticky; bottom: calc(62px + env(safe-area-inset-bottom)); display: flex; gap: 8px; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 9px; box-shadow: var(--shadow); margin-top: 16px; z-index: 30; }
.sm-actionbar .btn { flex: 1; justify-content: center; padding: 12px 6px; font-size: 13px; }
.sm-actionbar .btn .ic, .sm-actionbar .btn .ic svg { width: 17px; height: 17px; }

/* 좌석 탭 모달 내부 */
.sm-confirm-msg { font-size: 14px; line-height: 1.6; }
.sm-detail-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 16px; }
.sm-detail-actions .btn { justify-content: center; padding: 11px 4px; font-size: 12.5px; }
.sm-detail-actions .btn .ic, .sm-detail-actions .btn .ic svg { width: 16px; height: 16px; }
.sm-checkout-summary { text-align: center; }
.sm-checkout-summary .ck { width: 60px; height: 60px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin: 0 auto 12px; }
.sm-checkout-summary .ck svg { width: 32px; height: 32px; }
.sm-checkout-summary h3 { font-size: 17px; font-weight: 800; margin: 0 0 14px; }
.sm-checkout-summary .kv { text-align: left; }

/* ── 이용 이력(#/my/usage-history) ── */
.uh-summary { background: linear-gradient(135deg, var(--green) 0%, var(--green-d) 100%); color: #fff; border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.uh-summary .uh-sum-label { font-size: 12.5px; opacity: .9; font-weight: 700; }
.uh-summary .uh-sum-val { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 8px; font-variant-numeric: tabular-nums; }
.uh-summary .uh-sum-sub { font-size: 12.5px; opacity: .94; display: flex; align-items: center; gap: 9px; }
.uh-summary .uh-sum-sub b { font-weight: 800; }
.uh-summary .uh-dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.6); }
.uh-day { font-size: 12px; font-weight: 800; color: var(--muted); margin: 16px 2px 8px; letter-spacing: .01em; }
.uh-list .uh-day:first-child { margin-top: 4px; }
.uh-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; padding: 13px 15px; margin-bottom: 9px; box-shadow: var(--shadow-sm); }
.uh-row .uh-main { min-width: 0; }
.uh-row .uh-seat { font-size: 14.5px; font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.uh-row .uh-zone { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.uh-row .uh-nw { font-size: 10.5px; }
.uh-row .uh-time { font-size: 12.5px; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.uh-row .uh-dur { text-align: right; white-space: nowrap; }
.uh-row .uh-dur b { font-size: 15px; font-weight: 800; color: var(--green-d); font-variant-numeric: tabular-nums; }
.uh-row .uh-dur span { display: block; font-size: 10.5px; color: var(--muted); font-weight: 600; margin-top: 1px; }

/* 좁은 화면: 도면 좌석 약간 축소 */
@media (max-width: 380px) {
  .sm-grid { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; }
  .sm-detail-actions .btn span { font-size: 11.5px; }
}

/* 모션 최소화 존중 */
@media (prefers-reduced-motion: reduce) {
  .app-main > *, .skeleton, .won-app .modal { animation: none !important; }
  .won-app .btn { transition: none; }
  .sm-seat.mine { animation: none !important; }
}

/* ─────────────────────────── S13 VOC 상담 스레드(말풍선) ─────────────────────────── */
.voc-thread { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 6px; }
.voc-msg { display: flex; flex-direction: column; max-width: 82%; }
.voc-msg.mine { align-self: flex-end; align-items: flex-end; }        /* 내(회원) 메시지 = 오른쪽 그린 */
.voc-msg.ops { align-self: flex-start; align-items: flex-start; }      /* 운영자 = 왼쪽 회색 */
.vm-bubble { padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; word-break: break-word; }
.voc-msg.mine .vm-bubble { background: var(--green); color: #fff; border-bottom-right-radius: 4px; }
.voc-msg.ops .vm-bubble { background: var(--panel2); color: var(--ink2); border-bottom-left-radius: 4px; }
.vm-text { white-space: pre-wrap; }
.vm-photo { display: block; max-width: 200px; max-height: 220px; border-radius: 10px; margin-top: 6px; cursor: pointer; }
.vm-time { font-size: 11px; color: var(--muted); margin-top: 3px; }
.voc-reply { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.voc-reply .vr-tools { display: flex; align-items: center; gap: 8px; margin-top: 8px; }

/* 와이파이 QR 카드 (2026-05-29) — 회원 홈 + QR 모달 */
.wifi-card .wifi-info { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 10px; }
.wifi-card .wf-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; flex-wrap: wrap; }
.wifi-card .wf-row .wf-k { min-width: 60px; color: var(--muted); font-size: 12px; font-weight: 600; }
.wifi-card .wf-row .wf-v { font-weight: 700; color: var(--ink); }
.wifi-card .wf-row b { font-weight: 800; color: var(--ink); }
