/* 탁송비 견적 계산 서비스 스타일 */

:root {
  /* PICKGO App Design Guide v1.0 - "Precision Mobility"
     브랜드는 블루, 이동·완료는 민트, 신뢰 영역은 네이비, 본문은 화이트/클라우드 그레이.
     사용 비율 White·Cloud 65% / Blue 20% / Navy 10% / Mint 5%. */
  --pg-accent: #2864FF;        /* Pickgo Blue - 로고·Primary CTA·선택 상태 */
  --pg-accent-dark: #1f50d6;   /* Blue 눌림/딥 블루 */
  --pg-mint: #20CDB1;          /* Route Mint - 경로·이동·완료 포인트에만 */
  --pg-navy: #0F192B;          /* Speed Navy - 배너·스플래시·다크 배경 */
  --pg-steel: #273A56;         /* Steel Blue - 다크 그라데이션·보조 면 */
  --pg-ice: #EDF2FF;           /* Ice Blue - 선택 카드·정보 강조 */
  --pg-cloud: #F5F7FA;         /* Cloud Gray - 앱 기본 배경 */
  --pg-page-bg: #F5F7FA;
  --pg-text: #17202D;          /* Ink - 제목·본문 핵심 정보 */
  --pg-text-sub: #748091;      /* Cool Gray - 설명·보조 정보 */
  /* 기능색: 브랜드색과 분리해 운영 */
  --pg-error: #E5484D;
  --pg-warn: #F59E0B;
  --pg-success: #16A36A;
  /* 라운드: 카드 12 · 버튼/입력 10 · 상태 태그 6 (가이드 05 레이아웃) */
  --pg-radius-xl: 20px;
  --pg-radius-lg: 16px;
  --pg-radius-md: 12px;
  --pg-radius-sm: 10px;
  --pg-radius-tag: 6px;
  /* 그림자는 최소화하고 1px 보더와 배경 대비로 구분 (가이드 05) */
  --pg-shadow-soft: 0 2px 12px rgba(15, 25, 43, 0.06);
  --pg-shadow-card: 0 10px 30px rgba(15, 25, 43, 0.08), 0 0 0 1px rgba(15, 25, 43, 0.03);
  --pg-app-width: 430px;
}

* { box-sizing: border-box; }

/* 앱 실행 스플래시 — 네이티브 스플래시(#2864FF)에 이어 약 3초간 로고 애니메이션 후 페이드아웃.
   네이티브 스플래시와 배경색을 똑같이 맞춰 전환 시 깜빡임이 없도록 한다. */
#pg-splash {
  position: fixed; inset: 0; z-index: 99999;
  background: #2864FF;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  /* 하단 광고(300×250) 공간을 비워 로고가 그 위 영역 가운데로 올라오게 한다(과하지 않게). */
  padding-bottom: calc(min(210px, 32vh) + env(safe-area-inset-bottom, 0px));
  transition: opacity .55s ease;
}
#pg-splash.pg-splash-hide { opacity: 0; pointer-events: none; }
/* 로고(PICKGO) 아래로 자동차가 P 밑에서 O 까지 "탁송하듯" 지나간다. */
#pg-splash .pg-splash-stage { position: relative; width: min(210px, 58vw); }
#pg-splash .pg-splash-logo {
  display: block; width: 100%; height: auto;
  transform-origin: center;
  animation: pgSplashIn .7s cubic-bezier(.2,.8,.2,1) both;
}
/* 자동차가 달리는 길 - 촘촘한 점선이 계속 흘러 이동감을 준다. 좌우 끝(출발점·도착점) 사이를 잇는다. */
#pg-splash .pg-splash-road { position: relative; width: 100%; height: 30px; margin-top: 12px; }
#pg-splash .pg-splash-road::before {
  content: ''; position: absolute; left: 11px; right: 11px; bottom: 3px; height: 2px; border-radius: 2px;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.6) 0 4px, transparent 4px 9px);
  background-size: 9px 100%; opacity: .55;
  animation: pgSplashRoad .45s linear infinite;
}
/* 출발점(P 밑, 점)·도착점(O 밑, 핀) 마커 */
#pg-splash .pg-splash-point { position: absolute; line-height: 0; }
#pg-splash .pg-splash-point svg { display: block; width: 100%; height: auto; }
#pg-splash .pg-splash-point--start { left: 0; bottom: -1px; width: 12px; }
#pg-splash .pg-splash-point--end { right: -1px; bottom: 1px; width: 13px; }
#pg-splash .pg-splash-car {
  position: absolute; bottom: 0; left: 0; width: 46px; line-height: 0;
  animation: pgSplashDrive 3.3s cubic-bezier(.45,.05,.35,1) .45s both;
}
#pg-splash .pg-splash-car svg { display: block; width: 100%; height: auto; animation: pgSplashBob .45s ease-in-out infinite; }
@keyframes pgSplashIn { from { opacity: 0; transform: translateY(12px) scale(.88); } to { opacity: 1; transform: none; } }
/* 왼쪽(P 아래)에서 출발해 오른쪽(O 아래)까지 이동 */
@keyframes pgSplashDrive {
  0% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  100% { left: calc(100% - 46px); opacity: 1; }
}
@keyframes pgSplashBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-1.5px); } }
@keyframes pgSplashRoad { to { background-position: -9px 0; } }
@media (prefers-reduced-motion: reduce) {
  #pg-splash .pg-splash-logo { animation: pgSplashIn .4s ease both; }
  #pg-splash .pg-splash-car { animation: none; left: calc(100% - 46px); }
  #pg-splash .pg-splash-car svg, #pg-splash .pg-splash-road::before { animation: none; }
}

/* 맨 위에서 아래로 당겼을 때 브라우저의 "당겨서 새로고침"이 뜨지 않게 한다. 앱처럼 쓰는 화면에서
   대화 내용이나 입력하던 값이 새로고침으로 날아가는 걸 막기 위함이다. */
html, body { overscroll-behavior-y: none; }

body {
  margin: 0;
  font-family: 'Pretendard', 'Pretendard Variable', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  background: var(--pg-page-bg);
}

/* 채팅 컨테이너 - 기본은 모바일 웹앱 사이즈로 꽉 차게, 넓은 화면에서는 앱 프레임처럼 표시 */
#chat-container {
  display: flex;
  flex-direction: column;
  /* 모바일 키보드가 올라오면 JS가 --app-vh를 보이는 영역 높이로 설정한다(미지원 시 100dvh). */
  height: var(--app-vh, 100dvh);
  max-width: var(--pg-app-width);
  margin: 0 auto;
  background: #fff;
}

/* 헤더 */
#chat-header {
  background: linear-gradient(135deg, var(--pg-accent) 0%, var(--pg-accent-dark) 100%);
  color: #fff;
  /* 아이폰(노치·다이나믹 아일랜드) 상태바(시간·통신)와 헤더 내용이 겹치지 않도록 위 안전영역만큼 내려준다. */
  padding: calc(18px + env(safe-area-inset-top)) 20px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  border-radius: 0 0 20px 20px;
}
#chat-header .logo-icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
#chat-header .brand-logo { height: 22px; width: auto; flex-shrink: 0; }
#chat-header h1 { font-size: 16px; font-weight: 700; margin: 0; }
#chat-header p { font-size: 12px; margin: 0; opacity: 0.8; }
#chat-header .quick-menu-link {
  margin-left: auto;
  flex-shrink: 0;
  display: flex; align-items: center; gap: 5px;
  color: #fff;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
#chat-header .quick-menu-link:hover { background: rgba(255,255,255,0.28); }

/* 챗봇 전용 미니 헤더 - 마이페이지 관련 내용 없이 홈으로 돌아가는 버튼만 둔다 */
#chat-header.chat-header-mini { padding: calc(14px + env(safe-area-inset-top)) 18px 14px; gap: 10px; }
.chat-home-btn {
  width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,0.18);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; cursor: pointer; flex-shrink: 0;
}
.chat-home-btn:active { background: rgba(255,255,255,0.3); }
.chat-header-title { font-size: 15px; font-weight: 700; }

