:root {
  /* ── 확정 컬러 코드 (2026-09-10 시원님 제공) ──────────────
     이 7개가 공식 팔레트입니다. 색을 바꿀 일이 생기면 여기만 고치세요. */
  --bg-main: #F7F8F5;      /* 배경 — 거의 흰색 */
  --primary: #4F9163;      /* 차분한 세이지 그린 — 주색(헤더·버튼·달성) */
  --primary-dark: #2F7348; /* 딥 세이지 — 보조(강조·텍스트) */
  --soft-mint: #AED9BB;    /* 부드러운 민트 — 달성·긍정 */
  --pale-teal: #C1DFE1;    /* 페일 블루 — 정보·이동 */
  --light-lemon: #EAEFA9;  /* 라이트 레몬 — 리워드·강조 */
  --soft-coral: #ECB4AB;   /* 살몬 코랄 — 경고·고배출 */

  /* 위 7개에서 파생되거나 수치·텍스트용으로 따로 쓰는 색 */
  --soft-teal: #5FA9A4;
  --light-navy: #5F7291;
  --deep-navy: #2D3A4F;
  /* 딥 네이비 카드 위에서 대비를 주는 색 — 정확한 코드 확인 필요 */
  --navy-light: #8FA3D8;
  --white: #FFFFFF;
  --light-gray: #E6EBEF;
  --text-main: #2D3A4F;
  --text-sub: #5F7291;
  --border: #E6EBEF;
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);

  /* ── 색상 역할 (컬러 시스템 문서 기준) ─────────────────────
     세이지 그린   주색      : 헤더, 버튼, 달성 상태, 네비 활성
     소프트 민트   달성/긍정 : 목표 달성 카드, 선택된 옵션
     페일 블루     정보/이동 : 교통수단 비교, 경로 표시
     라이트 레몬   리워드/강조: 제비페이 배지, 감축량 하이라이트 (버튼에는 쓰지 않음)
     살몬 코랄     경고/고배출: 항공·자가용, 미달성, 주의
     네이비 미드   수치/데이터: 점수 숫자, 데이터 강조
     ───────────────────────────────────────────────────── */
  --role-primary: var(--primary);
  --role-positive: var(--soft-mint);
  --role-info: var(--pale-teal);
  --role-reward: var(--light-lemon);
  --role-warning: var(--soft-coral);
  --role-data: var(--deep-navy);
  --role-data-on-dark: var(--navy-light);

  /* ── 모서리 라운드 (전 화면 공통) ── */
  --radius-card: 20px;  /* 큰 카드·섹션 */
  --radius-btn: 16px;   /* 버튼 */
  --radius-sm: 12px;    /* 입력창·작은 카드·칩 */
  --radius-xs: 8px;     /* 아주 작은 요소 */
  --radius-pill: 999px; /* 배지 */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #E2E8F0; /* Outer background to contrast the mobile frame */
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#root {
  width: 100%;
}

