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

: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;
  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;
  height: 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: 10px; }
.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 {
  flex-shrink: 0; border: 0; border-radius: 20px; background: rgba(255,255,255,0.18); color: #fff;
  font-size: 12.5px; font-weight: 700; padding: 6px 12px; display: flex; align-items: center; gap: 5px; cursor: pointer;
}
.home-header-mileage i { color: #ffd166; font-size: 12px; }
.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); }
.ntf-text { font-size: 12.5px; color: var(--pg-text-sub); line-height: 1.5; margin-top: 3px; }
.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;
}
.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; }

/* 진행 표시 */
.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; }
.request-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.request-dialog .check-row { flex-direction:row; align-items:center; }
.request-dialog .check-row input { width:auto; }
.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; }
.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) {
    /* 위·아래 20px 여백을 뺀 높이라야 프레임+여백이 화면을 넘지 않아 하단까지 스크롤된다.
       (예전엔 100dvh 높이에 위 여백 20px가 더해져 하단이 잘려 끝까지 안 내려왔다) */
    height: min(calc(100dvh - 40px), 900px);
    margin: 20px auto;
    border-radius: var(--pg-radius-xl);
    box-shadow: var(--pg-shadow-card);
    overflow: hidden;
  }
  #chat-container { border-radius: var(--pg-radius-xl); }
  /* 챗봇 접수 화면은 대화가 이어지므로 화면 높이에 딱 맞게 채운다(900px 상한 제거). */
  #chat-container { height: calc(100dvh - 40px); }
  #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; }
/* 이전 화면으로 돌아가기: 텍스트 링크가 아니라 버튼(둥근 아웃라인) */
.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: 128px; }
/* 홈 탭(상단 헤더가 있는 화면)에서는 검색바를 헤더 바로 아래에 붙인다. */
#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); }

.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; }

/* 유류 세금계산서 저장 카드 */
.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; }
.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; }

.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-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; }
.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: 142px; }
}
/* 넓은 화면(폰 프레임 카드)에서는 뷰포트가 아니라 카드 하단에 붙도록 되돌린다. (기본 fixed를 덮어써야 하므로 기본 규칙 뒤에 둔다) */
@media (min-width: 460px) {
  /* 폰 프레임 카드에서는 카드 하단에 붙이되, 라운드 코너에 잘리지 않게 살짝 올린다. */
  .bottom-nav-wrap { position: absolute; bottom: 10px; }
}
.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; }
.bottom-nav-item { flex:1; display:flex; flex-direction:column; align-items: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; }
.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:wrap; }
/* 이용/알림 탭에서는 좌우 스와이프로 탭을 넘기므로 세로 스크롤만 브라우저에 맡기고 가로 제스처는
   직접 처리한다. 카드 위가 아니라 화면 어디에서 시작해도 넘어가도록 스크롤 컨테이너에 건다. */
#quick-body.usage-swipe, #quick-body.terms-swipe { touch-action:pan-y; }
/* 목록이 짧아도 아래 빈 공간까지 같은 탭 화면으로 인식되도록 남는 높이를 채운다. */
#usage-swipe-area { flex:1; min-height:200px; }
.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-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; }
@media (min-width: 1040px) {
  #pc-aside {
    display: flex; flex-direction: column; align-items: flex-start;
    position: fixed; top: 50%; transform: translateY(-50%);
    /* 중앙 프레임이 640px 이상에서 560px(반폭 280px)로 넓어졌으므로, 겹치지 않게 그 왼쪽으로 배치 */
    right: calc(50% + 300px);
    width: min(340px, calc(50vw - 320px));
    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; }
}

/* ===== 휴대폰 푸시 알림 설정 카드 (알림 페이지) ===== */
.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: 560px; }
  #chat-container { max-width: 560px; }
  /* 하단 시트도 넓어진 카드 폭에 맞춘다. */
  .action-sheet { max-width: 560px; }
}
/* 동의 체크박스: 체크박스 옆에 문구가 오도록 가로 정렬.
   (.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}

/* 과태료/통행료 접수 모달 폼 */
.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; }