/* 홈 탭 전용 헤더 - 1행: 로고 + 마일리지 + 벨 / 2행: 인사말(로고 밑) */
#chat-header.home-header { flex-direction: column; align-items: stretch; gap: 8px; }
.home-header-row { display: flex; align-items: center; gap: 5px; }
.home-header-logo { height: 22px; width: auto; flex-shrink: 0; margin-right: auto; }
.home-header-greet { font-size: 15px; font-weight: 700; color: #fff; padding-left: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-header-mileage {
  /* 정확한 금액을 그대로 노출하되(예: 1,000,000원), 벨이 항상 보이도록 칩(포인트·캐시)이 먼저
     줄어든다(flex-shrink:1 + overflow). 큰 금액도 최대한 들어가도록 폰트·패딩을 촘촘히 잡는다. */
  flex-shrink: 1; min-width: 0; overflow: hidden; white-space: nowrap;
  border: 0; border-radius: 20px; background: rgba(255,255,255,0.18); color: #fff;
  font-size: 11.5px; font-weight: 700; padding: 6px 9px; display: flex; align-items: center; gap: 4px; cursor: pointer;
}
.home-header-mileage i { color: #ffd166; font-size: 11px; flex-shrink: 0; }
.home-header-mileage:active { background: rgba(255,255,255,0.3); }
/* 상단 알림 벨 + 미읽음 배지 */
.home-header-bell { position: relative; flex-shrink: 0; border: 0; border-radius: 50%; width: 34px; height: 34px; background: rgba(255,255,255,0.18); color: #fff; font-size: 15px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.home-header-bell:active { background: rgba(255,255,255,0.3); }
.bell-badge { position: absolute; top: -3px; right: -3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #E5484D; color: #fff; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--pg-accent, #2864ff); box-sizing: border-box; }
/* 알림 내역 리스트 */
.ntf-list { display: flex; flex-direction: column; gap: 8px; }
.ntf-item { display: flex; align-items: flex-start; gap: 11px; width: 100%; text-align: left; border: 0; -webkit-appearance: none; appearance: none; font: inherit; border-radius: 12px; padding: 13px 14px; background: #fff; box-shadow: var(--pg-shadow-soft); cursor: pointer; }
.ntf-item.unread { background: #f4f8ff; box-shadow: 0 0 0 1px rgba(40,100,255,.12); }
.ntf-icon { flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; background: #eaf1ff; color: var(--pg-accent, #2864ff); display: flex; align-items: center; justify-content: center; font-size: 14px; margin-top: 1px; }
.ntf-body { flex: 1 1 auto; min-width: 0; }
.ntf-title { font-size: 13.5px; font-weight: 800; color: var(--pg-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 알림센터 카드는 요약만: 본문은 한 줄로 잘라 보여주고, 누르면 전체 내용으로 연결한다. */
.ntf-text { font-size: 12.5px; color: var(--pg-text-sub); line-height: 1.5; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 1; line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ntf-date { font-size: 11px; color: #9aa6bd; margin-top: 5px; }
.ntf-arrow { color: #c4cdda; font-size: 12px; align-self: center; flex-shrink: 0; }

/* API 설정 배너 */
#api-notice {
  background: #fef9c3;
  border-bottom: 1px solid #fde047;
  padding: 8px 16px;
  font-size: 12px;
  color: #854d0e;
  display: flex; align-items: center; gap: 6px;
  flex-shrink: 0;
}
#api-notice.hidden { display: none; }

/* 메시지 영역 */
#messages {
  flex: 1;
  overflow-y: auto;
  /* 목록 맨 위에서 더 당겨도 문서로 스크롤이 넘어가 새로고침이 뜨지 않게 막는다. */
  overscroll-behavior-y: contain;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
}

/* 메시지 버블 */
.msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 85%;
}
.msg.bot { align-self: flex-start; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }

.msg-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pg-accent), var(--pg-accent-dark));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(61, 99, 255, 0.25);
}

.msg-bubble {
  padding: 11px 15px;
  border-radius: 20px;
  font-size: 14px;
  line-height: 1.5;
  word-break: keep-all;
  box-shadow: 0 2px 8px rgba(30, 41, 82, 0.05);
}
.msg.bot .msg-bubble {
  background: #f4f6fd;
  border-bottom-left-radius: 6px;
  color: #1e293b;
}
.msg.user .msg-bubble {
  background: linear-gradient(135deg, var(--pg-accent), var(--pg-accent-dark));
  border-bottom-right-radius: 6px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(61, 99, 255, 0.25);
}

/* 후보 주소 카드 */
.candidate-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.candidate-btn {
  background: #fff;
  border: 1px solid #eef0f9;
  border-radius: var(--pg-radius-md);
  padding: 11px 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
  font-size: 13px;
  box-shadow: 0 3px 12px rgba(30, 41, 82, 0.06);
}
.candidate-btn:hover {
  border-color: var(--pg-accent);
  background: #f4f6fd;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(61, 99, 255, 0.14);
}
.candidate-btn .place-name {
  font-weight: 600;
  color: #1f50d6;
  font-size: 14px;
  display: block;
  margin-bottom: 2px;
}
.candidate-btn .address {
  color: #748091;
  font-size: 12px;
  display: block;
}

.confirmed-location {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 1px solid #eef0f9;
  border-radius: var(--pg-radius-md);
  padding: 10px 12px;
  margin-bottom: 12px;
  box-shadow: 0 3px 12px rgba(30, 41, 82, 0.06);
}
.confirmed-location > div { display: grid; gap: 3px; }
.confirmed-location strong { font-size: 12px; color: #334155; }
.confirmed-label { font-size: 11px; color: #748091; }
.btn-edit-origin {
  flex-shrink: 0;
  border: 1px solid #93c5fd;
  background: #eff6ff;
  color: #2864FF;
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.btn-edit-origin:hover { background: #dbeafe; }
.btn-edit-origin:disabled { opacity: .5; cursor: default; }

/* 결과 카드 */
.result-card {
  background: #f2f6ff;
  border: 0;
  border-radius: var(--pg-radius-lg);
  padding: 20px;
  margin-top: 8px;
  box-shadow: var(--pg-shadow-soft);
}
.result-fare {
  font-size: 28px;
  font-weight: 800;
  color: #1f50d6;
  text-align: center;
  margin: 12px 0;
}
.result-label {
  font-size: 12px;
  color: #748091;
  text-align: center;
  margin-bottom: 4px;
}
/* 제주(도서) 배편 선택 */
.ferry-box { margin: 10px 0; padding: 12px; border: 1px solid #cfe0ff; background: #f4f8ff; border-radius: 12px; }
.ferry-title { font-size: 14px; font-weight: 800; color: #1f50d6; margin-bottom: 4px; }
.ferry-title i { margin-right: 4px; }
.ferry-sub { font-size: 12px; color: #51607a; line-height: 1.5; margin-bottom: 10px; }
.ferry-grades { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ferry-grade { text-align: left; border: 1.5px solid #d5e0f2; background: #fff; border-radius: 10px; padding: 9px 10px; cursor: pointer; transition: border-color .12s, background .12s; }
.ferry-grade.on { border-color: #2864FF; background: #eef4ff; box-shadow: 0 0 0 1px #2864FF inset; }
.ferry-grade-top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.ferry-grade-name { font-size: 13px; font-weight: 700; color: #17202D; }
.ferry-grade-fare { font-size: 12.5px; font-weight: 800; color: #1f50d6; white-space: nowrap; }
.ferry-grade-ex { font-size: 11px; color: #8792a6; margin-top: 2px; line-height: 1.4; }
.ferry-breakdown { margin-top: 10px; padding-top: 8px; border-top: 1px dashed #cfe0ff; font-size: 13px; }
.ferry-breakdown > div { display: flex; justify-content: space-between; padding: 3px 0; color: #51607a; }
.ferry-breakdown .ferry-total { border-top: 1px solid #cfe0ff; margin-top: 4px; padding-top: 7px; font-size: 15px; }
.ferry-breakdown .ferry-total b { color: #1f50d6; }
.ferry-notice { margin-top: 8px; font-size: 11px; color: #8792a6; line-height: 1.5; }
.ferry-date-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.ferry-date-row label { font-size: 12.5px; font-weight: 700; color: #51607a; }
.ferry-date-row input[type=date] { border: 1px solid #ced6e5; border-radius: 8px; padding: 8px 10px; font: inherit; }
.ferry-day { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.ferry-day.wd { background: #eef4ff; color: #1f50d6; }
.ferry-day.wk { background: #fff0e8; color: #d1600f; }
.ferry-grade-both { font-size: 10.5px; color: #a2acbd; margin-top: 3px; }
.ferry-grade-select { margin-top: 4px; }
.ferry-grade-select label { display: block; font-size: 12.5px; font-weight: 700; color: #51607a; margin-bottom: 5px; }
.ferry-grade-select select { width: 100%; border: 1px solid #ced6e5; border-radius: 8px; padding: 11px 12px; font: inherit; background: #fff; }
.ferry-grade-select .ferry-grade-ex { font-size: 12px; color: #51607a; margin-top: 6px; }
@media (max-width: 380px) { .ferry-grades { grid-template-columns: 1fr; } }
.result-route {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin: 8px 0;
  padding: 8px 0;
  border-top: 1px solid #c7d2fe;
  border-bottom: 1px solid #c7d2fe;
}
.result-address {
  font-size: 12px;
  color: #475569;
  margin: 6px 0;
}
.result-address strong { color: #1f50d6; }
.result-notice {
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
  margin-top: 10px;
  line-height: 1.4;
}
.result-mock-notice {
  font-size: 11px;
  color: #F59E0B;
  background: #fef3c7;
  padding: 6px 10px;
  border-radius: 8px;
  margin-top: 8px;
  text-align: center;
}

/* 계산 상세 토글 */
.calc-detail {
  margin-top: 8px;
  border-top: 1px solid #c7d2fe;
  padding-top: 8px;
}
.calc-detail summary {
  font-size: 12px;
  color: #6366f1;
  cursor: pointer;
  user-select: none;
  padding: 4px 0;
}
.calc-step {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #748091;
  padding: 2px 0;
}
.calc-step .step-value { color: #1f50d6; font-weight: 500; }

/* 다시 계산 버튼 */
.btn-restart {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  background: #2864FF;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-restart:hover { background: #1f50d6; }

/* 타이핑 인디케이터 */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  background: #f1f5ff;
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  width: fit-content;
}
.typing-dot {
  width: 8px; height: 8px;
  background: #93c5fd;
  border-radius: 50%;
  animation: typing 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* 입력 영역 */
#input-area {
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid #f0f1f8;
  background: #fff;
  flex-shrink: 0;
}
#input-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
#user-input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid transparent;
  background: #f4f6fd;
  border-radius: 24px;
  font-size: 16px;
  outline: none;
  resize: none;
  max-height: 100px;
  line-height: 1.4;
  transition: border-color 0.15s, background 0.15s;
  font-family: inherit;
  overflow-y: auto;
  scrollbar-width: none;          /* Firefox: 스크롤바 숨김 */
  -ms-overflow-style: none;       /* 구형 Edge */
}
#user-input::-webkit-scrollbar { width: 0; height: 0; display: none; }  /* 크롬/사파리: 스크롤바 숨김 */
#user-input:focus { border-color: var(--pg-accent); background: #fff; box-shadow: 0 0 0 3px rgba(61, 99, 255, 0.1); }
#user-input:disabled {
  background: #f8fafc;
  color: #94a3b8;
}
#send-btn {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--pg-accent), var(--pg-accent-dark));
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, transform 0.1s;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(61, 99, 255, 0.3);
}
#send-btn:hover:not(:disabled) { transform: scale(1.06); }
#send-btn:disabled { background: #cbd5e1; box-shadow: none; cursor: not-allowed; }
#mic-btn {
  width: 44px; height: 44px;
  background: #eef3ff; color: var(--pg-accent, #2864FF);
  border: 1px solid #d7e2ff; border-radius: 50%;
  cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, transform 0.1s; flex-shrink: 0;
}
#mic-btn[hidden] { display: none; }   /* 미지원(iOS 등) 시 확실히 숨김 — id 셀렉터가 [hidden] 기본값을 덮는 문제 방지 */
#mic-btn:hover { transform: scale(1.06); }
#mic-btn.listening {
  background: #E5484D; color: #fff; border-color: #E5484D;
  animation: mic-pulse 1.1s ease-in-out infinite;
}
@keyframes mic-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(229,72,77,.45); } 50% { box-shadow: 0 0 0 8px rgba(229,72,77,0); } }

/* 진행 표시 */
.progress-steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  flex-shrink: 0;
}
.step-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #e2e8f0;
  transition: all 0.3s;
}
.step-dot.active { background: #2864FF; transform: scale(1.3); }
.step-dot.done { background: #20CDB1; }

.waypoint-option-actions { display:flex; gap:8px; margin-top:10px; }
.waypoint-option-actions .candidate-btn { flex:1; text-align:center; }
.primary-choice { background:#2864FF !important; color:#fff !important; }
.waypoint-list, .waypoint-summary { margin:10px 0; padding:10px; border-radius:10px; background:#fff7ed; font-size:12px; }
.waypoint-row { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:7px 0; border-bottom:1px solid #fed7aa; }
.waypoint-row:last-child { border-bottom:0; }
.waypoint-row span { flex:1; overflow-wrap:anywhere; }
.waypoint-row button { border:1px solid #cbd5e1; border-radius:6px; background:white; padding:3px 6px; margin-left:3px; cursor:pointer; }
.waypoint-row button:disabled { opacity:.35; cursor:not-allowed; }
.fare-breakdown { display:flex; flex-direction:column; gap:4px; margin:10px 0; padding:10px; background:#f8fafc; border-radius:8px; font-size:12px; color:#475569; }
.result-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:12px; }
.result-actions .btn-restart { margin-top:0; }
.btn-request { border:0; border-radius:var(--pg-radius-sm); padding:13px 14px; color:#fff; background:var(--pg-accent); font-weight:700; cursor:pointer; box-shadow:none; transition:transform .1s,background .1s; }
.btn-request:active { transform:scale(.98); background:var(--pg-accent-dark); }
.btn-request:hover:not(:disabled) { transform:translateY(-1px); }
.btn-request:disabled { opacity:.5; cursor:not-allowed; box-shadow:none; }
.request-modal { position:fixed; inset:0; z-index:100; display:flex; justify-content:center; align-items:flex-start; padding:20px; background:rgba(15,23,42,.55); overflow:auto; }
.request-dialog { width:min(480px,100%); background:#fff; border-radius:var(--pg-radius-lg); padding:22px; box-shadow:var(--pg-shadow-card); }
.request-header { display:flex; justify-content:space-between; align-items:center; }
.request-header h2 { margin:0; font-size:19px; }
.request-header button { border:0; background:none; font-size:26px; cursor:pointer; color:#94a3b8; }
.muted-copy,.request-address { color:#748091; font-size:13px; }
.request-dialog fieldset { border:1px solid #eef0f9; border-radius:var(--pg-radius-md); margin:14px 0; padding:14px; }
.request-dialog legend { padding:0 6px; font-weight:700; color:#334155; }
.request-dialog label { display:flex; flex-direction:column; gap:5px; margin:9px 0; color:#475569; font-size:13px; }
.request-dialog input,.request-dialog select,.request-dialog textarea { width:100%; border:1.5px solid #e7eaf6; background:#fbfbfe; border-radius:var(--pg-radius-sm); padding:11px; font:inherit; box-sizing:border-box; transition:border-color .15s,background .15s; }
.request-dialog input.input-invalid { border-color:#E5484D; background:#fef2f2; }
.field-error { color:#E5484D; font-size:12px; min-height:15px; }
.phone-verify { margin:-2px 0 4px; }
.phone-verify-actions { display:flex; gap:6px; align-items:center; }
.phone-verify-actions input { flex:1; min-width:0; }
.phone-verify-actions .btn-outline { flex:0 0 auto; white-space:nowrap; border:1.5px solid var(--pg-blue,#2C6BFF); background:#fff; color:var(--pg-blue,#2C6BFF); border-radius:var(--pg-radius-sm); padding:11px 12px; font:inherit; font-weight:700; cursor:pointer; }
.phone-verify-actions .btn-outline:disabled { opacity:.5; cursor:default; }
.verify-msg { font-size:12px; min-height:15px; margin-top:4px; }
.request-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
/* 연락처 하나만 있는 행은 한 칸(전체 폭)으로 — 반쪽짜리로 짧게 보이지 않도록. */
.request-grid--single { grid-template-columns:1fr; }
.request-dialog .check-row { flex-direction:row; align-items:center; }
.request-dialog .check-row input { width:auto; }
/* 회원가입 동의 묶음: 전체 동의 + 필수/선택 그룹 */
.consent-box { border:1px solid #e5e8ee; border-radius:12px; padding:4px 14px 12px; margin:10px 0 2px; background:#fafbfc; }
/* 폼 기본 label이 세로(column)라서, 동의 행은 명시적으로 가로(row)로 덮어쓴다. */
.request-dialog .consent-all { display:flex; flex-direction:row; align-items:center; justify-content:flex-start; text-align:left; gap:11px; padding:13px 2px; border-bottom:1px solid #e9ecf2; margin-bottom:2px; cursor:pointer; }
.request-dialog .consent-all input { width:20px; height:20px; flex:none; margin:0; accent-color:var(--pg-accent); }
.consent-all-text { display:flex; flex-direction:column; line-height:1.3; font-weight:800; font-size:14.5px; color:var(--pg-text); }
.consent-all-text em { font-style:normal; font-weight:500; font-size:11.5px; color:#8b95a6; margin-top:3px; }
.consent-sub { font-size:11px; font-weight:800; letter-spacing:.02em; color:#9aa4b2; margin:11px 2px 2px; text-align:left; }
/* 각 동의 행: 체크박스 · 필수/선택 태그 · 라벨을 한 줄에 가지런히 */
.request-dialog .consent-item { display:flex; flex-direction:row; align-items:center; justify-content:flex-start; text-align:left; gap:9px; padding:7px 2px; margin:0; font-size:13.5px; color:#404a5c; cursor:pointer; }
.request-dialog .consent-item input { width:18px; height:18px; flex:none; margin:0; accent-color:var(--pg-accent); }
.consent-tag { font-size:10.5px; font-weight:800; line-height:1.2; padding:3px 0; border-radius:6px; flex:none; width:34px; text-align:center; white-space:nowrap; }
.consent-tag.req { color:#2864FF; background:#e9f0ff; }
.consent-tag.opt { color:#697586; background:#eceff3; }
.consent-text { flex:1; min-width:0; }
.consent-text .terms-link { font-weight:700; }
.request-footer { display:flex; justify-content:flex-end; gap:8px; margin-top:16px; }
.secondary-request { border:0; background:#f2f4f6; border-radius:var(--pg-radius-sm); padding:11px 14px; cursor:pointer; color:var(--pg-text); font-weight:700; }
.request-error { color:#E5484D; font-size:13px; min-height:18px; }
.request-confirm>div { padding:12px 0; border-bottom:1px solid #e2e8f0; font-size:13px; line-height:1.6; }
.request-success { text-align:center; }
.request-success>i { font-size:44px; color:#16A36A; }
.request-success pre { white-space:pre-wrap; text-align:left; background:#f8fafc; border-radius:10px; padding:14px; font-family:inherit; font-size:12px; }
.request-success button { margin:4px; }

/* 빠른 접수 페이지 - 모바일 웹앱 사이즈 */
#quick-container { max-width: var(--pg-app-width); margin: 0 auto; min-height: 100dvh; background: #fff; display: flex; flex-direction: column; }
/* 앱 화면(홈/이용/마이 및 하위 페이지)은 로그인/가입(.gate-page)을 제외하고 폰 프레임처럼 자체 높이 안에서
   내부 스크롤한다. 그래야 넓은 PC 화면에서도 하단 네비·빠른접수가 뷰포트가 아니라 이 프레임 기준으로 붙고,
   프레임 안의 본문만 스크롤돼 "PC에서 스크롤이 안 내려가는" 문제가 사라진다. */
#quick-container:not(.gate-page) { position: relative; height: 100dvh; overflow: hidden; }
#quick-container:not(.gate-page) > #quick-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; }
/* 스크롤 본문의 자식들은 자연 높이를 유지해야 한다(축소 금지). 안 그러면 overflow:hidden을 쓰는
   배너 캐러셀 등이 flex 컬럼 안에서 높이 0으로 찌그러져 PC에서 안 보이게 된다. */
#quick-container:not(.gate-page) > #quick-body > * { flex-shrink: 0; }
/* 헤더가 없는 하위 페이지(다운로드·약관·배너 상세 등)는 최상단이 본문이라, 아이폰 상태바와 겹치지
   않도록 위 안전영역만큼 내려준다. 헤더가 있는 홈 탭 본문은 아래 .app-shell-body에서 다시 18px로 되돌린다. */
/* 하위 페이지 상단 여백을 통일해 뒤로가기 버튼이 모든 페이지에서 같은 높이에서 시작한다. */
#quick-body { padding: calc(12px + env(safe-area-inset-top)) 18px 18px; display: flex; flex-direction: column; gap: 16px; }
.quick-form { margin: 0; }
.quick-form.request-success { padding: 28px 20px; }
.quick-footer { text-align: center; padding: 14px calc(14px + env(safe-area-inset-bottom)) calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid #f0f1f8; }
.quick-footer a { color: var(--pg-accent); font-size: 13px; text-decoration: none; font-weight: 600; }
.quick-footer a:hover { text-decoration: underline; }

/* 진입 게이트 (페이지 배경과 이어지도록 셸 박스를 없앰) */
#quick-container.gate-page {
  justify-content: center;
  background: transparent;
}
.gate-header { text-align: center; padding: 12px 20px 28px; flex-shrink: 0; }
.gate-header i { font-size: 30px; color: var(--pg-accent); }
.gate-header .gate-logo {
  height: 34px; width: auto; display: block; margin: 0 auto;
  animation: pg-logo-in .6s cubic-bezier(.34,1.56,.64,1) both;
  transition: transform .15s ease;
  cursor: pointer;
}
.gate-header .gate-logo:active { transform: scale(.9); }

@keyframes pg-logo-in {
  0% { opacity: 0; transform: scale(.55) translateY(10px); }
  60% { opacity: 1; transform: scale(1.08) translateY(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.gate-header h1 { font-size: 20px; font-weight: 700; margin: 10px 0 4px; color: #1e293b; }
.gate-header p { font-size: 13px; color: #748091; margin: 10px 0 0; }
.gate-header .slogan { font-size: 15px; font-weight: 700; color: var(--pg-accent); margin: 10px 0 0; }
.text-link-btn { border: 0; background: none; color: #748091; font-size: 13px; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 10px; text-align: center; }
.text-link-btn:hover { color: var(--pg-accent); }
.request-dialog input:focus, .request-dialog select:focus, .request-dialog textarea:focus {
  outline: none;
  border-color: var(--pg-accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(61, 99, 255, 0.14);
}

/* 로그인/회원가입 유형 탭 (아이디·코드 로그인, 개인·기업 회원가입) */
.mode-tabs { display: flex; gap: 6px; margin-bottom: 10px; background: #f4f6fd; padding: 4px; border-radius: var(--pg-radius-sm); }
.mode-tab { flex: 1; border: 0; background: transparent; color: #748091; border-radius: 8px; padding: 9px 6px; font-size: 13px; font-weight: 700; cursor: pointer; transition: all .15s; white-space: nowrap; }
.mode-tab.active { background: linear-gradient(135deg, var(--pg-accent), var(--pg-accent-dark)); color: #fff; box-shadow: 0 4px 10px rgba(61, 99, 255, 0.25); }
.mode-hint { margin: 0 0 4px; color: #748091; font-size: 12px; line-height: 1.5; }
.mode-notice { margin: 6px 0 4px; padding: 9px 11px; background: #FFF7E6; border: 1px solid #F4DCA0; border-radius: 9px; color: #8a6d1a; font-size: 12px; line-height: 1.5; }
.pw-match { display:inline-block; margin-left:6px; font-size:12px; font-weight:700; }
.pw-match.ok { color:#12866b; } .pw-match.no { color:#e5484d; }
.same-row { font-size:12.5px; color:#5b6579; margin:2px 0 6px !important; }
.biz-lic-prev img { display:block; }
.required-mark { color: #E5484D; font-size: 11px; font-weight: 700; margin-left: 2px; }
.signup-code-box { margin: 4px 0 0; padding: 16px; background: #f4f6fd; border: 1.5px dashed var(--pg-accent); border-radius: var(--pg-radius-md); text-align: center; font-size: 20px; font-weight: 700; letter-spacing: 2px; color: var(--pg-accent-dark); }

/* 회원 정보 바 */
.member-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; background: #f7f8fd; border-bottom: 1px solid #f0f1f8; flex-shrink: 0; }
.member-bar-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.member-bar-name { color: #334155; font-weight: 700; font-size: 12px; display: flex; align-items: center; gap: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.member-bar-mileage { color: #b45309; font-weight: 700; font-size: 11px; display: flex; align-items: center; gap: 4px; }
.member-bar-actions { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; }
.member-bar-btn { border: 1px solid #e7eaf6; background: #fff; color: #334155; border-radius: 16px; padding: 5px 10px; font-size: 11px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.member-bar-btn:hover { background: #f4f6fd; }
.toast { position: fixed; right: 20px; bottom: 20px; background: #111827; color: #fff; padding: 12px 16px; border-radius: 9px; box-shadow: 0 8px 30px rgba(0,0,0,.2); z-index: 200; font-size: 13px; }

/* 모바일 웹앱 사이즈: 실제 모바일 화면에서는 꽉 차게, 넓은 화면(데스크톱)에서는 폰 프레임처럼 중앙에 카드로 표시 */
@media (min-width: 460px) {
  #chat-container, #quick-container:not(.gate-page) {
    /* 프레임을 창 높이에 꽉 채운다(위·아래 여백 없음). 폭만 중앙 정렬.
       height=100dvh, margin 0 이라 바깥 페이지 스크롤이 생기지 않고, 콘텐츠는 프레임 안에서만 스크롤. */
    height: 100dvh;
    min-height: 0;
    margin: 0 auto;
    box-shadow: var(--pg-shadow-card);
    overflow: hidden;
  }
  /* 챗봇 접수 화면도 동일(풀높이, 키보드 시 --app-vh로 축소). */
  #chat-container { height: var(--app-vh, 100dvh); }
  #chat-header { border-radius: 0; }
  #quick-container.gate-page { min-height: 100dvh; }
}
@media (max-width: 459px) {
  .msg { max-width: 92%; }
  .request-grid,.result-actions { grid-template-columns:1fr; }
}

/* ===== 로그인 진입 화면 (심플 버전) ===== */
.entry-screen { display:flex; flex-direction:column; align-items:center; text-align:center; padding:8px 24px 0; }
.entry-headline { font-size:23px; font-weight:800; color:var(--pg-text); margin:22px 0 8px; line-height:1.4; letter-spacing:-.3px; }
.entry-sub { font-size:13.5px; color:var(--pg-text-sub); margin:0 0 34px; }
.entry-actions { width:100%; display:flex; flex-direction:column; gap:14px; }
.kakao-btn-primary {
  width:100%; border:0; border-radius:var(--pg-radius-md); padding:15px 14px; font-size:15px; font-weight:800;
  background:#FEE500; color:#191919; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:8px;
  box-shadow:none; transition:transform .1s;
}
.kakao-btn-primary:active { transform:scale(.98); }
.entry-link { border:0; background:none; color:#748091; font-size:13.5px; font-weight:600; text-decoration:underline; cursor:pointer; padding:6px; }
.entry-link:hover { color:var(--pg-accent); }
.entry-links-row { display:flex; align-items:center; justify-content:center; gap:10px; margin-top:4px; }
.entry-links-row .dot { color:#cbd5e1; }

/* ===== 로그인 진입 화면 (풀스크린 히어로) =====
   프레임(폭·높이·위치)은 로그인 후 앱 셸(#quick-container:not(.gate-page))과 100% 동일해야 하므로,
   같은 규격을 컨테이너(.login-hero-page)에 그대로 적용하고, .login-hero 는 그 안을 꽉 채운다. */
.gate-page.login-hero-page { justify-content:stretch; padding:0; background:transparent; }
.login-hero {
  position:relative; flex:1 1 auto; width:100%;
  background-color:#dfe6ee; background-size:cover; background-position:center 44%; background-repeat:no-repeat;
  display:flex; flex-direction:column; justify-content:space-between; overflow:hidden;
  padding:calc(env(safe-area-inset-top,0px) + 22px) 24px calc(env(safe-area-inset-bottom,0px) + 28px);
}
.login-back {
  position:absolute; top:calc(env(safe-area-inset-top,0px) + 12px); left:12px;
  width:40px; height:40px; border:0; background:transparent; color:#1e293b; font-size:19px;
  display:flex; align-items:center; justify-content:center; border-radius:50%; cursor:pointer; z-index:2;
}
.login-back:active { background:rgba(15,23,42,.08); }
.login-hero-top { text-align:center; margin-top:38px; }
.login-hero-eyebrow { font-size:13px; font-weight:700; color:#5b6b7f; letter-spacing:.3px; margin:0 0 13px; }
.login-hero-logo { height:38px; width:auto; display:inline-block;
  animation:pg-logo-in .6s cubic-bezier(.34,1.56,.64,1) both; }
.login-hero-bottom { display:flex; flex-direction:column; gap:14px; }
.login-hero-error {
  background:rgba(229,72,77,.95); color:#fff; font-size:13px; font-weight:600; line-height:1.5;
  padding:11px 14px; border-radius:10px; text-align:center; box-shadow:0 6px 18px rgba(229,72,77,.28);
}
.kakao-cta {
  width:100%; border:0; border-radius:14px; background:#FEE500; color:#191600;
  font-size:16px; font-weight:800; padding:17px 16px; cursor:pointer;
  display:flex; align-items:center; justify-content:center; gap:8px;
  box-shadow:0 10px 26px rgba(17,24,39,.18); transition:transform .12s ease;
}
.kakao-cta:active { transform:scale(.98); }
.kakao-cta i { font-size:17px; }
.code-cta {
  width:100%; border:0; border-radius:14px; background:rgba(255,255,255,.96); color:#1f2937;
  font-size:15.5px; font-weight:800; padding:16px 16px; cursor:pointer; margin-top:10px;
  display:flex; align-items:center; justify-content:center; gap:8px;
  box-shadow:0 8px 20px rgba(17,24,39,.14); transition:transform .12s ease;
}
.code-cta:active { transform:scale(.98); }
.code-cta i { font-size:15px; color:var(--pg-accent, #2864FF); }
.login-hero-links { display:flex; align-items:center; justify-content:center; gap:10px; }
.login-hero-link { border:0; background:none; color:#3f4b5b; font-size:13px; font-weight:600; cursor:pointer; padding:6px 4px; }
.login-hero-link:active { color:var(--pg-accent); }
.login-hero-links .dot { color:#94a3b8; }
.login-kakao-inquiry { width:100%; margin-top:12px; border:1px solid rgba(20,30,60,.10); background:rgba(255,255,255,.94); color:#33415c; font-size:13.5px; font-weight:700; border-radius:12px; padding:13px 14px; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:8px; box-shadow:0 2px 10px rgba(20,30,60,.12); }
.login-kakao-inquiry:active { transform:scale(.98); }
.login-kakao-inquiry i { color:#33415c; }
/* 로그인 화면 하단 사업자 정보 — 사진 배경 위 가독성 위해 반투명 어두운 밴드 + 밝은 텍스트 */
/* 하단 약관: 회색 박스 없이 텍스트만. 밝은 배경 위에서도 읽히도록 진한 색 + 옅은 밝은 그림자. */
.login-hero-foot { margin-top:14px; text-align:center; }
.login-hero-legal { display:flex; align-items:center; justify-content:center; gap:8px; }
.login-hero-legal button { background:none; border:0; color:#33415c; font-size:12px; font-weight:700; text-decoration:underline; text-underline-offset:2px; cursor:pointer; padding:2px 0; text-shadow:0 1px 2px rgba(255,255,255,.6); }
.login-hero-legal .sep { color:#8b96a8; font-weight:400; text-shadow:0 1px 2px rgba(255,255,255,.6); }
/* 데스크톱: 로그인 후 화면(앱 셸)과 동일한 폰 프레임 규격.
   앱 셸(#quick-container:not(.gate-page))은 460px↑에서 height:min(100dvh-40,900)+margin:20 auto+카드,
   640px↑에서 max-width:560px 이다. 로그인 컨테이너도 똑같이 맞춘다. */
@media (min-width:460px) {
  #quick-container.gate-page.login-hero-page {
    height:100dvh; min-height:0; margin:0 auto;
    box-shadow:var(--pg-shadow-card); overflow:hidden;
  }
}
@media (min-width:640px) {
  #quick-container.gate-page.login-hero-page { max-width:430px; }
}
/* 이전 화면으로 돌아가기: 텍스트 링크가 아니라 버튼(둥근 아웃라인) */
.back-link { display:inline-flex; align-self:flex-start; width:auto; align-items:center; gap:6px; border:1px solid var(--pg-border,#e7ebf0); background:#fff; color:var(--pg-text,#17202d); font-size:13px; font-weight:700; cursor:pointer; padding:8px 14px; border-radius:999px; box-shadow:var(--pg-shadow-soft); margin-bottom:4px; }
.back-link:hover { border-color:var(--pg-accent); color:var(--pg-accent); }
.back-link:active { transform:scale(.98); }

/* ===== 로그인 후 앱 홈 (하단 내비게이션 셸) ===== */
#quick-body.app-shell-body { padding-top: 18px; padding-bottom: 200px; }
/* 홈 탭(상단 헤더가 있는 화면)에서는 검색바를 헤더 바로 아래에 붙인다. */
#quick-body.app-shell-body:not(.no-top-header) { padding-top: 0; }
#quick-body.app-shell-body:not(.no-top-header) .home-search-sticky { padding-top: 10px; }
/* 홈 상단 빠른 견적 진입 - 검색바/채팅 입력창 느낌 */
.home-search-bar {
  display:flex; align-items:center; gap:10px; width:100%; text-align:left; cursor:pointer;
  background:#fff; color:var(--pg-text);
  border:1px solid #DCE2EA; border-radius:var(--pg-radius-md);
  padding:8px 8px 8px 16px; box-shadow:var(--pg-shadow-soft);
  transition:transform .1s, border-color .15s, box-shadow .15s;
}
.home-search-bar:active { transform:scale(.99); }
.home-search-bar:hover { border-color:var(--pg-accent); box-shadow:0 4px 16px rgba(40,100,255,.12); }
.home-search-bar .home-search-icon { font-size:16px; color:var(--pg-text-sub); flex-shrink:0; }
.home-search-bar .home-search-placeholder {
  flex:1; min-width:0; font-size:14px; font-weight:600; color:var(--pg-text-sub);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.home-search-bar .home-search-send {
  flex-shrink:0; width:42px; height:42px; border-radius:var(--pg-radius-sm);
  background:var(--pg-accent); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:15px;
}

.home-banner-carousel { overflow:hidden; border-radius:var(--pg-radius-lg); }
.home-banner-track { display:flex; transition:transform .3s ease; touch-action:pan-y; }
.home-banner {
  flex:0 0 100%; width:100%; box-sizing:border-box; border:0; text-align:left; font:inherit; cursor:pointer;
  border-radius:var(--pg-radius-lg); padding:20px; color:var(--pg-text); position:relative; overflow:hidden;
  background:#eef2ff;
}
/* 이미지 배너는 제목·부제가 이미지 안에 포함돼 있어 오버레이 텍스트 없이 전체를 그대로 보여준다. */
.home-banner.has-image { aspect-ratio: 1645 / 918; min-height:0; padding:0; background-size:cover; background-position:center; color:#fff; }
.home-banner-title { position:relative; font-size:15px; font-weight:800; margin:0 0 6px; }
.home-banner.has-image .home-banner-sub { position:relative; color:rgba(255,255,255,.85); }
.home-banner-sub { position:relative; font-size:12.5px; color:var(--pg-text-sub); margin:0; }
.home-banner-dots { display:flex; justify-content:center; gap:6px; margin-top:8px; }
.home-banner-dot { width:6px; height:6px; border:0; padding:0; -webkit-appearance:none; appearance:none; border-radius:50%; background:#d8dee8; cursor:pointer; transition:background .2s,width .2s; }
.home-banner-dot.active { background:var(--pg-accent); width:16px; border-radius:3px; }

.home-section-title { display:flex; align-items:center; justify-content:space-between; margin:4px 0 2px; }
.home-section-title h3 { font-size:14.5px; font-weight:800; color:var(--pg-text); margin:0; }
.home-section-title button { border:0; background:none; color:#94a3b8; font-size:12px; font-weight:700; cursor:pointer; }
.home-section-title button:hover { color:var(--pg-accent); }
/* 현재 이용 중: 배너처럼 폭을 채운 캐러셀 + 아래 점(dots) */
.home-active-carousel { overflow:hidden; }
.home-active-track { display:flex; transition:transform .35s cubic-bezier(.22,.61,.36,1); }
.home-active-slide { flex:0 0 100%; min-width:0; padding:2px; }
.home-active-slide .usage-card { width:100%; }
.home-active-count { display:inline-block; background:#EDF2FF; color:var(--pg-accent,#2864FF); font-size:12px; font-weight:800; border-radius:999px; padding:1px 9px; margin-left:6px; vertical-align:middle; }
/* 광고 영역(애드핏 등) 자리표시 */
.ad-slot { margin:16px 0 4px; }
.ad-slot--empty { display:flex; align-items:center; justify-content:center; gap:8px; width:320px; max-width:100%; height:100px; margin:0 auto; border:1px dashed #cdd6e6; border-radius:14px; background:#f7f9fc; color:#9aa6bd; font-size:13px; font-weight:700; }
.ad-slot__badge { font-size:10px; font-weight:800; color:#fff; background:#b7c1d4; border-radius:5px; padding:2px 6px; letter-spacing:.5px; }
/* 스플래시 하단 광고 영역 */
.pg-splash-ad { position:absolute; left:50%; bottom:calc(28px + env(safe-area-inset-bottom, 0px)); transform:translateX(-50%); width:300px; max-width:88vw; height:250px; max-height:38vh; display:flex; align-items:center; justify-content:center; gap:8px; border:1px dashed rgba(255,255,255,.34); border-radius:14px; color:rgba(255,255,255,.62); font-size:13px; font-weight:700; }
.pg-splash-ad-badge { font-size:10px; font-weight:800; color:#111; background:rgba(255,255,255,.85); border-radius:5px; padding:2px 6px; letter-spacing:.5px; }

.usage-empty { text-align:center; color:var(--pg-text-sub); font-size:12.5px; padding:26px 10px; background:#f8fafc; border-radius:var(--pg-radius-md); }
.usage-list { display:flex; flex-direction:column; gap:10px; }
/* 홈 카드형 소식/공지 클립 — 가로 스크롤 카드 */
.clip-cards { display:flex; gap:12px; overflow-x:auto; padding:4px 2px 6px; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
.clip-cards::-webkit-scrollbar { display:none; }
.clip-card { flex:0 0 auto; width:240px; max-width:82%; background:#fff; border-radius:16px; box-shadow:0 6px 20px rgba(30,41,82,.08), 0 0 0 1px rgba(30,41,82,.04); overflow:hidden; scroll-snap-align:start; }
.clip-card-link { cursor:pointer; transition:transform .12s ease; }
.clip-card-link:active { transform:scale(.98); }
.clip-card-img { width:100%; aspect-ratio:16/9; background:#f1f5f9; }
.clip-card-img img { width:100%; height:100%; object-fit:cover; display:block; }
.clip-card-body { padding:12px 14px 14px; }
.clip-card-body h4 { margin:0 0 4px; font-size:14px; font-weight:800; color:var(--pg-text); }
.clip-card-body p { margin:0; font-size:12px; color:var(--pg-text-sub); line-height:1.5; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
/* 이용내역 필터(검색 + 기간) */
.usage-filter { display:flex; flex-direction:column; gap:8px; margin:2px 0 12px; }
.usage-search { display:flex; align-items:center; gap:8px; background:#fff; border:1.5px solid #e7eaf6; border-radius:12px; padding:11px 13px; }
.usage-search i { color:#9aa5b6; font-size:14px; }
.usage-search input { border:0; flex:1; min-width:0; font:inherit; font-size:14px; outline:none; background:none; }
.usage-daterow { display:flex; align-items:center; gap:6px; }
.usage-daterow input[type=date] { flex:1; min-width:0; border:1.5px solid #e7eaf6; border-radius:10px; padding:9px 10px; font:inherit; font-size:13px; color:var(--pg-text); background:#fff; }
.usage-dash { color:#9aa5b6; }
.usage-reset { flex:0 0 auto; border:1.5px solid #e7eaf6; background:#fff; color:var(--pg-text-sub); border-radius:10px; padding:9px 12px; font:inherit; font-size:12.5px; font-weight:700; cursor:pointer; }
.usage-count { font-size:12px; color:var(--pg-text-sub); font-weight:700; margin:0 2px 8px; }
/* 이용내역 상태 필터 칩(가로 스크롤) */
.usage-status-chips { display:flex; gap:6px; overflow-x:auto; -webkit-overflow-scrolling:touch; padding:2px 0 2px; scrollbar-width:none; }
.usage-status-chips::-webkit-scrollbar { display:none; }
.ust-chip { flex:0 0 auto; border:1.5px solid #e7eaf6; background:#fff; color:var(--pg-text-sub); border-radius:999px; padding:7px 13px; font:inherit; font-size:12.5px; font-weight:700; cursor:pointer; white-space:nowrap; }
.ust-chip.active { background:var(--pg-accent); border-color:var(--pg-accent); color:#fff; }

/* 유류 세금계산서 저장 카드 */
.fti-card { border:1px solid #eef0f6; border-radius:12px; padding:12px 14px; margin-bottom:10px; background:#fbfcff; }
.fti-card-title { font-size:12.5px; font-weight:800; color:var(--pg-accent); margin-bottom:8px; }
.fti-card label { display:block; font-size:12.5px; font-weight:700; color:var(--pg-text-sub); margin-bottom:8px; }
.fti-card input { width:100%; margin-top:5px; border:1.5px solid #e7eaf6; background:#fff; border-radius:10px; padding:10px 11px; font:inherit; box-sizing:border-box; }

/* 마일리지 상세 */
.mileage-summary { display:flex; align-items:stretch; gap:0; background:#fff; border-radius:var(--pg-radius-lg); padding:16px 8px; box-shadow:var(--pg-shadow-soft); margin-bottom:16px; }
.mileage-summary-item { flex:1; display:flex; flex-direction:column; align-items:center; gap:6px; text-align:center; padding:2px 4px; }
.mileage-summary-sep { width:1px; background:#eef0f6; margin:4px 0; }
.ms-label { font-size:11.5px; color:var(--pg-text-sub); font-weight:600; }
.ms-value { font-size:16px; font-weight:800; color:var(--pg-text); letter-spacing:-.3px; }
.ms-value.earn { color:var(--pg-accent); }
.ms-value.use { color:#E5484D; }
.ms-value.current { color:var(--pg-text); }
.mileage-controls { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; }
.mileage-controls .pill-tabs { margin:0; flex:0 0 auto; }
.mileage-month-select { flex:0 0 auto; border:1px solid #e5e8eb; background:#fff; border-radius:999px; padding:7px 12px; font-size:12.5px; font-weight:700; color:var(--pg-text); cursor:pointer; -webkit-appearance:none; appearance:none; background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%2394a3b8' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>"); background-repeat:no-repeat; background-position:right 11px center; padding-right:28px; }
.mileage-list { display:flex; flex-direction:column; }
.mileage-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 4px; border-bottom:1px solid #f1f3f8; }
.mileage-row:last-child { border-bottom:0; }
.mileage-row-reason { font-size:13.5px; font-weight:700; color:var(--pg-text); line-height:1.4; }
.mileage-row-date { font-size:11.5px; color:var(--pg-text-sub); margin-top:3px; }
.mileage-row-amount { font-size:15px; font-weight:800; flex-shrink:0; letter-spacing:-.3px; }
.mileage-row-amount.earn { color:var(--pg-accent); }
.mileage-row-amount.use { color:#E5484D; }
.usage-card { display:block; width:100%; text-align:left; border:0; -webkit-appearance:none; appearance:none; font:inherit; border-radius:var(--pg-radius-md); padding:13px 14px; background:#fff; box-shadow:var(--pg-shadow-soft); cursor:pointer; transition:transform .1s, box-shadow .1s; }
.usage-card:active { transform:scale(.985); box-shadow:var(--pg-shadow-card); }
.usage-card-top { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:6px; }
.usage-card-date { font-size:11.5px; color:#94a3b8; font-weight:600; }
.usage-card-status { font-size:11px; font-weight:800; padding:2px 9px; border-radius:999px; background:#eef2ff; color:var(--pg-accent-dark); white-space:nowrap; }
.usage-card-route { font-size:13.5px; color:#1e293b; font-weight:700; line-height:1.45; overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.usage-card-meta { margin-top:6px; font-size:12px; color:#748091; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.usage-card-more { color:var(--pg-accent); font-weight:700; white-space:nowrap; }

/* 회원 접수 상세 모달 */
.rd-status { display:inline-block; color:#fff; font-size:12.5px; font-weight:800; padding:5px 14px; border-radius:999px; margin-bottom:14px; }
.rd-fields { display:grid; gap:10px; }
.rd-row { display:flex; gap:12px; align-items:flex-start; }
.rd-label { flex:0 0 78px; font-size:12.5px; color:#94a3b8; font-weight:700; }
.rd-value { flex:1; min-width:0; font-size:13px; color:var(--pg-text); font-weight:600; line-height:1.5; word-break:break-word; }
.rd-driver { margin-top:16px; padding-top:14px; border-top:1px solid #f0f1f8; display:grid; gap:10px; }
.rd-section-title { font-size:12px; font-weight:800; color:#536079; }
.rd-note { font-size:12.5px; color:#94a3b8; }
/* 진행 단계 flow(접수 상세 상단) */
.flow-wrap { display:flex; align-items:flex-start; justify-content:space-between; margin:14px 2px 16px; }
.flow-node { display:flex; flex-direction:column; align-items:center; gap:5px; flex:0 0 auto; width:54px; }
.flow-ico { width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:15px; background:#eef1f6; color:#9aa5b6; border:2px solid #eef1f6; transition:.2s; }
.flow-lbl { font-size:11px; font-weight:700; color:#9aa5b6; text-align:center; line-height:1.2; }
.flow-node.done .flow-ico { background:#E7F7F0; color:#16A36A; border-color:#bfe9d5; }
.flow-node.done .flow-lbl { color:#16A36A; }
.flow-node.cur .flow-ico { background:#2864FF; color:#fff; border-color:#2864FF; box-shadow:0 4px 10px rgba(40,100,255,.28); }
.flow-node.cur .flow-lbl { color:#2864FF; font-weight:800; }
.flow-line { flex:1 1 auto; height:3px; background:#e6eaf1; margin-top:18px; border-radius:2px; min-width:6px; }
.flow-line.on { background:#8fd3b6; }
.flow-cancelled { display:flex; align-items:center; gap:8px; justify-content:center; background:#fff2f2; border:1px solid #f3c9c9; color:#C0392B; border-radius:10px; padding:12px; font-weight:700; font-size:13px; margin:12px 2px 16px; }
/* 인라인 요금 추가 스테퍼(접수 상세) */
.revise-inline { display:flex; align-items:stretch; gap:10px; margin:2px 0; }
.rv-step { flex:0 0 auto; width:54px; border:1px solid #cfd8e3; border-radius:12px; background:#f5f7fa; color:#17202D; font-size:16px; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.rv-step:active { background:#e9edf3; }
.rv-step:disabled { opacity:.4; cursor:not-allowed; }
.rv-amt-box { flex:1 1 auto; border:1px solid #dbe2ee; border-radius:12px; background:#fff; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:9px; }
.rv-amt { font-size:21px; font-weight:800; color:#17202D; line-height:1.1; }
.rv-won { font-size:13px; font-weight:700; margin-left:2px; }
.rv-sub { font-size:11px; color:#8a94a6; margin-top:3px; }
.revise-actions { display:flex; gap:8px; margin-top:8px; }
.rv-reset { flex:0 0 auto; background:#fff; border:1px solid #cfd8e3; border-radius:10px; padding:11px 14px; font-weight:700; color:#48607a; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:6px; white-space:nowrap; }
.rv-reset:disabled { opacity:.4; cursor:not-allowed; }
.rv-apply { flex:1 1 auto; background:#2864FF; border:1px solid #2864FF; border-radius:10px; padding:11px; font-weight:800; color:#fff; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:6px; }
.rv-apply:disabled { opacity:.45; cursor:not-allowed; }
/* 사고 처리 진행 안내(접수 상세 내 별도 섹션) */
.acc-detail-btn{margin-top:6px;width:100%;border:1px solid #F3C7C7;background:#fff;color:#D3453B;font-weight:800;font-size:13px;border-radius:10px;padding:11px;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:7px}
.acc-detail-btn:active{transform:scale(.99)}
.acc-detail-ov{position:fixed;inset:0;background:rgba(15,23,42,.55);z-index:5000;display:flex;align-items:center;justify-content:center;padding:18px}
.acc-detail-modal{background:#fff;border-radius:16px;max-width:460px;width:100%;max-height:88vh;display:flex;flex-direction:column;overflow:hidden}
.acc-detail-head{display:flex;justify-content:space-between;align-items:center;padding:15px 16px;border-bottom:1px solid #f0e3e3;flex:none}
.acc-detail-head b{font-size:15px;color:#17233d}
.acc-detail-x{border:none;background:#f2f4f8;border-radius:8px;padding:7px 13px;font-size:13px;font-weight:700;color:#5b6b86;cursor:pointer}
.acc-detail-body{padding:14px 16px 18px;overflow-y:auto;display:grid;gap:8px}
.acc-detail-status{align-self:flex-start;color:#fff;font-size:12px;font-weight:800;border-radius:20px;padding:4px 12px}
.rd-accident { margin-top:16px; border:1px solid #F3C7C7; background:#FFF8F8; border-radius:14px; padding:14px; display:grid; gap:8px; }
.rd-accident-head { display:flex; justify-content:space-between; align-items:center; font-size:14px; font-weight:800; color:#D3453B; }
.rd-accident-head i { margin-right:5px; }
.rd-accident-status { color:#fff; font-size:11.5px; font-weight:800; border-radius:999px; padding:4px 11px; }
.acc-report-note { white-space:pre-line; background:#fff; border:1px solid #f3d7d7; border-radius:9px; padding:10px 11px; font-size:13px; color:#5a4b4b; }
.acc-prog { display:flex; flex-wrap:wrap; gap:6px; margin-top:2px; }
.acc-prog-item { display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:700; color:#9aa5b6; background:#fff; border:1px solid #ececf2; border-radius:999px; padding:5px 10px; }
.acc-prog-item.on { color:#16A36A; border-color:#bfe6cd; background:#f2fbf5; }
.acc-sub-head { font-size:12px; font-weight:800; color:#536079; margin-top:6px; }
.acc-timeline { display:grid; gap:0; }
.acc-tl-item { display:flex; gap:9px; }
.acc-tl-dot { flex:0 0 auto; width:9px; height:9px; border-radius:50%; background:#E5484D; margin:5px 0 0; position:relative; }
.acc-tl-item:not(:last-child) .acc-tl-dot::after { content:''; position:absolute; left:50%; top:9px; transform:translateX(-50%); width:2px; height:calc(100% + 8px); background:#f0d3d3; }
.acc-tl-body { padding-bottom:10px; }
.acc-tl-date { font-size:11px; color:#b0879a; font-weight:700; }
.acc-tl-text { font-size:13px; color:#3f3336; white-space:pre-line; margin-top:1px; }
.rd-photo { margin-bottom:14px; }
.rd-photo-label { font-size:12.5px; font-weight:700; color:var(--pg-text); margin-bottom:6px; }
.rd-photo img { width:100%; border-radius:12px; display:block; }

.biz-footer { margin-top:8px; padding:22px 4px 4px; border-top:1px solid #f0f1f8; }
.biz-footer-logo { height:18px; width:auto; margin-bottom:14px; }
.biz-footer-links { display:flex; align-items:center; gap:8px; margin-bottom:16px; }
.biz-footer-links button { border:0; background:none; padding:0; cursor:pointer; font-size:12px; font-weight:700; color:var(--pg-text-sub); }
.biz-footer-links button:active { color:var(--pg-accent); }
.biz-footer-sep { color:#cbd5e1; font-size:11px; }
/* 화살표를 텍스트 바로 옆에 붙여, 오른쪽 아래 '빠른접수' 플로팅 버튼과 겹치지 않게 한다(안드로이드·iOS 공통). */
.biz-footer-toggle { width:auto; display:inline-flex; align-items:center; justify-content:flex-start; gap:6px; border:0; background:none; padding:0; cursor:pointer; font-size:12px; font-weight:700; color:#748091; }
.biz-footer-toggle .faq-chevron { font-size:11px; }
.biz-footer-detail { max-height:0; overflow:hidden; transition:max-height .2s ease; font-size:11px; color:#94a3b8; line-height:1.8; }
.biz-footer-accordion.open .biz-footer-detail { max-height:160px; margin-top:10px; }
.biz-footer-accordion.open .faq-chevron { transform:rotate(180deg); }

/* PICKGO가 궁금해요 - 홈 화면 FAQ 아코디언 */
.faq-list { display:flex; flex-direction:column; }
.faq-item { border-bottom:1px solid #f0f1f8; }
.faq-item:last-child { border-bottom:0; }
.faq-question { width:100%; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:14px 2px; border:0; background:none; text-align:left; cursor:pointer; }
.faq-question-text { display:flex; align-items:center; gap:9px; font-size:13.5px; font-weight:700; color:var(--pg-text); }
.faq-q-icon { display:inline-flex; align-items:center; justify-content:center; width:18px; height:18px; border-radius:50%; background:#eef2ff; color:var(--pg-accent); font-size:11px; font-weight:800; flex-shrink:0; }
.faq-chevron { color:#94a3b8; font-size:12px; transition:transform .15s; flex-shrink:0; }
.faq-item.open .faq-chevron { transform:rotate(180deg); }
.faq-answer { max-height:0; overflow:hidden; transition:max-height .25s ease; font-size:12.5px; color:var(--pg-text-sub); line-height:1.6; padding:0 2px; }
.faq-item.open .faq-answer { max-height:1000px; padding-bottom:14px; }
.faq-viewall-btn { width:100%; margin-top:12px; padding:13px; border:1px solid var(--pg-accent); border-radius:var(--pg-radius-lg,12px); background:#eef2ff; color:var(--pg-accent); font-size:13.5px; font-weight:800; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:6px; }
.faq-viewall-btn i { font-size:11px; }
.faq-cat-chips { display:flex; flex-wrap:nowrap; gap:8px; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; padding-bottom:2px; margin:0 -2px; }
.faq-cat-chips::-webkit-scrollbar { display:none; }
.faq-cat-chip { flex:0 0 auto; }
.faq-cat-chip { padding:8px 14px; border-radius:999px; border:1px solid #dce3f0; background:#f4f6fb; color:#51607a; font-size:12.5px; font-weight:700; cursor:pointer; white-space:nowrap; }
.faq-cat-chip.active { background:var(--pg-accent); border-color:var(--pg-accent); color:#fff; }

.mine-card { border:0; border-radius:var(--pg-radius-lg); padding:18px; background:#fff; box-shadow:var(--pg-shadow-soft); }
.mine-card-name { font-size:16px; font-weight:800; color:var(--pg-text); }
.mine-card-type { display:inline-block; margin-left:6px; font-size:11px; font-weight:700; color:var(--pg-accent-dark); background:#eef2ff; border-radius:999px; padding:2px 8px; vertical-align:middle; }
.mine-card-row { display:flex; justify-content:space-between; font-size:12.5px; color:#748091; margin-top:10px; padding-top:10px; border-top:1px dashed #eef0f9; }
.mine-mileage { font-size:22px; font-weight:800; color:#b45309; }
.mine-actions { display:grid; gap:9px; }

.mine-name-row { display:flex; align-items:center; gap:8px; padding:2px 4px; }
.mine-name-row h1 { margin:0; font-size:19px; font-weight:800; color:var(--pg-text); }
.mine-name-edit { border:0; background:none; color:#94a3b8; font-size:14px; cursor:pointer; padding:4px; }

.mine-points-card { border-radius:var(--pg-radius-lg); padding:18px; background:#fff; box-shadow:var(--pg-shadow-soft); }
.mine-points-label { font-size:12.5px; color:var(--pg-text-sub); font-weight:600; }
.mine-points-row { display:flex; align-items:center; justify-content:space-between; margin-top:8px; }
.mine-points-value { font-size:22px; font-weight:800; color:var(--pg-text); display:flex; align-items:center; gap:8px; }
.mine-points-badge { display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; border-radius:50%; background:var(--pg-accent); color:#fff; font-size:12px; font-weight:800; }
.mine-points-btn { border:0; background:#f2f4f6; color:var(--pg-text); font-size:12.5px; font-weight:700; border-radius:999px; padding:8px 16px; cursor:pointer; }

/* 캐시(선불 충전) 카드 - 마이페이지 */
.mine-cash-card { border-radius:var(--pg-radius-lg); padding:18px; background:linear-gradient(135deg,#eef3ff,#f7faff); border:1px solid #e0e8ff; margin-top:12px; }
.mine-cash-label { font-size:12.5px; color:#3b5bdb; font-weight:700; display:flex; align-items:center; gap:6px; }
.mine-cash-sub { font-size:11px; font-weight:600; color:#7a8aa8; background:#fff; border-radius:999px; padding:2px 8px; }
.mine-cash-value { font-size:22px; font-weight:800; color:var(--pg-text); }
.mine-cash-btn { border:0; background:var(--pg-accent); color:#fff; font-size:12.5px; font-weight:700; border-radius:999px; padding:8px 16px; cursor:pointer; }
/* 캐시 충전 안내 페이지 */
.cash-balance-box { border-radius:var(--pg-radius-lg); padding:18px; background:linear-gradient(135deg,#2864FF,#1f50d6); color:#fff; box-shadow:var(--pg-shadow-soft); }
.cash-balance-label { font-size:12.5px; opacity:.9; font-weight:600; }
.cash-balance-value { font-size:28px; font-weight:900; margin-top:4px; }
.cash-guide { display:flex; flex-direction:column; gap:10px; margin:16px 0; }
.cash-guide-item { display:flex; gap:12px; align-items:flex-start; background:#fff; border:1px solid #eef1f5; border-radius:12px; padding:13px 14px; }
.cash-guide-no { flex:none; width:26px; height:26px; border-radius:50%; background:#e7edff; color:#2864FF; font-weight:800; font-size:13px; display:flex; align-items:center; justify-content:center; }
.cash-guide-item b { font-size:14px; color:var(--pg-text); }
.cash-guide-item p { margin:3px 0 0; font-size:12.5px; color:var(--pg-text-sub); line-height:1.6; }
.home-header-cash i { color:#bfe3ff; }
/* 캐시 충전 요청/내역 페이지 */
.cash-loading { text-align:center; color:var(--pg-text-sub); font-size:13px; padding:26px 0; }
/* 약관 재동의 오버레이(업데이트 후 최초 로그인) */
.reconsent-ov{position:fixed;inset:0;background:rgba(15,23,42,.55);z-index:140;display:flex;align-items:center;justify-content:center;padding:22px}
.reconsent-card{background:#fff;border-radius:18px;max-width:400px;width:100%;padding:24px 22px;text-align:center;box-shadow:0 24px 60px rgba(15,23,42,.3)}
.reconsent-ic{width:54px;height:54px;margin:0 auto 14px;border-radius:16px;background:#EEF3FF;color:#2864FF;display:flex;align-items:center;justify-content:center;font-size:23px}
.reconsent-card h3{margin:0 0 8px;font-size:18px;color:#17233d}
.reconsent-card p{margin:0 0 16px;font-size:13.5px;line-height:1.6;color:#5b6b86}
.reconsent-links{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}
.reconsent-links button{width:100%;border:1px solid #d6e2ff;background:#f5f8ff;color:#2864FF;font-weight:700;font-size:13px;border-radius:10px;padding:11px;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:7px}
.reconsent-check{display:flex;align-items:flex-start;gap:8px;text-align:left;font-size:13px;color:#3a4560;line-height:1.5;margin-bottom:14px;cursor:pointer}
.reconsent-check input{margin-top:2px;flex:none;width:18px;height:18px}
.reconsent-check .rc-text{flex:1;min-width:0;word-break:keep-all}
.reconsent-check .rc-req{color:#e5484d;font-weight:600;white-space:nowrap}
.reconsent-submit{width:100%;border:none;background:#2864FF;color:#fff;font-weight:800;font-size:15px;border-radius:12px;padding:14px;cursor:pointer}
.reconsent-submit:disabled{opacity:.6}
.reconsent-msg{color:#e5484d;font-size:12.5px;margin-top:10px;min-height:16px}
.cash-tabs { display:flex; gap:6px; margin-top:14px; background:#eef2f8; border-radius:12px; padding:4px; }
.cash-tab { flex:1; border:none; background:transparent; color:#6b7890; font-weight:800; font-size:12.5px; border-radius:9px; padding:9px 4px; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:5px; white-space:nowrap; transition:background .15s,color .15s; }
.cash-tab i { font-size:12px; }
.cash-tab.on { background:#fff; color:var(--pg-accent); box-shadow:0 1px 4px rgba(20,28,46,.1); }
.cash-acct-box { background:#f4f8ff; border:1px solid #d9e5fb; border-radius:12px; padding:12px 13px; margin:0 0 14px; }
.cash-acct-head { font-size:12px; font-weight:800; color:#2864FF; margin-bottom:7px; display:flex; align-items:center; gap:6px; }
.cash-acct-row { display:flex; align-items:center; gap:10px; }
.cash-acct-info { flex:1; min-width:0; font-size:14.5px; font-weight:800; color:#1f2c44; word-break:break-all; }
.cash-acct-no { letter-spacing:.2px; }
.cash-acct-holder { font-size:11.5px; font-weight:600; color:#8792a6; margin-top:2px; }
.cash-acct-copy { flex:0 0 auto; border:1px solid #2864FF; background:#2864FF; color:#fff; font-weight:800; font-size:12px; border-radius:9px; padding:8px 12px; cursor:pointer; display:flex; align-items:center; gap:5px; }
.cash-acct-copy:active { transform:scale(.97); }
.cash-card { background:#fff; border:1px solid #eef1f5; border-radius:14px; padding:16px; margin-top:14px; box-shadow:var(--pg-shadow-soft); }
.cash-card-t { font-size:14.5px; font-weight:800; color:var(--pg-text); margin-bottom:10px; }
.cash-note { font-size:12.2px; color:var(--pg-text-sub); line-height:1.6; margin:0 0 12px; }
.cash-chips { display:flex; gap:8px; margin-bottom:10px; flex-wrap:wrap; }
.cash-chip { border:1px solid #d7e0f0; background:#f6f9ff; color:#2864FF; font-weight:800; font-size:12.5px; border-radius:999px; padding:8px 13px; cursor:pointer; }
.cash-chip:active { transform:scale(.97); }
.cash-lbl { display:block; font-size:12px; font-weight:700; color:var(--pg-text-sub); margin:8px 0 5px; }
.cash-input { width:100%; box-sizing:border-box; padding:12px 13px; border:1px solid #dce3ee; border-radius:10px; font-size:15px; font-family:inherit; }
.cash-calc { font-size:12.3px; color:var(--pg-text-sub); margin:8px 2px 2px; line-height:1.5; min-height:16px; }
.cash-calc b { color:#2864FF; }
.cash-warn { color:#e5484d; font-weight:700; }
.cash-submit { width:100%; border:0; border-radius:12px; padding:14px; font-size:15px; font-weight:800; color:#fff; background:#20CDB1; cursor:pointer; margin-top:14px; }
.cash-submit:disabled { background:#DCE2EA; color:#A8B1BE; }
.cash-msg { font-size:12.2px; text-align:center; color:var(--pg-text-sub); margin-top:9px; }
.cash-msg.err { color:#e5484d; }
.cash-req-list, .cash-tx-list { display:flex; flex-direction:column; }
.cash-req-row, .cash-tx-row { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:11px 0; border-top:1px solid #f0f2f6; }
.cash-req-row:first-child, .cash-tx-row:first-child { border-top:0; }
.cash-req-row b, .cash-tx-row b { font-size:14px; }
.cash-vat { font-size:11.5px; color:var(--pg-text-sub); }
.cash-req-date { font-size:11px; margin-top:2px; }
.cash-st { flex:none; font-size:11.5px; font-weight:800; border-radius:999px; padding:5px 11px; }
.st-wait { background:#FFF4E0; color:#B7791F; }
.st-ok { background:#E4F8F1; color:#12866b; }
.st-no { background:#F1F3F6; color:#8792a6; }
.cash-tx-amt { text-align:right; font-weight:800; font-size:14px; }
.cash-tx-amt.pos { color:#12866b; } .cash-tx-amt.neg { color:#e5484d; }
.cash-empty { text-align:center; color:var(--pg-text-sub); font-size:12.5px; padding:16px 0; }

.mine-section-divider { height:8px; margin:16px -18px; background:#f2f4f6; }

/* 토글 스위치 (알림 설정) */
.settings-row { display:flex; align-items:center; justify-content:space-between; padding:16px 2px; border-bottom:1px solid #f0f1f8; }
.settings-row:last-child { border-bottom:0; }
.settings-row-label { font-size:14px; font-weight:700; color:var(--pg-text); }
.settings-row-sub { font-size:12px; color:var(--pg-text-sub); margin-top:3px; }
.settings-group-label { font-size:11.5px; font-weight:800; letter-spacing:.02em; color:#9aa4b2; margin:0 2px; }
.settings-opt-tag { font-size:10.5px; font-weight:800; color:#697586; background:#eceff3; padding:2px 6px; border-radius:6px; margin-left:4px; vertical-align:middle; }
.settings-row-sub .terms-link { font-size:12px; }
.toggle-switch { position:relative; display:inline-block; width:44px; height:26px; flex-shrink:0; }
.toggle-switch input { opacity:0; width:0; height:0; }
.toggle-switch .toggle-track { position:absolute; inset:0; background:#e2e8f0; border-radius:999px; cursor:pointer; transition:background .15s; }
.toggle-switch .toggle-track::before { content:''; position:absolute; width:20px; height:20px; left:3px; top:3px; background:#fff; border-radius:50%; transition:transform .15s; box-shadow:0 1px 3px rgba(0,0,0,.2); }
.toggle-switch input:checked + .toggle-track { background:var(--pg-accent); }
.toggle-switch input:checked + .toggle-track::before { transform:translateX(18px); }

/* 친구초대 */
.invite-code-card { text-align:center; border-radius:var(--pg-radius-lg); padding:26px 18px; background:#f7f9ff; margin-top:18px; }
.invite-code-label { font-size:12.5px; color:var(--pg-text-sub); font-weight:600; }
.invite-code-value { margin-top:10px; font-size:26px; font-weight:800; letter-spacing:2px; color:var(--pg-text); }

/* 하단 플로팅 내비게이션 + 빠른접수 버튼 */
/* 하단 내비는 뷰포트 기준으로 고정해, 어떤 페이지(홈·빠른접수·채팅)든 스크롤·컨테이너와 무관하게 항상 같은 자리에 둔다.
   넓은 화면(폰 프레임 카드)에서는 아래 @media에서 카드 기준(absolute)으로 되돌린다. */
.bottom-nav-wrap { position:fixed; left:0; right:0; bottom:0; display:flex; flex-direction:column; align-items:center; gap:10px; padding:0 16px env(safe-area-inset-bottom); z-index:120; pointer-events:none; }
/* 홈 화면에 추가(standalone)로 실행하면 화면이 edge-to-edge라 안드로이드 3버튼 내비바 뒤로 그려지는데,
   3버튼 내비는 env(safe-area-inset-bottom)가 0으로 보고되는 경우가 많아 하단 내비가 시스템 바에 가려진다.
   standalone일 때만 최소 여백을 확보해 하단 내비(라벨 포함)가 시스템 바 위로 올라오게 한다. */
@media (display-mode: standalone) {
  .bottom-nav-wrap { padding-bottom: max(env(safe-area-inset-bottom, 0px), 22px); }
  #quick-body.app-shell-body { padding-bottom: 216px; }
}
/* 넓은 화면(폰 프레임 카드)에서는 뷰포트가 아니라 카드 하단에 붙도록 되돌린다. (기본 fixed를 덮어써야 하므로 기본 규칙 뒤에 둔다) */
@media (min-width: 460px) {
  /* 폰 프레임 카드에서는 카드 하단에 붙이되, 바닥에 너무 붙지 않게 여유를 둔다. */
  .bottom-nav-wrap { position: absolute; bottom: 24px; }
  /* 카드(430px)에 맞춰 내비 pill 폭. */
  .bottom-nav { max-width: 398px; }
}
.bottom-nav-wrap > * { pointer-events:auto; }
.fab-quick {
  align-self:flex-end; margin-right:6px; border:0; border-radius:999px; padding:12px 18px; font-size:13px; font-weight:800;
  color:#fff; background:var(--pg-accent); box-shadow:var(--pg-shadow-card);
  display:flex; align-items:center; gap:7px; cursor:pointer; transition:transform .12s;
}
.fab-quick:active { transform:scale(.96); }
.bottom-nav { width:100%; max-width:calc(var(--pg-app-width) - 32px); display:flex; background:#fff; border-radius:999px; box-shadow:0 16px 40px rgba(30,41,82,.18), 0 0 0 1px rgba(30,41,82,.04); padding:6px; }
/* flex:1 만으로는 라벨이 긴 칸(이용/알림)이 더 넓어져 간격이 어긋난다. min-width:0 + basis:0 으로 4칸을 완전 균등폭으로 맞춘다. */
.bottom-nav-item { flex:1 1 0; min-width:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; border:0; background:none; padding:9px 4px 8px; border-radius:999px; cursor:pointer; color:#94a3b8; }
.bottom-nav-item i { font-size:17px; }
.bottom-nav-item span { font-size:10.5px; font-weight:700; white-space:nowrap; max-width:100%; overflow:hidden; text-overflow:ellipsis; }
.bottom-nav-item.active { color:var(--pg-accent); }
.bottom-nav-item.active i { transform:translateY(-1px); }

/* 접수 방식 선택 액션시트 */
.sheet-overlay { position:fixed; inset:0; background:rgba(15,23,42,.45); z-index:150; display:flex; align-items:flex-end; justify-content:center; }
.action-sheet { width:100%; max-width:var(--pg-app-width); background:#fff; border-radius:24px 24px 0 0; padding:10px 18px calc(22px + env(safe-area-inset-bottom)); box-shadow:0 -12px 40px rgba(15,23,42,.2); animation:pg-sheet-in .22s ease both; }
@keyframes pg-sheet-in { from { transform:translateY(24px); opacity:0; } to { transform:translateY(0); opacity:1; } }
/* 손잡이 자체는 얇지만, 실제 드래그 시작 영역(.action-sheet-drag)은 손가락으로 누르기 넉넉한 실제 엘리먼트로 둔다.
   가짜 확장 히트박스(::before 등)는 일부 모바일 브라우저에서 터치 인식이 불안정해 실제 크기를 키웠다. */
/* 시트 상단(손잡이 + 제목)을 통째로 드래그 영역으로 쓴다. 손잡이 막대만 잡으라고 하면 실기기에서
   손가락이 그 좁은 곳을 정확히 못 잡아 "안 내려간다"가 되므로, 제목까지 포함한 넉넉한 상단 띠를
   잡을 수 있게 한다. */
.action-sheet-drag {
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px;
  width:100%; padding:10px 0 16px; margin-bottom:2px; touch-action:none; cursor:grab;
  -webkit-user-select:none; user-select:none;
}
.action-sheet-drag:active { cursor:grabbing; }
.action-sheet-handle { width:44px; height:5px; background:#dfe3ec; border-radius:99px; pointer-events:none; transition:background .12s; }
.action-sheet-drag:active .action-sheet-handle { background:#b9c0cd; }
.action-sheet h3 { margin:0 0 14px; font-size:15.5px; font-weight:800; color:#0f172a; text-align:center; }
.action-sheet-drag h3 { margin:0; pointer-events:none; }
.action-sheet-option { width:100%; display:flex; align-items:center; gap:12px; border:1.5px solid #eef0f9; background:#fff; border-radius:var(--pg-radius-md); padding:14px 16px; margin-bottom:10px; cursor:pointer; text-align:left; transition:border-color .12s,background .12s; }
.action-sheet-option:hover { border-color:var(--pg-accent); background:#f7f9ff; }
.action-sheet-option i { font-size:18px; color:var(--pg-accent); width:22px; text-align:center; flex-shrink:0; }
.action-sheet-option .ash-title { font-size:14px; font-weight:800; color:#1e293b; }
.action-sheet-option .ash-sub { font-size:11.5px; color:#94a3b8; margin-top:2px; }
.action-sheet-cancel { width:100%; border:1.5px solid #e7eaf6; background:#fff; color:#5b6678; font-size:14px; font-weight:800; padding:13px; border-radius:14px; cursor:pointer; margin-top:10px; transition:background .12s,border-color .12s; }
.action-sheet-cancel:active { background:#f4f6fd; }
.action-sheet-cancel:hover { border-color:#d6dcec; }

/* 최초 접속 시 뜨는 "홈 화면에 추가" 안내 팝업 */
.install-prompt-body { display:flex; align-items:center; gap:14px; padding:2px 2px 18px; }
.install-prompt-icon { width:52px; height:52px; border-radius:13px; flex-shrink:0; box-shadow:var(--pg-shadow-soft); }
.install-prompt-desc { margin:0; font-size:13px; line-height:1.55; color:var(--pg-text-sub); }
.action-sheet-body { max-height:60vh; overflow-y:auto; overscroll-behavior-y:contain; }

/* 이용기록/알림 - 둥근 필 탭 */
.pill-tabs { display:flex; gap:8px; margin:2px 0 16px; flex-wrap:nowrap; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
.pill-tabs::-webkit-scrollbar { display:none; }
.pill-tabs .pill-tab { flex:0 0 auto; }
/* 이용/알림 탭에서는 좌우 스와이프로 탭을 넘기므로 세로 스크롤만 브라우저에 맡기고 가로 제스처는
   직접 처리한다. 카드 위가 아니라 화면 어디에서 시작해도 넘어가도록 스크롤 컨테이너에 건다. */
#quick-body.usage-swipe, #quick-body.terms-swipe { touch-action:pan-y; }
/* 목록이 짧아도 아래 빈 공간까지 같은 탭 화면으로 인식되도록 남는 높이를 채운다. */
#usage-swipe-area { flex:1; min-height:200px; }
/* 하단 내비(빠른접수 FAB+내비바)에 마지막 카드가 가리지 않도록 실제 스페이서로 여백 확보.
   #quick-body가 flex+overflow라 컨테이너 padding-bottom이 스크롤 끝에서 무시되는 문제 대응. */
.tab-bottom-space { height: calc(150px + env(safe-area-inset-bottom, 0px)); flex-shrink:0; pointer-events:none; }
.pill-tab { border:1.5px solid #e7eaf6; background:#fff; color:#748091; border-radius:999px; padding:8px 16px; font-size:12.5px; font-weight:700; cursor:pointer; position:relative; }
.pill-tab.active { background:var(--pg-text); border-color:var(--pg-text); color:#fff; }
.pill-tab .pill-dot { position:absolute; top:5px; right:8px; width:6px; height:6px; border-radius:50%; background:#E5484D; }

/* 알림 목록 - 게시글 형태, 읽음/안읽음 대비 */
.notify-list { display:flex; flex-direction:column; }
.notify-item { display:flex; gap:12px; padding:14px 2px; border-bottom:1px solid #f0f1f8; cursor:pointer; text-align:left; background:none; border-left:0; border-right:0; border-top:0; width:100%; }
.notify-item:last-child { border-bottom:0; }
.notify-icon { width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:14px; margin-top:1px; }
.notify-item.unread .notify-icon { background:#fff4d6; color:#F59E0B; }
.notify-item.read .notify-icon { background:#f2f4f6; color:#c2c8d0; }
.notify-title { font-size:13.5px; font-weight:800; color:var(--pg-text); }
.notify-item.read .notify-title { font-weight:600; color:var(--pg-text-sub); }
.notify-body { font-size:12.5px; color:var(--pg-text-sub); margin-top:3px; line-height:1.5; overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.notify-item.read .notify-body { color:#c2c8d0; }
.notify-date { font-size:11px; color:#c2c8d0; margin-top:7px; }
.notify-arrow { align-self:center; color:#cbd5e1; font-size:12px; flex-shrink:0; }
/* 공지/이용혜택 상세 모달 */
.notice-detail-title { font-size:15.5px; font-weight:800; color:var(--pg-text); line-height:1.4; }
.notice-detail-date { font-size:11.5px; color:#a2acbb; margin-top:5px; }
.notice-detail-body { font-size:13.5px; color:var(--pg-text); line-height:1.75; white-space:pre-line; margin-top:14px; padding-top:14px; border-top:1px solid #f0f1f8; }

/* 즐겨찾기 주소 */
.fav-item { display:flex; align-items:center; gap:10px; padding:12px 2px; border-bottom:1px solid #f0f1f8; }
.fav-item:last-child { border-bottom:0; }
.fav-item .fav-star { flex-shrink:0; font-size:16px; color:#e2e8f0; cursor:pointer; }
.fav-item .fav-star.main { color:#F59E0B; }
.fav-item .fav-info { flex:1; min-width:0; }
.fav-item .fav-label { font-size:13.5px; font-weight:800; color:var(--pg-text); display:flex; align-items:center; gap:6px; }
.fav-item .fav-main-badge { font-size:10px; font-weight:800; color:#b45309; background:#fff4d6; border-radius:999px; padding:1px 7px; }
.fav-item .fav-address { font-size:12px; color:var(--pg-text-sub); margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fav-item .fav-remove { flex-shrink:0; border:0; background:none; color:#cbd5e1; font-size:14px; cursor:pointer; padding:6px; }
.fav-empty { text-align:center; color:var(--pg-text-sub); font-size:12.5px; padding:26px 10px; background:#f8fafc; border-radius:var(--pg-radius-md); }
/* 즐겨찾기 주소 추가 폼(주소 입력 화면) */
.fav-add-card { margin-top:16px; background:#fff; border:1px solid #e5e8eb; border-radius:var(--pg-radius-md); padding:16px; box-shadow:var(--pg-shadow-soft); }
.fav-add-title { font-size:13.5px; font-weight:800; color:var(--pg-text); margin-bottom:14px; display:flex; align-items:center; gap:6px; }
.fav-field { margin-bottom:12px; }
.fav-field:last-of-type { margin-bottom:0; }
.fav-field-label { display:block; font-size:12.5px; font-weight:700; color:var(--pg-text); margin-bottom:6px; }
.fav-field-opt { color:var(--pg-text-sub); font-weight:500; }
.fav-input { width:100%; border:1px solid #DCE2EA; border-radius:var(--pg-radius-sm); padding:12px 14px; font-size:14px; color:var(--pg-text); background:#fff; }
.fav-input::placeholder { color:#b9c0cd; }
.fav-input:focus { outline:none; border-color:var(--pg-accent); box-shadow:0 0 0 3px rgba(40,100,255,.12); }
.fav-search-row { display:flex; gap:8px; }
.fav-search-row .fav-input { flex:1; min-width:0; }
.fav-search-btn { flex-shrink:0; border:0; border-radius:var(--pg-radius-sm); padding:0 18px; background:var(--pg-accent); color:#fff; font-weight:700; font-size:14px; white-space:nowrap; cursor:pointer; display:flex; align-items:center; gap:6px; }
.fav-search-btn:active { background:var(--pg-accent-dark); }

/* 마이 - 메뉴 리스트 */
.mine-menu-item { width:100%; display:flex; align-items:center; gap:10px; border:0; background:#fff; box-shadow:var(--pg-shadow-soft); border-radius:var(--pg-radius-sm); padding:13px 14px; cursor:pointer; text-align:left; color:var(--pg-text); font-size:13.5px; font-weight:700; }
.mine-menu-item i:first-child { color:var(--pg-text-sub); width:18px; text-align:center; }
.mine-menu-item .mine-menu-arrow { margin-left:auto; color:#cbd5e1; font-size:12px; }

/* 홈 CTA - 즐겨찾기 기반 빠른 견적 시트 */
.home-quick-option { width:100%; display:flex; align-items:center; gap:12px; border:1.5px solid #eef0f9; background:#fff; border-radius:var(--pg-radius-md); padding:14px 16px; margin-bottom:10px; cursor:pointer; text-align:left; }
.home-quick-option i { font-size:17px; color:var(--pg-accent); width:20px; text-align:center; flex-shrink:0; }
.home-quick-option .ash-title { font-size:14px; font-weight:800; color:var(--pg-text); }
.home-quick-option .ash-sub { font-size:11.5px; color:var(--pg-text-sub); margin-top:2px; }
.terms-content { font-size:12.5px; color:var(--pg-text-sub); line-height:1.8; white-space:pre-line; }
.terms-verline{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 4px 6px;flex-wrap:wrap}
.terms-ver{font-size:12px;font-weight:800;color:#2864FF;background:#EEF3FF;border-radius:20px;padding:4px 11px}
.terms-hist-btn{border:1px solid #d6dee9;background:#fff;color:#51607a;font-size:12px;font-weight:700;border-radius:8px;padding:6px 11px;cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.terms-hist-item{border:1px solid #e8edf5;border-radius:10px;margin-bottom:8px;overflow:hidden;background:#fff}
.terms-hist-item>summary{list-style:none;cursor:pointer;padding:12px 13px;font-weight:700;font-size:13.5px;color:#2b3550}
.terms-hist-item>summary::-webkit-details-marker{display:none}
.terms-hist-content{padding:0 13px 13px;font-size:12.5px;color:var(--pg-text-sub);line-height:1.8;white-space:pre-line}

/* 가입 동의 항목에서 '이용약관'·'개인정보 수집·이용'을 눌러 내용을 볼 수 있는 인라인 링크 */
.terms-link { display:inline; border:0; background:none; padding:0; margin:0; font:inherit; color:var(--pg-accent); font-weight:700; text-decoration:underline; text-underline-offset:2px; cursor:pointer; }
.terms-link:active { opacity:.6; }

/* 홈 화면 추가 안내 - 인앱/비Safari 환경 안내 박스 */
.install-notice { display:flex; gap:10px; align-items:flex-start; background:#f7f9ff; border:1px solid #e6ecff; border-radius:var(--pg-radius-md); padding:14px 15px; margin-bottom:16px; }
.install-notice i { color:var(--pg-accent); font-size:16px; margin-top:2px; flex-shrink:0; }
.install-notice p { margin:0; font-size:13px; line-height:1.6; color:var(--pg-text); }
.install-notice b { color:var(--pg-accent); }

/* iOS 홈 화면 추가 - 공유 버튼 위치를 화살표로 짚어주는 전체화면 안내 오버레이 */
.a2hs-overlay { position:fixed; inset:0; z-index:100000; background:rgba(9,14,26,.74); display:flex; flex-direction:column; justify-content:center; padding:20px; animation:a2hs-fade .2s ease both; }
@keyframes a2hs-fade { from { opacity:0; } to { opacity:1; } }
.a2hs-card { width:100%; max-width:360px; margin:0 auto; background:#fff; border-radius:20px; padding:22px 20px 18px; box-shadow:0 20px 60px rgba(0,0,0,.4); }
.a2hs-title { margin:0; font-size:16.5px; font-weight:800; color:var(--pg-text); text-align:center; }
.a2hs-sub { margin:6px 0 0; font-size:12.5px; color:var(--pg-text-sub); text-align:center; line-height:1.5; }
.a2hs-steps { display:grid; gap:13px; margin:17px 0 4px; }
.a2hs-step { display:flex; gap:11px; align-items:flex-start; }
.a2hs-step-num { flex-shrink:0; width:25px; height:25px; border-radius:50%; background:var(--pg-accent); color:#fff; font-size:13px; font-weight:800; display:flex; align-items:center; justify-content:center; }
.a2hs-step-txt { font-size:13.5px; line-height:1.5; color:var(--pg-text); padding-top:2px; }
.a2hs-step-txt b { color:var(--pg-accent); font-weight:800; }
.a2hs-done { width:100%; margin-top:16px; border:0; border-radius:var(--pg-radius-md); background:#f1f4fb; color:#48566b; font-size:13.5px; font-weight:800; padding:13px; cursor:pointer; }
/* 실제 공유 버튼이 있는 방향(아이폰=하단, 아이패드=상단)으로 튀는 화살표 */
.a2hs-arrow { position:absolute; left:0; right:0; display:flex; flex-direction:column; align-items:center; gap:7px; color:#fff; pointer-events:none; }
.a2hs-arrow.bottom { bottom:calc(8px + env(safe-area-inset-bottom)); animation:a2hs-bounce-down 1.1s ease-in-out infinite; }
.a2hs-arrow.top { top:calc(10px + env(safe-area-inset-top)); flex-direction:column-reverse; animation:a2hs-bounce-up 1.1s ease-in-out infinite; }
.a2hs-arrow i { font-size:30px; filter:drop-shadow(0 3px 8px rgba(0,0,0,.45)); }
.a2hs-arrow span { font-size:12px; font-weight:800; background:var(--pg-accent); padding:5px 12px; border-radius:99px; box-shadow:0 6px 18px rgba(40,100,255,.55); }
.a2hs-arrow span i { font-size:12px; filter:none; }
@keyframes a2hs-bounce-down { 0%,100% { transform:translateY(0); } 50% { transform:translateY(10px); } }
@keyframes a2hs-bounce-up { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-10px); } }

/* 마이페이지 채팅상담 배지 + 푸터 카카오 채널 버튼 */
.mine-menu-badge { margin-left:8px; font-size:10px; font-weight:800; color:#3d2b00; background:#FEE500; padding:2px 7px; border-radius:999px; }
.biz-footer-kakao { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; margin:0 0 16px; background:#FEE500; color:#3c1e1e; font-size:13px; font-weight:800; padding:12px 14px; border-radius:12px; text-decoration:none; }
.biz-footer-kakao:active { filter:brightness(.96); }
.biz-footer-kakao i { font-size:15px; }

/* 접수 하단 필수 동의 블록 - 제3자 제공 안내 접기 + 체크박스 2개. 체크박스가 여러 줄 라벨과
   깔끔하게 정렬되도록 고정 크기·상단 정렬로 위치를 잡는다. */
.consent-block { margin-top: 12px; background: #f8fafc; border: 1px solid #e5e8eb; border-radius: 10px; padding: 12px 14px; }
.consent-details { margin-bottom: 12px; }
.consent-details > summary { font-size: 12.5px; font-weight: 700; color: #17202d; cursor: pointer; list-style: none; }
.consent-details > summary::-webkit-details-marker { display: none; }
.consent-details > summary::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 10px; color: #94a3b8; margin-left: 6px; }
.consent-details[open] > summary::after { content: '\f077'; }
.consent-detail-text { font-size: 12px; color: #748091; line-height: 1.6; margin-top: 8px; }
.consent-check { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; line-height: 1.5; color: #17202d; cursor: pointer; padding: 3px 0; }
.consent-check + .consent-check { margin-top: 2px; }
.consent-check input[type="checkbox"] { width: 17px; height: 17px; margin: 1px 0 0; flex: 0 0 17px; accent-color: var(--pg-accent, #2864ff); cursor: pointer; }
.consent-check span { flex: 1 1 auto; min-width: 0; }

/* PC 전용 좌측 브랜딩 패널 - 중앙 폰 프레임 옆 빈 공간에 로고·슬로건 + '홈 화면에 추가' 안내를 보여준다.
   (앱 다운로드/QR 대신 홈 화면 추가로 전환) 좁은 화면에서는 숨긴다. */
#pc-aside { display: none; }
#pc-ad-aside { display: none; }
@media (min-width: 1040px) {
  #pc-aside {
    display: flex; flex-direction: column; align-items: flex-start;
    position: fixed; top: 50%; transform: translateY(-50%);
    /* 중앙 프레임(폭 430px, 반폭 215px)의 왼쪽 빈 공간에 배치. */
    right: calc(50% + 235px);
    width: min(340px, calc(50vw - 255px));
    z-index: 40;
  }
  .pc-aside-logo { height: 32px; width: auto; margin-bottom: 26px; }
  .pc-aside-title { font-size: 30px; font-weight: 800; line-height: 1.32; color: var(--pg-text); margin: 0 0 12px; letter-spacing: -.5px; }
  .pc-aside-sub { font-size: 14px; color: var(--pg-text-sub); line-height: 1.65; margin: 0 0 26px; }
  .pc-aside-qr { display: flex; align-items: center; gap: 16px; width: 100%; border: 1px solid #e6ebf5; background: #fff; border-radius: 16px; padding: 16px; box-shadow: var(--pg-shadow-soft); }
  .pc-aside-qr-img { width: 104px; height: 104px; flex-shrink: 0; border-radius: 10px; display: block; }
  .pc-aside-qr-text { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
  .pc-aside-qr-title { font-size: 15px; font-weight: 800; color: var(--pg-text); }
  .pc-aside-qr-desc { font-size: 12.5px; color: var(--pg-text-sub); line-height: 1.55; }
  /* PC 오른쪽 광고 영역(중앙 프레임 오른쪽 빈 공간). gate.js가 내용을 채운다. */
  #pc-ad-aside {
    display: flex; align-items: center; justify-content: center;
    position: fixed; top: 50%; transform: translateY(-50%);
    left: calc(50% + 235px);
    width: min(340px, calc(50vw - 255px));
    z-index: 40;
  }
}
#pc-ad-aside .ad-slot, #pc-ad-aside .ad-slot--empty { width: 300px; max-width: 100%; height: 250px; }
#pc-ad-aside .ad-slot img { max-width: 100%; max-height: 100%; border-radius: 12px; display: block; }

/* ===== 휴대폰 푸시 알림 설정 카드 (알림 페이지) ===== */
.push-card { background: var(--pg-surface, #fff); border: 1px solid var(--pg-border, #e7ebf0); border-radius: 12px; padding: 12px 14px; margin: 0 2px 14px; }
.push-card-row { display: flex; align-items: center; gap: 12px; }
.push-card-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.push-card-txt b { font-size: 14px; color: var(--pg-text, #17202D); }
.push-card-txt span { font-size: 12px; color: var(--pg-text-sub, #748091); line-height: 1.5; }
.push-toggle { flex-shrink: 0; width: 46px; height: 28px; border-radius: 999px; border: none; background: #cbd3de; position: relative; cursor: pointer; transition: background .18s ease; padding: 0; }
.push-toggle.on { background: #2864FF; }
.push-knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .18s ease; }
.push-toggle.on .push-knob { transform: translateX(18px); }

/* ===== 이용/알림·마이 탭: 상단 헤더가 없어 iOS 상태바에 본문이 가리는 문제 → 안전영역만큼 내림 ===== */
#quick-body.app-shell-body.no-top-header { padding-top: calc(14px + env(safe-area-inset-top)); }

/* ===== 마이페이지 로그아웃 버튼 ===== */
.logout-btn { width: 100%; padding: 13px; border: 1px solid var(--pg-border, #e7ebf0); border-radius: 12px; background: var(--pg-surface, #fff); color: #E5484D; font-size: 14px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px; }
.logout-btn:active { background: #fdf2f2; }

/* ===== 접수 상세 안의 탁송 사진(썸네일 그리드 + 원본 뷰어) ===== */
.rd-photos-box { margin-top: 6px; }
.rd-photo-group { margin-bottom: 12px; }
.rd-photo-label { font-size: 12px; color: var(--pg-text-sub, #748091); margin-bottom: 6px; font-weight: 600; }
.rd-photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rd-photo-thumb { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--pg-border, #e7ebf0); cursor: pointer; }
.photo-viewer { position: fixed; inset: 0; background: rgba(6,10,20,.92); z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.photo-viewer img { max-width: 100%; max-height: 100%; border-radius: 10px; }
.photo-viewer-close { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; font-size: 20px; cursor: pointer; }

/* ===== 접수 폼 미입력/오류 필드 강조(빨강) ===== */
.field-invalid, .request-dialog input.field-invalid, .request-dialog select.field-invalid, .request-dialog textarea.field-invalid { border-color:#E5484D !important; background:#fef2f2 !important; }

/* ===== PC에서 접수 폼(연락처 등 입력칸)을 더 넓게 ===== */
@media (min-width: 640px) {
  #quick-container:not(.gate-page) { max-width: 430px; }
  #chat-container { max-width: 430px; }
  /* 하단 시트도 카드 폭에 맞춘다. */
  .action-sheet { max-width: 430px; }
}
/* 동의 체크박스: 체크박스 옆에 문구가 오도록 가로 정렬.
   (.request-dialog label 의 flex-direction:column 이 상속되어 세로로 쌓이던 문제를 강제 가로로 교정) */
.consent-block { margin-top: 14px; }
.request-dialog .consent-check, .consent-block .consent-check { flex-direction: row !important; align-items: flex-start; }
.request-dialog .consent-check input[type="checkbox"], .consent-block .consent-check input[type="checkbox"] { width: 17px !important; flex: 0 0 17px; margin-top: 2px; }

/* ===== 스크롤 시 상단 고정(플로팅) 헤더 =====
   주의: 음수 margin-top + position:sticky 를 함께 쓰면 고정될 때 배경이 스크롤포트 최상단에서
   margin 만큼 내려가 그 틈으로 아래 콘텐츠가 비쳐 보인다(상단 끝 어긋남). 그래서 음수 세로마진은
   쓰지 않고, 좌우로만 꽉 채우며 위쪽 안전영역은 자체 padding 으로 덮는다. */
.home-search-sticky { position: sticky; top: 0; z-index: 30; background: #fff; margin: 0 -18px 8px; padding: 6px 18px 10px; }
.page-sticky-head { position: sticky; top: 0; z-index: 30; background: #fff; margin: 0 -18px 8px; padding: calc(12px + env(safe-area-inset-top)) 18px 6px; }
.page-sticky-head .pill-tabs { margin-bottom: 4px; }
.page-sticky-head .gate-header { padding-bottom: 6px !important; }
/* 고정 헤더를 쓰는 페이지는 본문 상단 패딩을 줄여(중복 여백 방지) 상단 끝을 페이지마다 일정하게 맞춘다. */
#quick-body:has(> .page-sticky-head) { padding-top: 0; }
#quick-body.app-shell-body.no-top-header:has(.page-sticky-head) { padding-top: 0; }

/* 기업 정산 내역 카드 */
.settlement-card{background:#fff;border:1px solid #ECEFF5;border-radius:14px;padding:16px;margin-bottom:10px;box-shadow:0 4px 14px rgba(20,30,55,.04)}
.settlement-card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.settlement-card-period{font-weight:700;color:#17202D;font-size:14px}
.settlement-card-count{font-size:12px;color:#748091;background:#F1F4FA;border-radius:999px;padding:3px 10px}
.settlement-card-total{font-size:22px;font-weight:800;color:#2864FF}
.settlement-card-vat{font-size:12px;font-weight:600;color:#8792a6}
.settlement-card-sub{font-size:12.5px;color:#5b6678;margin-top:4px}
.settlement-card-meta{font-size:11.5px;color:#95a0b4;margin-top:6px}
.settlement-card-acts{display:flex;gap:8px;margin-top:13px}
.settle-btn{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:11px;padding:12px;font-size:13px;font-weight:800;cursor:pointer;letter-spacing:-.2px}
.settle-btn i{font-size:13px}
.settle-dl{background:#EDF3FF;color:#2864FF}
.settle-kko{background:#FEE500;color:#3A2E00}
.settle-btn:active{transform:scale(.98)}

/* ===== 과태료·통행료 접수 전용 페이지 ===== */
.fine-chips{display:flex;gap:8px;overflow-x:auto;padding:2px 0 6px;scrollbar-width:none}
.fine-chips::-webkit-scrollbar{display:none}
.fine-chip{flex:0 0 auto;border:1px solid #E4E9F2;background:#fff;color:#5b6678;font-size:12.5px;font-weight:700;padding:8px 14px;border-radius:999px;cursor:pointer}
.fine-chip.on{background:var(--pg-accent);border-color:var(--pg-accent);color:#fff}
.fine-page-label{font-size:12.5px;font-weight:700;color:#8792a6;margin:14px 2px 8px}
.fine-hist-list{display:flex;flex-direction:column;gap:8px}
.fine-hist-item{background:#fff;border:1px solid #e8edf5;border-radius:12px;padding:11px 13px}
.fine-hist-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}
.fine-hist-type{font-weight:800;font-size:13.5px;color:#2b3550}
.fine-hist-status{font-weight:800;font-size:12.5px}
.fine-hist-route{font-size:13px;color:#3a4560;word-break:keep-all}
.fine-hist-meta{font-size:11.5px;color:#8792a6;margin-top:3px}
.fine-hist-note{font-size:12.5px;color:#5b6b86;margin-top:5px;background:#f7f9fc;border-radius:7px;padding:6px 8px;white-space:pre-line}
.fine-hist-done{font-size:12px;color:#12B76A;font-weight:800;margin-top:6px}
.fine-hist-reason{font-size:12.5px;color:#6b5a2e;margin-top:6px;background:#FFF8E9;border:1px solid #F0E0B6;border-radius:8px;padding:7px 9px;white-space:pre-line}
.fine-hist-reason b{color:#8a6d1f;margin-right:5px}
.fine-hist-photos{margin-top:8px;display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:700;color:var(--pg-accent);background:#EEF3FF;border:1px solid #D6E2FF;border-radius:8px;padding:6px 11px;cursor:pointer}
.fine-photo-ov{position:fixed;inset:0;background:rgba(15,25,43,.6);z-index:5000;display:flex;align-items:center;justify-content:center;padding:18px}
.fine-photo-modal{background:#fff;border-radius:14px;max-width:460px;width:100%;max-height:86vh;overflow:auto}
.fine-photo-head{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-bottom:1px solid #eef0f6;position:sticky;top:0;background:#fff}
.fine-photo-head b{font-size:15px}
.fine-photo-x{border:none;background:#f0f2f7;border-radius:8px;padding:6px 12px;font-size:13px;cursor:pointer;color:#5b6b86}
.fine-photo-body{padding:14px 16px 18px}
.fine-photo-label{font-size:12.5px;font-weight:800;color:#3a4560;margin:10px 0 7px}
.fine-photo-label:first-child{margin-top:0}
.fine-photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
.fine-photo-grid img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:9px;cursor:pointer;border:1px solid #eceff5}
.fine-order{background:#fff;border:1.5px solid #ECEFF5;border-radius:14px;padding:14px;margin-bottom:10px;cursor:pointer;transition:border-color .12s,box-shadow .12s}
.fine-order.sel{border-color:var(--pg-accent);box-shadow:0 0 0 3px rgba(40,100,255,.12)}
.fine-order-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.fine-order-date{font-size:11.5px;color:#8792a6;font-weight:600}
.fine-rdo{width:20px;height:20px;border-radius:50%;border:2px solid #CFD6E2;flex:0 0 auto;display:flex;align-items:center;justify-content:center}
.fine-order.sel .fine-rdo{border-color:var(--pg-accent);background:var(--pg-accent)}
.fine-order.sel .fine-rdo::after{content:'';width:8px;height:8px;border-radius:50%;background:#fff}
.fine-order-route{font-size:13.5px;font-weight:700;color:var(--pg-text);line-height:1.5;word-break:keep-all}
.fine-order-meta{margin-top:8px;font-size:11.5px;color:#96A0B0}
.fine-panel{background:#fff;border:1px solid #ECEFF5;border-radius:16px;box-shadow:0 6px 18px rgba(20,30,55,.06);padding:18px;margin-top:16px;display:flex;flex-direction:column;gap:14px}
.fine-panel-title{font-size:15px;font-weight:800;margin:0 0 2px}
.fine-seg{display:flex;gap:8px}
.fine-seg button{flex:1;border:1px solid #E4E9F2;background:#fff;color:#5b6678;font-size:13.5px;font-weight:700;padding:12px;border-radius:11px;cursor:pointer}
.fine-seg button.on{background:#EDF3FF;border-color:var(--pg-accent);color:var(--pg-accent)}
.fine-preview{display:flex;flex-wrap:wrap;gap:8px}
.fine-msg{font-size:12.5px}
.fine-submit-btn{width:100%;margin-top:2px}

/* 과태료/통행료 모달 탭(접수내역/접수하기) + 접수내역 리스트 */
.fine-tabs { display:flex; gap:6px; padding:0 16px 4px; }
.fine-tab { flex:1; border:0; background:#f2f4f8; color:var(--pg-text-sub); border-radius:10px; padding:10px 8px; font:inherit; font-size:13px; font-weight:800; cursor:pointer; }
.fine-tab.active { background:var(--pg-accent); color:#fff; }
.fine-history { display:flex; flex-direction:column; gap:10px; }
.fine-hist-item { border:1px solid #eef0f6; border-radius:12px; padding:11px 13px; background:#fbfcff; }
.fine-hist-top { display:flex; justify-content:space-between; align-items:center; }
.fine-hist-type { font-size:13.5px; font-weight:800; color:var(--pg-text); }
.fine-hist-status { font-size:12px; font-weight:800; }
.fine-hist-note { font-size:12.5px; color:var(--pg-text); margin-top:5px; white-space:pre-line; }
.fine-hist-meta { font-size:11.5px; color:var(--pg-text-sub); margin-top:6px; }
/* 과태료/통행료 접수 모달 폼 */
.fine-desc { font-size:12.5px; line-height:1.6; color:var(--pg-text-sub); margin:0 0 16px; }
.fine-form { display:flex; flex-direction:column; gap:14px; }
.fine-field { display:flex; flex-direction:column; gap:6px; }
.fine-label { font-size:12.5px; font-weight:700; color:var(--pg-text); text-align:left; }
.fine-label-sub { font-weight:600; color:var(--pg-text-sub); font-size:11.5px; }
.fine-control { width:100%; box-sizing:border-box; border:1px solid #DCE2EA; border-radius:12px; padding:12px 13px; font:inherit; font-size:14px; color:var(--pg-text); background:#fff; }
.fine-control:focus { outline:none; border-color:var(--pg-accent); box-shadow:0 0 0 3px rgba(40,100,255,.12); }
.fine-textarea { resize:vertical; min-height:76px; line-height:1.5; }
.fine-file-btn { display:inline-flex; align-items:center; justify-content:center; gap:7px; width:100%; box-sizing:border-box; border:1px dashed #B9C6DA; border-radius:12px; padding:12px; font-size:13.5px; font-weight:700; color:var(--pg-accent); background:#F5F8FF; cursor:pointer; }
.fine-file-btn:active { transform:scale(.99); }
.fine-preview { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.fine-preview:empty { display:none; }
.fine-preview .rd-photo-thumb { width:100%; aspect-ratio:1/1; object-fit:cover; border-radius:10px; border:1px solid #eceff5; }
.fine-msg { font-size:12.5px; line-height:1.5; }
.fine-submit-btn { width:100%; margin-top:18px; }