.app-frame {
  max-width: 430px; /* Standard mobile width */
  width: 100%;
  margin: 0 auto;
  background-color: var(--bg-main);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 10px 50px rgba(0,0,0,0.1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: opacity 0.2s;
}

button:active {
  opacity: 0.7;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.flex-1 { flex: 1; }
.justify-center { justify-content: center; }

h1, h2, h3 {
  font-weight: 700;
}

.text-center { text-align: center; }

/* ==============================================================
   CARBON PASSPORT DESIGN SYSTEM - CORE COMPONENTS
============================================================== */

/* --- TYPOGRAPHY --- */
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.text-title-1 { font-size: 1.5rem; font-weight: 800; color: var(--text-main); line-height: 1.3; }
.text-title-2 { font-size: 1.25rem; font-weight: 800; color: var(--text-main); line-height: 1.4; }
.text-title-3 { font-size: 1.125rem; font-weight: 800; color: var(--text-main); line-height: 1.4; }
.text-body-main { font-size: 1rem; font-weight: 600; color: var(--text-main); line-height: 1.5; }
.text-body-sub { font-size: 0.875rem; font-weight: 600; color: var(--text-sub); line-height: 1.5; }
.text-caption { font-size: 0.75rem; font-weight: 600; color: var(--text-sub); line-height: 1.4; }

/* --- LAYOUT UTILITIES --- */
.screen-container {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
  padding-bottom: 2rem;
}

/* --- CARDS --- */
.card-base {
  background-color: var(--white);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-primary {
  background-color: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-card);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.card-dark {
  background-color: var(--deep-navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius-card);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

/* --- BADGES --- */
.badge-base {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.badge-primary { background-color: var(--primary); color: var(--white); }
.badge-mint { background-color: var(--soft-mint); color: var(--primary-dark); }
.badge-lemon { background-color: var(--light-lemon); color: var(--primary-dark); }
.badge-teal { background-color: var(--pale-teal); color: var(--soft-teal); }
.badge-coral { background-color: var(--soft-coral); color: var(--deep-navy); }

/* --- BUTTONS --- */
.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  padding: 1rem;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  width: 100%;
  border: none;
  cursor: pointer;
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--border);
  color: var(--text-sub);
  padding: 1rem;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  width: 100%;
  cursor: pointer;
}


/* ==============================================================
   공통 화면 골격 — 모든 페이지가 같은 헤더·제목·버튼을 씁니다.
   페이지별 css 에 같은 선택자를 다시 만들면 여기 값이 덮이므로
   새 화면을 만들 때도 이 클래스를 그대로 쓰세요.
============================================================== */

/* --- 헤더 (뒤로가기 + 단계 배지) --- */
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-btn {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background-color: var(--white);
  color: var(--text-main);
  cursor: pointer;
}

.header-row .header-spacer {
  width: 36px;
  flex-shrink: 0;
}

.step-badge {
  background-color: var(--role-info);
  color: var(--soft-teal);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 800;
}

.complete-badge {
  background-color: var(--primary);
  color: var(--white);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 800;
}

/* --- 화면 제목 --- */
.screen-title-group {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.screen-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  text-align: center;
}

.screen-subtitle {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-sub);
  line-height: 1.5;
  white-space: pre-line;
}

/* --- 다음 단계로 넘어가는 주 버튼 (전 화면 동일) ---
   컬러 시스템: 버튼은 세이지 그린 계열. 라이트 레몬은 리워드 강조 전용이라
   버튼 배경으로 쓰지 않습니다. */
.submit-btn-full {
  width: 100%;
  padding: 1.125rem;
  border: none;
  border-radius: var(--radius-btn);
  /* 컬러 시스템: 버튼은 주색(세이지 그린). 딥 세이지는 보조로만 씁니다 */
  background-color: var(--primary);
  color: var(--white);
  font-size: 1.0625rem;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}

.submit-btn-full:disabled,
.submit-btn-full.disabled {
  background-color: var(--light-gray);
  color: var(--text-sub);
  cursor: not-allowed;
}

/* 레몬 변형 — 홈의 '새 여행 만들기'처럼 시작 동작을 눈에 띄게 할 때만 */
.submit-btn-full.btn-lemon {
  background-color: var(--light-lemon);
  color: var(--primary-dark);
}

/* --- 보조 텍스트 버튼 --- */
.link-btn {
  width: 100%;
  padding: 0.875rem;
  background: none;
  border: none;
  color: var(--text-sub);
  font-size: 0.9375rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

/* ================================================================
   한글 줄바꿈 (2026-09-17 신설) — 전 화면 공통

   문제: 한글이 단어 중간에서 끊겨 한 글자만 다음 줄로 넘어갔습니다
         (예: "10일 이내에 처 / 리하고", "5,900kg 기 / 준.").
   해결: keep-all 로 단어 중간 끊기를 막고, 한 단어가 칸보다 길 때만
         overflow-wrap 으로 예외를 둡니다(이메일·긴 영문이 삐져나가는 것 방지).

   text-wrap: balance / pretty 는 비교적 최신 CSS 입니다.
   지원하지 않는 브라우저는 그냥 무시하므로 화면이 깨지지 않습니다.
     · balance — 제목·짧은 문구. 위아래 줄 길이를 비슷하게 맞춤
     · pretty  — 본문. 마지막 줄에 한 단어만 남는 것을 줄임
   ⚠ balance 는 줄이 많은 문단에는 브라우저가 적용하지 않을 수 있습니다.
   ⚠ 되돌리려면 이 블록만 지우면 됩니다.
================================================================ */
body {
  word-break: keep-all;
  overflow-wrap: break-word;
}

.hero-sub,
.sub-card-label,
.sub-card-q,
.db-jebi-verdict-cta,
.db-jebi-progress-label,
.mypage-privacy-link {
  text-wrap: balance;
}

.hero-note,
.sub-card-desc,
.db-jebi-verdict-main,
.db-jebi-cond-label,
.db-jebi-lede,
.mypage-privacy-note {
  text-wrap: pretty;
}
/* 공통 상단 바 — 카드 라운드 12px·테두리 0.5px·그림자 없음. 390px 가로 스크롤 없음 */
.top-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  min-height: 48px;
  width: 100%;
  box-sizing: border-box;
}
.top-bar-left { display: flex; justify-content: flex-start; min-width: 0; }
.top-bar-center { display: flex; justify-content: center; align-items: center; min-width: 0; text-align: center; }
.top-bar-right { display: flex; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; }

.top-bar-back {
  min-height: 44px; padding: 0 10px 0 4px; border: none; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 0.9375rem; font-weight: 800; color: var(--text-main, #2D3A4F); white-space: nowrap;
}
.top-bar-back span { font-size: 1.25rem; line-height: 1; margin-right: 2px; }
.top-bar-home {
  width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  border: none; background: transparent; cursor: pointer; color: var(--text-main, #2D3A4F); border-radius: 12px;
}
.top-bar-title { margin: 0; font-size: 0.9375rem; font-weight: 800; color: var(--text-main, #2D3A4F); white-space: nowrap; }

.top-bar-dim {
  position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
  padding: 1rem; background: rgba(45, 58, 79, 0.5);
}
.top-bar-modal {
  box-sizing: border-box; width: 100%; max-width: 340px; padding: 1.25rem; background: #FFFFFF;
  border-radius: 16px; display: flex; flex-direction: column; gap: 1rem;
}
.top-bar-modal-text { margin: 0; font-size: 1rem; font-weight: 800; line-height: 1.5; color: #2D3A4F; text-align: center; }
.top-bar-modal-actions { display: flex; gap: 0.5rem; }
.top-bar-modal-stay, .top-bar-modal-leave {
  flex: 1 1 0; min-height: 48px; border-radius: 12px; font-family: inherit; font-size: 0.9375rem; font-weight: 800; cursor: pointer;
}
.top-bar-modal-stay { background: #FFFFFF; color: #2F7348; border: 1px solid #4F9163; }
.top-bar-modal-leave { background: #2F7348; color: #FFFFFF; border: none; }
/* ════════════════════════════════════════════════════════════════
   쿠폰 티켓 전용 글꼴 — Bagel Fat One (ZEVEPAY · 금액 숫자 · 「원」 에만 씁니다)
   Copyright 2022 The Bagel Fat Project Authors (https://github.com/JAMO-TYPEFACE/BagelFat)
   SIL Open Font License 1.1 — 전문: /licenses/BagelFatOne-OFL.txt (public/licenses)

   @fontsource 패키지는 글꼴을 90여 조각으로 나눠 둡니다. 이 앱은 필요한 두 조각만 가져옵니다.
     · 라틴(ZEVEPAY·숫자·쉼표): latin 조각 약 24KB
     · 한글 「원」 한 글자:      118번 조각 약 19KB (unicode.json 에서 U+C6D0 이 들어 있는 조각)
   @font-face 는 화면에서 실제로 쓸 때에만 내려받으므로, 쿠폰 티켓이 보이기 전에는 다른 화면의 로딩이 늘지 않습니다.
   ════════════════════════════════════════════════════════════════ */
@font-face {
  font-family: 'Bagel Fat One';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('/assets/bagel-fat-one-latin-400-normal-CB1T13M1.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bagel Fat One';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('/assets/bagel-fat-one-118-400-normal-6Yhdxs5s.woff2') format('woff2');
  unicode-range: U+C6D0; /* 원 */
}
/* ════════════════════════════════════════════════════════════════
   리워드 선택 섹션·쿠폰·응모 화면 (2026-11-13 · 4단계 — 디자인 캔버스 「제비페이 현장 할인 화면」 기준)
   디자인 규칙: 배경 #F7F8F5 · 주색 #4F9163 · 딥세이지 #2F7348 · 딥네이비 #2D3A4F · 라이트레몬 #EAEFA9 · 소프트코랄 #FCC1BF
   카드 라운드 12px · 테두리 0.5px #E6EBEF · 그림자 없음 · 모바일 우선 최대 480px.
   ⚠️ 왼쪽만 굵은 테두리(border-left 강조 줄)는 쓰지 않습니다. 선택 표시는 전체 테두리로만 합니다.
════════════════════════════════════════════════════════════════ */
.rw-display {
  font-family: 'Bagel Fat One', 'Pretendard', sans-serif;
  font-weight: 400;
  font-synthesis: none;
}
/* ── 결과 화면 맨 아래 섹션 ───────────────────────────────── */
.rw-section {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.rw-heading {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 800;
  color: #2D3A4F;
  line-height: 1.45;
}
.rw-options {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.rw-opt {
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  padding: 15px 15px;
  text-align: left;
  background: #FFFFFF;
  border: 0.5px solid #E6EBEF;
  border-radius: 12px;
  color: #2D3A4F;
}
.rw-opt.is-on {
  background: #F1F8F3;
  border: 1.5px solid #4F9163;
  padding: 14px 14px;
}
.rw-opt.is-off {
  background: #F1F3F4;
  color: #6B7785;
  cursor: not-allowed;
}
.rw-radio {
  flex: none;
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1.5px solid #8795A3;
  border-radius: 50%;
  background: #FFFFFF;
}
.rw-opt.is-on .rw-radio,
.rw-shop.is-on .rw-radio {
  border: 5px solid #4F9163;
}
.rw-opt.is-off .rw-radio { border-color: #C5CDD5; background: #F1F3F4; }
.rw-opt-text { display: flex; flex-direction: column; gap: 0.375rem; min-width: 0; flex: 1 1 auto; }
.rw-opt-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.5rem;
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1.4;
}
.rw-opt.is-off .rw-opt-title { color: #6B7785; }
.rw-badge {
  padding: 2px 10px;
  border-radius: 999px;
  background: #DCEFED;
  color: #2F7348;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}
.rw-badge.is-low { background: #FCC1BF; color: #2D3A4F; }
.rw-badge.is-soldout { background: #E6EBEF; color: #5F6B78; }
.rw-opt-desc {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.6;
  color: #5F7291;
}
.rw-opt-desc.is-strong { font-weight: 800; color: #2D3A4F; }
.rw-opt.is-off .rw-opt-desc { color: #6B7785; }
.rw-period {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #5F7291;
}
/* 이미 받은 사람의 상태 카드 */
.rw-mine {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1rem;
  background: #FFFFFF;
  border: 0.5px solid #E6EBEF;
  border-radius: 12px;
}
.rw-mine-title { font-size: 0.9375rem; font-weight: 800; color: #2D3A4F; }
.rw-mine-sub { font-size: 0.8125rem; font-weight: 600; color: #5F7291; margin-bottom: 0.5rem; }
/* ── 버튼 ────────────────────────────────────────────────── */
.rw-cta {
  box-sizing: border-box;
  width: 100%;
  min-height: 3.25rem;
  padding: 16px;
  background: #2F7348;
  color: #FFFFFF;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
}
.rw-cta:disabled { background: #E6EBEF; color: #8795A3; cursor: default; }
.rw-btn-primary,
.rw-btn-ghost {
  flex: 1 1 0;
  box-sizing: border-box;
  min-height: 52px;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 800;
  text-align: center;
}
.rw-btn-primary { background: #2F7348; color: #FFFFFF; }
.rw-btn-primary.is-wide { flex: 1.4 1 0; }
.rw-btn-ghost { background: #FFFFFF; color: #2F7348; border: 1px solid #4F9163; }
.rw-btn-primary:disabled,
.rw-btn-ghost:disabled { opacity: 0.55; cursor: default; }
.rw-mine .rw-btn-primary { flex: none; align-self: stretch; }
/* ── 전체 화면 ───────────────────────────────────────────── */
.rw-screen {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow-y: auto;
  overflow-x: hidden;
  background: #F7F8F5;
  -webkit-overflow-scrolling: touch;
}
.rw-screen-inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 430px;
  min-height: 100%;
  margin: 0 auto;
  padding: 0 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* 상단 바 */
.rw-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 56px;
  flex: none;
}
.rw-bar-back,
.rw-bar-title {
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 800;
  color: #2D3A4F;
  text-align: left;
  min-width: 0;
}
.rw-bar-back { min-height: 44px; }
.rw-chip-top {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.rw-chip-top.is-wait { background: #DCEFED; color: #2F7348; }
.rw-chip-top.is-used { background: #E6EBEF; color: #5F7291; }
.rw-chip-top.is-expired { background: #FCC1BF; color: #8B3A38; }
.rw-chip-top.is-done { background: #DCEFED; color: #2F7348; }
.rw-body { display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; min-width: 0; }
.rw-title-lg { margin: 4px 0 0; font-size: 1.375rem; font-weight: 800; line-height: 1.45; color: #2D3A4F; }
.rw-sub { font-size: 15px; font-weight: 800; color: #2D3A4F; margin-top: 4px; }
.rw-muted { margin: 0; font-size: 0.8125rem; font-weight: 600; line-height: 1.6; color: #5F7291; }
.rw-fine { font-size: 12px; font-weight: 600; line-height: 1.6; color: #5F7291; }
.rw-notice { margin: 0; font-size: 0.8125rem; font-weight: 600; line-height: 1.7; color: #2D3A4F; }
.rw-error { margin: 0; font-size: 0.8125rem; font-weight: 700; line-height: 1.6; color: #8A2E2B; }
.rw-spacer { flex: 1 1 auto; min-height: 0.5rem; }
.rw-spacer.is-lg { min-height: 1.5rem; }
.rw-center { text-align: center; }
.rw-card {
  box-sizing: border-box;
  padding: 16px;
  background: #FFFFFF;
  border: 0.5px solid #E6EBEF;
  border-radius: 12px;
}
/* ── 노란 안내 상자 ──────────────────────────────────────── */
.rw-yellow {
  box-sizing: border-box;
  padding: 12px 14px;
  background: #EAEFA9;
  border-radius: 12px;
  color: #2D3A4F;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.rw-yellow b { font-weight: 800; }
.rw-yellow.is-center { text-align: center; }
/* 사용처 선택 안내 */
.rw-body > .rw-yellow:first-child { font-size: 14px; line-height: 1.65; padding: 14px; }
.rw-yellow.is-tight { padding: 12px; }
.rw-yellow.is-coupon { font-size: 12.5px; line-height: 1.7; }
.rw-yellow.is-phone { font-size: 13px; }
.rw-yellow.is-done { font-size: 12.5px; }
.rw-yellow.is-popup { font-size: 14px; line-height: 1.7; padding: 16px; }
/* ── 사용처 선택 (캔버스 「10 인스타 게시용 · 사용처 선택」) ─────────────────────── */
/* 화면 높이에 맞춰 고정하고, 사용처 목록이 남는 높이를 채웁니다(카드 높이를 고르게 늘림). 짧은 화면에서는 목록만 스크롤 */
.rw-screen-inner.is-fit { height: 100%; min-height: 0; }
.rw-body.is-fit { min-height: 0; overflow: hidden; }
.rw-sub.is-center { text-align: center; }
.rw-pickbox {
  flex: none; display: flex; align-items: center; gap: 12px; box-sizing: border-box;
  padding: 14px; background: #EAEFA9; border-radius: 12px; color: #2D3A4F;
}
.rw-pickbox-img { flex: none; width: 64px; height: auto; display: block; }
.rw-pickbox-text { min-width: 0; }
.rw-pickbox-logo { font-size: 20px; line-height: 1.15; color: #2F7348; }
.rw-pickbox-text p { margin: 4px 0 0; font-size: 13px; font-weight: 500; line-height: 1.6; overflow-wrap: anywhere; }
.rw-pickbox-text b { font-weight: 800; }
.rw-shops { display: grid; gap: 8px; }
.rw-shops.is-list { grid-template-columns: minmax(0, 1fr); }
.rw-shops.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rw-shops.is-fit { flex: 1 1 0; min-height: 0; overflow-y: auto; grid-auto-rows: minmax(3.5rem, 1fr); }
.rw-shop {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 14px;
  text-align: left;
  background: #FFFFFF;
  border: 0.5px solid #E6EBEF;
  border-radius: 12px;
  color: #2D3A4F;
}
.rw-shop.is-on { background: #F1F8F3; border: 1.5px solid #4F9163; padding: 9.25px 13.25px; }
.rw-shop-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.rw-shop-name { font-size: 14px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.rw-shop-kind { font-size: 11.5px; font-weight: 600; line-height: 1.35; color: #5F7291; overflow-wrap: anywhere; }
.rw-shop-area { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600; color: #5F7291; white-space: nowrap; }
.rw-shop-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.rw-shops.is-grid .rw-shop { padding: 8px 10px; gap: 8px; }
.rw-shops.is-grid .rw-shop.is-on { padding: 7.25px 9.25px; }
.rw-period-line { flex: none; font-size: 12px; font-weight: 600; color: #5F7291; text-align: center; }
.rw-wrong-shop { margin: 0; font-size: 12px; font-weight: 600; line-height: 1.6; color: #5F7291; text-align: center; }
/* 「확인하고 쿠폰 받기」 팝업의 선택한 사용처 */
.rw-pick-confirm { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.rw-pc-label { font-size: 13px; font-weight: 600; color: #5F7291; }
.rw-pc-name { font-size: 22px; font-weight: 800; line-height: 1.3; color: #2D3A4F; overflow-wrap: anywhere; }
.rw-pc-sub { font-size: 13px; font-weight: 600; color: #5F7291; }
.rw-empty-card {
  padding: 24px 16px;
  text-align: center;
  background: #FFFFFF;
  border: 0.5px solid #E6EBEF;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  color: #5F7291;
}
/* ── 쿠폰 화면 ───────────────────────────────────────────── */
.rw-coupon-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rw-coupon-col.is-end { gap: 16px; }
.rw-carbon { font-size: 14px; font-weight: 800; color: #5F7291; text-align: center; }
.rw-carbon b { color: #2D3A4F; }
.rw-until { font-size: 13px; font-weight: 600; color: #5F7291; text-align: center; margin-top: -4px; }
.rw-share { font-size: 12px; font-weight: 600; line-height: 1.7; color: #5F7291; text-align: center; }
.rw-staff { margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.7; color: #2D3A4F; }
.rw-big { font-size: 21px; font-weight: 800; line-height: 1.4; color: #2D3A4F; }
.rw-big-sub { margin-top: 4px; font-size: 14px; font-weight: 600; color: #5F7291; }
.rw-rows { display: flex; flex-direction: column; gap: 10px; }
.rw-row { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.rw-row > span:first-child { font-weight: 600; color: #5F7291; flex: none; }
.rw-row > span:last-child { font-weight: 800; color: #2D3A4F; text-align: right; overflow-wrap: anywhere; }
.rw-rows.is-13 .rw-row { font-size: 13px; }
/* ── 쿠폰 티켓 3-C (그림 438×224 → 표시 358×183) ─────────────────────────
   그림 한 장 위에 세로 금액 하나. 모든 길이를 --u(= 티켓 폭 / 358)로 곱해 화면이 좁으면 같은 비율로 줄어듭니다.
   390px 폭에서는 358px 그대로입니다. */
.rw-tk-fit {
  align-self: center;
  width: min(358px, calc(100% + 8px));
  container-type: inline-size;
}
.rw-tk {
  --u: calc(100cqw / 358);
  position: relative;
  width: 100%;
  aspect-ratio: 438 / 224;
}
.rw-tk-art { position: relative; width: 100%; height: 100%; }
.rw-tk-img { display: block; width: 100%; height: 100%; }
/* 「5,000」(38) + 「원」(27) 을 한 줄로 쓰고 −90도 눕힌 덩어리의 가운데를 티켓 폭의 83.8%·높이의 52.5%(358×183 기준 300, 96)에 둡니다 */
.rw-tk-amount {
  position: absolute;
  left: calc(300 * var(--u));
  top: calc(96 * var(--u));
  transform: translate(-50%, -50%) rotate(-90deg);
  display: flex;
  align-items: baseline;
  white-space: nowrap;
  color: #5DCC80;
  line-height: 1;
}
.rw-tk-amount-num { font-size: calc(38 * var(--u)); }
.rw-tk-amount-won { font-size: calc(27 * var(--u)); }
/* 사용 완료·기간 지남: 그림·금액 흑백·반투명 + 도장 */
.rw-tk.is-used .rw-tk-art,
.rw-tk.is-expired .rw-tk-art { filter: grayscale(1); opacity: 0.55; }
.rw-stamp {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  padding: calc(4 * var(--u)) calc(16 * var(--u));
  border: calc(4 * var(--u)) solid #5F7291;
  border-radius: calc(10 * var(--u));
  background: rgba(255, 255, 255, 0.8);
  color: #5F7291;
  font-size: calc(30 * var(--u));
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
}
/* 기간 지남: 오른쪽 위쪽에 얹습니다 */
.rw-stamp.is-expired {
  /* 오른쪽 위쪽 — 세로 금액(티켓 오른쪽 끝, 가로 약 280~320)을 가리지 않도록 그 왼쪽에 둡니다 */
  left: auto;
  right: calc(86 * var(--u));
  top: calc(26 * var(--u));
  transform: rotate(-12deg);
  border-color: #8B3A38;
  color: #8B3A38;
}
/* ── 번호 입력 · 응모 완료 ──────────────────────────────── */
.rw-phone-card { display: flex; flex-direction: column; gap: 8px; }
.rw-field { display: flex; flex-direction: column; gap: 6px; }
.rw-field-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; font-weight: 800; color: #2D3A4F; }
.rw-chip { font-style: normal; padding: 1px 8px; border-radius: 999px; background: #DCEFED; color: #2F7348; font-size: 0.6875rem; font-weight: 800; }
.rw-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 3rem;
  padding: 0.5rem 0.875rem;
  background: #FFFFFF;
  border: 1px solid #E6EBEF;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 700;
  color: #2D3A4F;
}
.rw-input:focus { outline: none; border-color: #4F9163; }
.rw-hint { font-size: 12px; font-weight: 600; color: #5F7291; }
.rw-check { display: flex; align-items: flex-start; gap: 0.625rem; font-size: 0.8125rem; font-weight: 700; line-height: 1.6; color: #2D3A4F; }
.rw-check input { flex: none; width: 1.25rem; height: 1.25rem; margin-top: 2px; accent-color: #4F9163; }
.rw-done-center { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding-top: 24px; }
.rw-done-mark {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: #DCEFED; color: #2F7348; font-size: 28px; font-weight: 800;
}
.rw-done-desc { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.7; color: #5F7291; }
/* ── 팝업·시트 ───────────────────────────────────────────── */
.rw-dim {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(45, 58, 79, 0.5);
}
.rw-dim.is-sheet { align-items: flex-end; padding: 0; }
.rw-modal {
  box-sizing: border-box;
  width: 100%;
  max-width: 360px;
  padding: 1.25rem;
  background: #FFFFFF;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.rw-modal.is-sheet { max-width: 430px; border-radius: 16px 16px 0 0; padding-bottom: 1.5rem; }
.rw-modal-title { margin: 0; font-size: 1.125rem; font-weight: 800; color: #2D3A4F; line-height: 1.45; }
.rw-modal-text { margin: 0; font-size: 0.875rem; font-weight: 600; line-height: 1.7; color: #5F7291; }
.rw-modal-text b { color: #2D3A4F; font-weight: 800; }
.rw-modal-phone { margin: 0; font-size: 1.625rem; font-weight: 800; letter-spacing: 0.02em; color: #2D3A4F; text-align: center; }
.rw-modal-note { margin: 0; font-size: 0.8125rem; font-weight: 600; line-height: 1.6; color: #5F7291; text-align: center; }
.rw-modal-actions { display: flex; gap: 0.5rem; margin-top: 0.25rem; }
/* 쿠폰 화면(사용 대기) 맨 아래: 「사용처: 가게 이름」 한 줄 + 할인 적용 완료 버튼(간격 10px) */
.rw-cta-group { display: flex; flex-direction: column; gap: 10px; flex: none; }
/* 사용처 줄 — 직원이 한눈에 가게를 확인하도록 크게 강조. 괄호 업종은 빼고 이름만 한 줄(넘치면 …) (2026-11-14) */
.rw-shop-line { margin: 0; padding: 12px 14px; text-align: center; font-size: 17px; line-height: 1.4; color: #2D3A4F; background: #DCEFED; border: 1px solid #5FA9A4; border-radius: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rw-shop-line-label { font-weight: 600; color: #5F7291; }
.rw-shop-line b { font-size: 23px; font-weight: 800; color: #2D3A4F; }
/* 기간 지난 쿠폰 「1시간 연장하기」 (2026-11-15) */
.rw-extend { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.rw-extend-note { margin: 0; word-break: keep-all; text-align: center; font-size: 13px; line-height: 1.5; color: #5F7291; }
.rw-extend-note b { color: #2D3A4F; }
.rw-extend-back { width: 100%; min-height: 48px; }
/* ── 쿠폰 유효기간 1주일 (2026-11-15 캔버스 「쿠폰 남은 날 표시」) ── */
.rw-validity { display: flex; flex-direction: column; gap: 6px; }
.rw-validity .rw-until { margin-top: 0; }
.rw-left { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.rw-left-chip { display: inline-block; padding: 3px 12px; border-radius: 999px; background: #2F7348; color: #FFFFFF; font-size: 14px; font-weight: 800; line-height: 1.4; white-space: nowrap; }
.rw-left-chip.is-last { background: #FCC1BF; color: #8B3A38; }
.rw-left-chip.is-sm { margin-left: 6px; padding: 1px 8px; font-size: 11px; vertical-align: 2px; }
.rw-left-text { font-size: 15px; font-weight: 800; color: #2F7348; }
.rw-left.is-last .rw-left-text { color: #8B3A38; }
.rw-week-notice { background: #FFFFFF; border: 1px solid #5FA9A4; border-radius: 12px; padding: 12px 14px; text-align: center; font-size: 13px; font-weight: 600; line-height: 1.6; color: #2D3A4F; word-break: keep-all; }
.rw-staff.is-center { text-align: center; }
.rw-mine-left { color: #2F7348; font-weight: 800; }
/* 사용처 다시 고르기 — 「할인 적용 완료」보다 덜 눈에 띄게 */
.rw-change-shop { flex: none; width: 100%; min-height: 44px; font-size: 0.875rem; font-weight: 700; }
.rw-shop.is-current { opacity: 0.6; cursor: default; }
.rw-current-chip { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #E6EBEF; color: #5F7291; font-size: 11px; font-weight: 800; vertical-align: 2px; }
/* 기간 지남 화면의 「여행 기록으로 돌아가기」 — 초록 버튼(rw-cta)과 같은 높이 */
.rw-extend-back { flex: none; min-height: 3.25rem; padding: 16px; font-size: 1rem; }
/* 탄소여권 설문 안내 (2026-11-16) — 흰 카드, 테두리 0.5px, 그림자 없음, 가운데 정렬 */
.sv-card {
  box-sizing: border-box;
  width: 100%;
  background: #FFFFFF;
  border: 0.5px solid #E6EBEF;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  word-break: keep-all;
}
.sv-result { padding: 20px 18px; gap: 12px; }
.sv-mypage { padding: 16px 18px; gap: 10px; }

.sv-pill {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 999px;
  background: #EAEFA9;
  color: #2D3A4F;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}
.sv-desc { margin: 0; font-size: 14px; line-height: 1.6; color: #5F7291; }
.sv-desc.is-sm { font-size: 13px; }
.sv-note {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  background: #DCEFED;
  color: #2D3A4F;
  font-size: 13px;
  line-height: 1.6;
}
.sv-btn {
  box-sizing: border-box;
  width: 100%;
  min-height: 50px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid #4F9163;
  color: #2F7348;
  font-size: 16px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  font-family: inherit;
}
.sv-btn.is-46 { min-height: 46px; font-size: 15px; }
.sv-btn.is-again { border-color: #E6EBEF; color: #2D3A4F; font-weight: 700; }
.sv-icon { flex: none; }

.sv-head { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.sv-title { font-size: 16px; font-weight: 800; color: #2D3A4F; }
.sv-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #EAEFA9;
  color: #2D3A4F;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}
.sv-chip.is-opened { background: #E6EBEF; color: #5F7291; }

/* 홈 한 줄 */
.sv-row {
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  background: #FFFFFF;
  border: 0.5px solid #E6EBEF;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
}
.sv-row-text { font-size: 14px; font-weight: 700; color: #2D3A4F; word-break: keep-all; }
.sv-row-icon { display: inline-flex; color: #2F7348; }
.dashboard-screen {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
  padding-bottom: 2rem;
}





.subheader-card {
  background-color: var(--primary);
  color: white;
  border-radius: var(--radius-card);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: var(--shadow-soft);
}

.subheader-title {
  font-size: 1.25rem;
  font-weight: 800;
}

.subheader-desc {
  font-size: 0.875rem;
  opacity: 0.8;
}

.hero-score-card {
  background-color: var(--deep-navy);
  color: white;
  border-radius: var(--radius-card);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.hero-title {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  font-weight: 700;
}

.hero-score {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
}

.hero-sub {
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
}

.lemon-badge {
  background-color: var(--light-lemon);
  color: var(--primary-dark);
  padding: 6px 16px;
  border-radius: var(--radius-btn);
  font-size: 0.875rem;
  font-weight: 800;
  margin-top: 0.5rem;
}

.hero-note {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  margin-top: 1rem;
  line-height: 1.4;
}

.sub-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.sub-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-soft);
}

.sub-card-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-sub);
}

.sub-card-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.sub-card-desc {
  font-size: 0.75rem;
  color: var(--text-main);
  font-weight: 600;
}

.daily-chips-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-main);
}

.daily-chips-row {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.daily-chip {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 1rem;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-soft);
}

.chip-day {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-sub);
}

.chip-score {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.chip-status {
  font-size: 0.625rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
}

.chip-status.success {
  background-color: var(--soft-mint);
  color: var(--primary-dark);
}

.chip-status.fail {
  background-color: var(--soft-coral);
  color: var(--deep-navy);
}

.jebi-card {
  background-color: var(--primary);
  color: white;
  border-radius: var(--radius-card);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-soft);
}

.jebi-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 0.75rem;
}

.jebi-row-label {
  font-weight: 600;
}

.jebi-row-val {
  font-weight: 800;
}

.jebi-final-box {
  background-color: rgba(255,255,255,0.1);
  border-radius: var(--radius-btn);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}

.jebi-final-title {
  font-size: 0.8125rem;
  opacity: 0.8;
}

.jebi-final-val {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--light-lemon);
}

.jebi-note {
  font-size: 0.75rem;
  opacity: 0.7;
  text-align: center;
  line-height: 1.4;
}

.retro-card {
  background-color: var(--white);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-soft);
}

.retro-q {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  gap: 0.5rem;
}

.retro-num {
  color: var(--primary);
  font-weight: 800;
}

.retro-btn {
  background-color: var(--pale-teal);
  color: var(--primary-dark);
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 800;
  text-align: center;
  border: none;
  cursor: pointer;
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--border);
  color: var(--text-sub);
  padding: 1rem;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
}

/* ─── Dashboard Screen Layout ─── */
.dashboard-screen {
  padding: 0 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  padding-bottom: 2rem;
}

/* ─── Section Label with Line ─── */
.db-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.db-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  /* 'kg' 이 'KG' 로 보이지 않게 대문자 변환을 뺐습니다 */
  letter-spacing: 0.04em;
  color: var(--text-sub);
}

.db-section-label::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background-color: #E6EBEF;
}

/* ─── Day Chips ─── */
.db-day-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.db-day-chip {
  flex: 1;
  min-width: 52px;
  border-radius: var(--radius-sm);
  padding: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.db-chip-goal {
  background-color: var(--soft-mint);
  color: var(--primary-dark);
}

.db-chip-over {
  background-color: var(--soft-coral);
  color: #8B3A38;
}

.db-chip-unrecorded {
  background-color: #E6EBEF;
  color: #8a9aaa;
}

.db-chip-day {
  font-size: 9px;
  font-weight: 700;
}

.db-chip-score {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.db-chip-badge {
  font-size: 8px;
  font-weight: 600;
  min-height: 10px;
}

/* ─── Jebi Pay Card ─── */
/* 제비페이 조건 — 초록이 세 블록 연속이면 답답해 보여서
   소프트 민트 배경 + 진한 글씨로 바꿨습니다 (컬러 시스템: 민트 = 달성·긍정) */
/* ── 제비페이 조건 확인 (2026-09-16 전면 교체) ──────────────────────
   옛 민트 요약 카드(.db-jebi-card / -title / -row / -final)는 제거했습니다.
   5/6 미션 확인 화면을 이 화면에 합치면서, 미션 7개를 펼쳐 보여주는
   섹션으로 바뀌었습니다. */
.db-jebi-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.db-jebi-heading {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0.5rem 0 0;
}

.db-jebi-lede {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-sub);
  line-height: 1.6;
  margin: -0.375rem 0 0;
}

.db-jebi-lede b {
  font-weight: 800;
  color: var(--primary-dark);
}

/* 진행 카드 */
.db-jebi-progress {
  background-color: var(--soft-mint);
  border-radius: var(--radius-card);
  padding: 1rem 1.125rem;
}

/* ================================================================
   미션 미달성 상태 (2026-09-18 신설)
   4개 미만이면 배경을 민트 → 살몬 코랄로 바꿉니다.
   --soft-coral 은 팔레트의 '경고/고배출' 역할색(--role-warning)이고,
   글자·막대 색은 index.css 의 .badge-coral 선례(코랄 배경 + 딥네이비)를 따릅니다
   — 코랄 위에 딥세이지(초록)를 얹으면 색이 부딪칩니다.
   기준 개수는 carbonFactors.ts 의 MISSION_REWARD_THRESHOLD 한 곳에서 옵니다.
================================================================ */
.db-jebi-progress-off {
  background-color: var(--soft-coral);
}

.db-jebi-progress-off .db-jebi-progress-label,
.db-jebi-progress-off .db-jebi-progress-count,
.db-jebi-progress-off .db-jebi-progress-foot {
  color: var(--deep-navy);
}

.db-jebi-progress-off .db-jebi-bar-fill {
  background-color: var(--deep-navy);
}

.db-jebi-progress-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.625rem;
}

.db-jebi-progress-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.db-jebi-progress-count {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.db-jebi-progress-count em {
  font-style: normal;
  font-size: 0.875rem;
  font-weight: 700;
  opacity: 0.75;
}

.db-jebi-bar {
  height: 8px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.65);
  overflow: hidden;
}

.db-jebi-bar-fill {
  height: 100%;
  border-radius: 4px;
  background-color: var(--primary-dark);
  transition: width 0.3s ease;
}

.db-jebi-progress-foot {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--primary-dark);
  opacity: 0.85;
  margin-top: 0.5rem;
}

/* 목록 카드 공통 */
.db-jebi-list-card {
  background-color: var(--white);
  border: 0.5px solid var(--light-gray);
  border-radius: var(--radius-card);
  padding: 1rem;
}

.db-jebi-card-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-sub);
  margin-bottom: 0.5rem;
}

/* 미션 목록 */
.db-mission-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.db-mission {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  padding: 0.6875rem 0;
  border-bottom: 1px solid var(--light-gray);
}

.db-mission:last-child {
  border-bottom: none;
}

.db-mission-ic {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-top: 1px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 800;
  line-height: 1;
}

.db-mission-ok {
  background-color: var(--primary);
  color: var(--white);
}

.db-mission-no {
  background-color: var(--light-gray);
  color: var(--text-sub);
}

.db-mission-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.db-mission-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}

.db-mission-off .db-mission-title {
  color: #9AA7B5;
}

.db-mission-desc {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-sub);
  line-height: 1.5;
}

/* 화면에는 안 보이지만 스크린리더는 읽는 달성 여부 */
.db-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 함께 보는 기록 */
.db-jebi-cond {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem;
  padding: 0.6875rem 0;
  border-bottom: 1px solid var(--light-gray);
}

.db-jebi-cond-last {
  border-bottom: none;
}

.db-jebi-cond-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

.db-jebi-cond-label small {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-sub);
  margin-top: 0.125rem;
}

.db-jebi-pill {
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 0.25rem 0.625rem;
  border-radius: 20px;
  white-space: nowrap;
}

.db-jebi-pill-ok {
  background-color: var(--pale-teal);
  color: var(--primary-dark);
}

.db-jebi-pill-no {
  background-color: var(--light-gray);
  color: var(--text-sub);
}

/* 최종 안내 — 금액은 표시하지 않습니다(프로젝트 지침) */
.db-jebi-verdict {
  background-color: var(--light-lemon);
  border-radius: var(--radius-card);
  padding: 0.875rem 1rem;
  /* 2026-09-17: 가운데 정렬 — 부스에서 운영자에게 보여주는 안내라 시선을 모읍니다 */
  text-align: center;
}

.db-jebi-verdict-main {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 0.25rem;
}

/* 두 번째 줄 — 행동 유도라 한 단계 크고 진하게 (2026-09-17 신설) */
.db-jebi-verdict-cta {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.6;
}

.db-jebi-verdict-sub {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-sub);
  line-height: 1.6;
}

/* sub-card-label alias for dashboard */
.sub-card-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-sub);
  line-height: 1.4;
}


/* ------------------------------------------------------------------
   자동 저장 안내 (2026-09-14)
   결과 화면에 들어오면 여행이 자동으로 '완료' 확정 저장됩니다.
   참가자가 버튼을 누르지 않고 나가도 기록이 남도록 한 조치의 안내문입니다.
------------------------------------------------------------------- */
.db-autosave {
  margin: 1rem 0 0.5rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  line-height: 1.6;
  font-weight: 600;
}

.db-autosave-idle {
  background-color: var(--light-gray);
  color: var(--text-sub);
}

.db-autosave-saved {
  background-color: var(--pale-teal);
  color: var(--primary-dark);
}

.db-autosave-pending {
  background-color: var(--light-lemon);
  color: var(--text-main);
}

.db-autosave-error {
  background-color: var(--soft-coral);
  color: var(--text-main);
}

/* ================================================================
   상쇄 카드 (2026-09-17) — 2단 카드 안에 질문 + 한 줄 답
================================================================ */
.sub-card-q {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.45;
}

/* 두 카드의 설명 앞에 붙는 화살표 — 같은 모양·색으로 나란히 읽히게 */
.sub-card-arrow {
  color: var(--primary);
  font-weight: 800;
}

/* ------------------------------------------------------------------
   여행 동선 기록 — 접었다 펴는 카드 (2026-10-30)
   점수와 무관한 읽기 전용 영역. 메모가 없으면 카드 자체가 렌더되지 않습니다.
------------------------------------------------------------------- */
.db-route-card {
  margin-top: 1.25rem;
  background-color: #FFFFFF;
  border: 0.5px solid var(--light-gray, #E6EBEF);
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
}

.db-route-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem;
  padding: 1rem;
  background: none;
  border: 0;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}

.db-route-head-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.db-route-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-main, #2D3A4F);
}

/* 접힌 상태에서도 내용이 있다는 걸 알 수 있게 하는 표시 */
.db-route-badge {
  flex-shrink: 0;
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--deep-sage, #2F7348);
  background-color: var(--soft-mint, #AED9BB);
  border-radius: 999px;
}

.db-route-head-right {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
}

.db-route-action {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-sub, #5F7291);
}

.db-route-chev {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--text-sub, #5F7291);
  border-bottom: 2px solid var(--text-sub, #5F7291);
  transform: rotate(45deg);
  margin-bottom: 3px;
  transition: transform 0.18s ease;
}

.db-route-card.is-open .db-route-chev {
  transform: rotate(-135deg);
  margin-bottom: -3px;
}

.db-route-body {
  padding: 0 1rem 1rem;
}

.db-route-divider {
  height: 0.5px;
  background-color: var(--light-gray, #E6EBEF);
  margin-bottom: 0.875rem;
}

.db-route-day {
  padding: 0.75rem 0;
  border-bottom: 0.5px solid var(--light-gray, #E6EBEF);
}

.db-route-day:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.db-route-day-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3125rem;
}

/* Day 번호도 '3일' 배지와 같은 초록 바탕 (2026-10-30 시원님 요청) */
.db-route-dayn {
  flex-shrink: 0;
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--deep-sage, #2F7348);
  background-color: var(--soft-mint, #AED9BB);
  border-radius: 999px;
}

.db-route-date {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-sub, #5F7291);
}

.db-route-kg {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-sub, #5F7291);
}

.db-route-note {
  margin: 0;
  font-size: 0.84375rem;
  line-height: 1.65;
  color: var(--text-main, #2D3A4F);
  white-space: pre-wrap;
}

.db-route-empty {
  margin: 0;
  font-size: 0.78125rem;
  color: #A8B2C1;
}

.db-route-foot {
  margin-top: 0.75rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.6875rem;
  line-height: 1.6;
  color: var(--text-sub, #5F7291);
  background-color: var(--bg, #F7F8F5);
  border-radius: 8px;
}
