/* U2 디자인 기준 (2026-11-24, 결정 U-a~U-d) — 색·글자·간격·모서리·그림자는 아래 공통 값만 쓴다.
   글자 크기 5단계: 13(작은 설명) · 15(본문) · 17(소제목) · 20(제목) · 24(큰 제목). 입력칸은 16(아이폰 확대 방지).
   보조 글자색 --c-sub는 회색 바탕에서도 대비 4.5:1 이상. 신뢰 표시(초록)와 광고 표시(회색 점선)는 다른 모양으로 둔다. */
:root {
  /* 색 */
  --c-primary: #2858d4;
  --c-primary-soft: #edf2ff;
  --c-primary-line: #dce5ff;
  --c-ink: #18253b;
  --c-sub: #5b6676;
  --c-line: #e3e8ef;
  --c-line-strong: #d3dae5;
  --c-bg: #f5f7fa;
  --c-page: #e9edf3;
  --c-surface: #ffffff;
  --c-muted-surface: #f4f6f9;
  --c-success: #16764b;
  --c-success-soft: #eaf7f0;
  --c-warn-text: #6e5426;
  --c-warn-soft: #fff8e9;
  --c-warn-line: #f0e3c8;
  --c-danger: #c22e2e;
  --c-mgm: #8a5a00;
  /* 글자 */
  --fs-2xs: 12px;
  --fs-xs: 13px;
  --fs-md: 15px;
  --fs-lg: 17px;
  --fs-xl: 20px;
  --fs-2xl: 24px;
  --fs-title: 22px;
  --fs-hero: 34px;
  --fs-input: 16px;
  --lh-body: 1.55;
  --lh-tight: 1.3;
  /* 간격 */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  /* 모서리 */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;
  /* 그림자 */
  --sh-card: 0 4px 16px #1d31530d;
  --sh-float: 0 8px 28px #18253b24;
  /* 크기 */
  --app-w: 480px;
  --tap: 44px;
  --btn-h: 48px;
  /* 예전 이름 (화면 JS·HTML 인라인 style 호환) */
  --ink: var(--c-ink);
  --muted: var(--c-sub);
  --line: var(--c-line);
  --blue: var(--c-primary);
  --bg: var(--c-bg);
  --green: var(--c-success);
  /* 색 변수 모음 (UI 2차, 2026-11-29): 화면 CSS에는 색 코드를 직접 쓰지 않는다 */
  --c-glass: #fffffff2;
  --c-fill: #eef1f5;
  --c-faint: #8a94a6;
  --c-line-deep: #bfc9d8;
  --c-ink-soft: #3a4c67;
  --c-primary-mid: #6b8be5;
  --c-primary-deep: #1e3a8a;
  --c-primary-ring: #2858d440;
  --c-danger-soft: #fdecec;
  --c-danger-line: #f0c9c9;
  --c-danger-deep: #7a1f1f;
  --c-on-danger: #ffd0d0;
  --c-success-bright: #7ee2a8;
  --c-orange-soft: #fff7ed;
  --c-orange: #9a3412;
  --c-warm-surface: #f7f4ee;
  --c-on-dark-line: #ffffff66;
  --c-on-dark-sub: #d1d9e5;
  --c-on-dark-accent: #c3d3ff;
  --c-backdrop: #18253b80;
  --c-overlay-dark: rgba(17, 24, 39, .72);
  --c-shadow: #18253b16;
  --c-shadow-soft: #18253b0f;
  --c-shadow-pin: rgba(0, 0, 0, .18);
  --c-kakao: #fee500;
  --c-kakao-ink: #202124;
  --c-naver: #03c75a;
  --c-card-green: #163d35;
  --c-card-green-soft: #f2f6f4;
  --g-saved: linear-gradient(145deg, #203657, #405b83);
  --g-art: linear-gradient(140deg, #deebef, #abc8ce 55%, #829e9c);
  --g-art-detail: linear-gradient(140deg, #dbe9ed, #a6c5c9 60%, #849e99);
  --g-art-roof: linear-gradient(90deg, #71858a, #a3b4b3);
  --g-map-draft: repeating-linear-gradient(35deg, #edf1e9 0 38px, #dce3dc 39px 43px, #edf1e9 44px 78px);
  --g-skeleton: linear-gradient(90deg, var(--c-fill), var(--c-line), var(--c-fill));
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--c-page);
  color: var(--c-ink);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  /* 한국어는 단어 중간에서 끊지 않는다 (U1 P1-9). 긴 주소·이메일은 아래 .pre/.ext/.break에서 끊는다 */
  word-break: keep-all;
  overflow-wrap: break-word;
  font-family:
    'Pretendard Variable',
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    'Apple SD Gothic Neo',
    'Noto Sans KR',
    'Malgun Gothic',
    sans-serif;
  -webkit-text-size-adjust: 100%;
}
h1,
h2,
h3 {
  line-height: var(--lh-tight);
}
.app {
  width: min(100%, var(--app-w));
  min-height: 100vh;
  margin: auto;
  background: var(--c-bg);
  padding-bottom: calc(88px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
  box-shadow: 0 0 45px var(--c-shadow);
}
.top {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--c-glass);
  border-bottom: 1px solid var(--c-line);
  height: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--sp-4);
}
.logo {
  font-size: var(--fs-xl);
  font-weight: 900;
}
.logo b {
  color: var(--c-primary);
}
button {
  font: inherit;
  cursor: pointer;
  color: inherit;
}
/* 아이콘 (Lucide, icons.svg) */
.icon {
  width: 22px;
  height: 22px;
  flex: none;
  vertical-align: middle;
}
.icon.sm {
  width: 18px;
  height: 18px;
}
.plain {
  border: 0;
  background: none;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--c-ink);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
}
.page {
  display: none;
  padding: var(--sp-4);
  /* 주소의 #home 등으로 브라우저가 화면 위치를 맞출 때 머리글(56px) 아래로 밀리지 않게 */
  scroll-margin-top: 56px;
}
.page.on {
  display: block;
}
.hero {
  padding: var(--sp-3) 2px var(--sp-4);
}
.eyebrow {
  color: var(--c-primary);
  font-size: var(--fs-xs);
  font-weight: 800;
}
.hero h1 {
  font-size: var(--fs-2xl);
  letter-spacing: -0.5px;
  margin: var(--sp-2) 0;
}
.muted {
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  color: var(--c-sub);
}
input,
select,
textarea {
  font: inherit;
  font-size: var(--fs-input);
  color: var(--c-ink);
}
input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-md);
  background: var(--c-surface);
}
input[type='checkbox'],
input[type='radio'] {
  width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  accent-color: var(--c-primary);
  vertical-align: middle;
}
/* 파일 선택: 기본 버튼 모양을 앱 버튼처럼 (글자는 기기 언어를 따른다 — 한국어 기기는 "파일 선택") */
input[type='file'] {
  padding: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--c-sub);
}
input[type='file']::file-selector-button {
  font: inherit;
  font-size: var(--fs-xs);
  font-weight: 800;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--c-primary-soft);
  color: var(--c-primary);
  padding: 10px 14px;
  margin-right: var(--sp-3);
  cursor: pointer;
}
select {
  background: var(--c-surface);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-md);
  padding: 0 var(--sp-3);
}
.chips {
  display: flex;
  gap: var(--sp-2);
  overflow: auto;
  padding: var(--sp-3) 0 var(--sp-4);
}
.signup-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}
.btn.kakao {
  background: var(--c-kakao);
  color: var(--c-kakao-ink);
}
.btn.google {
  background: white;
  border: 1px solid var(--c-line-strong);
  color: var(--c-ink);
}
.formbox {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: var(--sp-3);
  margin: var(--sp-3) 0;
}
.formbox label {
  display: block;
  font-size: var(--fs-md);
  font-weight: 800;
  margin-bottom: var(--sp-2);
}
.formbox input,
.input-select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-sm);
  font: inherit;
  font-size: var(--fs-input);
  background: var(--c-surface);
}
.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-2);
}
.option {
  border: 1px solid var(--c-line-strong);
  background: var(--c-surface);
  color: var(--c-sub);
  border-radius: var(--r-sm);
  padding: 11px 7px;
  font-size: var(--fs-md);
}
.option.selected {
  border-color: var(--c-primary-mid);
  background: var(--c-primary-soft);
  color: var(--c-primary);
  font-weight: 800;
}
.amount-input {
  position: relative;
}
.amount-input span {
  position: absolute;
  right: 13px;
  top: 13px;
  color: var(--c-sub);
  font-size: var(--fs-xs);
}
/* 광고 자리 — 신뢰 표시와 다른 모양(회색 점선)으로 고정 */
.ad-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding: var(--sp-3) 14px;
  margin: 10px 0 var(--sp-4);
  border: 1px dashed var(--c-line-deep);
  border-radius: var(--r-md);
  background: var(--c-fill);
}
.ad-slot span {
  font-size: var(--fs-xs);
  font-weight: 800;
  color: var(--c-sub);
}
.ad-slot b {
  font-size: var(--fs-md);
  color: var(--c-ink-soft);
}
.ad-slot small {
  font-size: var(--fs-xs);
  color: var(--c-sub);
}
.signup-row .btn {
  padding: var(--sp-2) 10px;
  font-size: var(--fs-xs);
}
.map-draft {
  height: 290px;
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  background: var(--g-map-draft);
}
.map-draft button {
  position: absolute;
  text-align: left;
  border: 0;
  border-radius: 10px;
  background: var(--c-surface);
  padding: 10px;
  box-shadow: var(--sh-float);
  font-size: var(--fs-xs);
  font-weight: 800;
}
.map-draft button:first-child {
  left: 12%;
  top: 23%;
}
.map-draft button:last-child {
  right: 8%;
  bottom: 20%;
}
.map-draft small {
  color: var(--c-sub);
  font-weight: 500;
}
.chip {
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-pill);
  background: var(--c-surface);
  padding: var(--sp-2) 14px;
  font-size: var(--fs-md);
  color: var(--c-sub);
  white-space: nowrap;
}
/* 칩 모양 지역 선택도 입력칸이라 16px (아이폰 확대 방지) */
select.chip {
  font-size: var(--fs-input);
}
.chip.on {
  color: var(--c-primary);
  background: var(--c-primary-soft);
  border-color: var(--c-primary-line);
  font-weight: 700;
}
.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: var(--sp-1) 0 10px;
}
.head h2 {
  font-size: var(--fs-lg);
  margin: 0;
}
.small {
  font-size: var(--fs-xs);
  color: var(--c-sub);
}
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: var(--sp-3) 0;
  box-shadow: var(--sh-card);
  cursor: pointer;
}
.art {
  height: 135px;
  background: var(--g-art);
  position: relative;
}
.art:before {
  content: '';
  position: absolute;
  inset: 20% 9% 0;
  background: var(--g-art-roof);
  clip-path: polygon(0 25%, 35% 0, 70% 10%, 100% 30%, 100% 100%, 0 100%);
}
.tag {
  position: absolute;
  top: 11px;
  left: 11px;
  border-radius: var(--r-sm);
  background: var(--c-glass);
  padding: 6px var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 800;
}
.body {
  padding: 14px;
}
.title {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-2);
  align-items: start;
}
.title h3 {
  font-size: var(--fs-lg);
  margin: 0 0 var(--sp-1);
}
.badge {
  background: var(--c-primary-soft);
  color: var(--c-primary);
  border-radius: var(--r-sm);
  padding: var(--sp-1) var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 800;
  white-space: nowrap;
}
.line {
  font-size: var(--fs-xs);
  color: var(--c-sub);
}
.status {
  border-top: 1px solid var(--c-line);
  margin-top: var(--sp-3);
  padding-top: 10px;
  font-size: var(--fs-xs);
}
.green {
  color: var(--c-success);
}
.detail-art {
  height: 158px;
  margin: calc(-1 * var(--sp-4)) calc(-1 * var(--sp-4)) var(--sp-4);
  background: var(--g-art-detail);
  position: relative;
}
.detail-art .tag {
  top: auto;
  bottom: 11px;
}
.back {
  position: absolute;
  left: var(--sp-3);
  top: var(--sp-3);
  border: 0;
  border-radius: var(--r-pill);
  background: var(--c-glass);
  padding: var(--sp-2) var(--sp-3);
  font-weight: 700;
  font-size: var(--fs-xs);
}
.box,
.advisor {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 14px;
  margin: 10px 0;
}
.box h3 {
  font-size: var(--fs-md);
  margin: 0 0 var(--sp-2);
}
.person {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--c-primary-line);
  display: grid;
  place-items: center;
  font-weight: 900;
}
.avatar.gold {
  background: var(--c-warn-line);
}
/* 신뢰 표시 (소속 확인) — 초록 계열, 광고 표시와 섞지 않는다 */
.verify {
  margin-left: auto;
  color: var(--c-success);
  font-size: var(--fs-xs);
  font-weight: 700;
  background: var(--c-success-soft);
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--r-sm);
}
.offer {
  background: var(--c-muted-surface);
  border-radius: 10px;
  padding: var(--sp-3);
  margin: var(--sp-3) 0;
  font-size: var(--fs-xs);
  line-height: 1.65;
}
.offer strong {
  font-size: var(--fs-md);
}
.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.link {
  border: 0;
  background: none;
  color: var(--c-primary);
  font-size: var(--fs-md);
  font-weight: 700;
}
.btn {
  border: 0;
  border-radius: var(--r-md);
  background: var(--c-primary);
  color: white;
  font-size: var(--fs-md);
  font-weight: 800;
  padding: 11px var(--sp-4);
  min-height: var(--btn-h);
}
.btn.full {
  width: 100%;
  padding: var(--sp-3);
}
.btn.pale {
  background: var(--c-primary-soft);
  color: var(--c-primary);
}
.btn.danger {
  background: var(--c-surface);
  color: var(--c-danger);
  border: 1px solid var(--c-danger-line);
}
/* 누르는 느낌 (emil-design-eng: 짧고 작게) */
.btn,
.chip,
.option,
.nav button,
.card {
  transition:
    transform 0.1s ease-out,
    background-color 0.15s ease-out;
}
.btn:active,
.chip:active,
.option:active,
.nav button:active {
  transform: scale(0.97);
}
.tabs {
  display: flex;
  gap: var(--sp-4);
  border-bottom: 1px solid var(--c-line);
  margin-top: var(--sp-4);
}
.tab {
  border: 0;
  background: none;
  color: var(--c-sub);
  padding: 10px 0;
  font-size: var(--fs-md);
  font-weight: 700;
}
.tab.sel {
  color: var(--c-primary);
  border-bottom: 2px solid var(--c-primary);
}
.panel {
  display: none;
}
.panel.sel {
  display: block;
}
.fact {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 10px 0;
  border-bottom: 1px solid var(--c-line);
  font-size: var(--fs-md);
}
.fact:last-child {
  border: 0;
}
.source {
  font-size: var(--fs-xs);
  color: var(--c-sub);
  line-height: 1.6;
}
.notice {
  background: var(--c-warn-soft);
  border: 1px solid var(--c-warn-line);
  color: var(--c-warn-text);
  padding: var(--sp-3);
  border-radius: 10px;
  font-size: var(--fs-xs);
  line-height: 1.6;
  margin: var(--sp-3) 0;
}
textarea {
  width: 100%;
  min-height: 110px;
  padding: var(--sp-3);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-md);
  background: var(--c-surface);
}
.nav {
  position: fixed;
  bottom: 0;
  width: min(100%, var(--app-w));
  display: flex;
  background: var(--c-glass);
  border-top: 1px solid var(--c-line);
  padding: 6px var(--sp-2) calc(6px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
  z-index: 5;
}
.nav button {
  flex: 1;
  border: 0;
  background: none;
  color: var(--c-sub);
  font-weight: 700;
  font-size: var(--fs-xs);
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.nav button.sel {
  color: var(--c-primary);
}
.nav span {
  display: block;
  font-size: var(--fs-lg);
  line-height: 1;
}
.saved {
  background: var(--g-saved);
  color: white;
  padding: var(--sp-4);
  border-radius: var(--r-lg);
  margin: var(--sp-4) 0;
}
.saved h2 {
  font-size: var(--fs-xl);
  margin: var(--sp-2) 0 var(--sp-1);
}
.saved .muted {
  color: var(--c-on-dark-sub);
}
.toast {
  position: fixed;
  z-index: 8;
  bottom: calc(84px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(min(100vw, var(--app-w)) - 32px);
  background: var(--c-ink);
  color: white;
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-md);
  box-shadow: var(--sh-float);
  display: none;
}
.hide {
  display: none !important;
}
@media (min-width: 700px) {
  body {
    padding: 20px 0;
  }
  .app {
    border-radius: 24px;
    overflow: hidden;
    min-height: calc(100vh - 40px);
  }
}

button,
input:not([type='checkbox']):not([type='radio']),
select {
  min-height: var(--tap);
}
/* 키보드로 움직일 때만 보이는 포커스 표시 (U1 P2-20) */
:focus-visible {
  outline: 3px solid var(--c-primary);
  outline-offset: 2px;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-offset: 0;
}
.tiny {
  font-size: var(--fs-xs);
  line-height: 1.6;
}
/* 휴대폰 "움직임 줄이기"를 켠 사람에게는 효과를 끈다 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 실제 데이터 화면 (R5: 예시 모드 제거). demo-only는 실제 화면이 기존 요소를 숨길 때만 쓴다. */
body.bh-live .demo-only {
  display: none !important;
}
.benefit-head {
  font-weight: 700;
  margin: 6px 0 2px;
}
.benefit-head.mgm {
  color: var(--c-mgm);
  margin-top: 10px;
}
.benefit-item {
  padding: 6px 0;
  border-top: 1px dashed var(--c-line-strong);
}
.benefit-item:first-of-type {
  border-top: 0;
}
.post-title {
  font-weight: 700;
  margin: var(--sp-2) 0 var(--sp-1);
}
.pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ext,
.break {
  overflow-wrap: anywhere;
  word-break: break-all;
}
.ext {
  margin-right: var(--sp-3);
}
.review {
  padding: var(--sp-2) 0;
  border-top: 1px solid var(--c-line);
}
.review .reply {
  background: var(--c-muted-surface);
  border-radius: var(--r-sm);
  padding: 6px var(--sp-2);
  margin: var(--sp-1) 0 0;
}
.msg {
  margin: 6px 0;
  padding: var(--sp-2) 10px;
  border-radius: var(--r-md);
  background: var(--c-muted-surface);
  overflow-wrap: anywhere;
}
.msg.me {
  background: var(--c-primary-soft);
  margin-left: var(--sp-5);
}
#chatMessages {
  max-height: 340px;
  overflow-y: auto;
}
.card-clock {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}

/* 10-11 중개사무소 표시 (신뢰 표시 — 광고 표시와 다른 모양) */
.broker {
  margin: 6px 0 2px;
  font-size: var(--fs-xs);
  color: var(--c-sub);
}
.broker.verified {
  color: var(--c-success);
  font-weight: 600;
}
/* 10-11 운영자 위치 지정 도구 */
.pick-row {
  display: flex;
  gap: 6px;
}
.pick-row input {
  flex: 1;
  min-width: 0;
}
.pick-list {
  display: grid;
  gap: var(--sp-1);
  margin: 6px 0;
}
.pick-item {
  text-align: left;
  border: 1px solid var(--c-line-strong);
  border-radius: 10px;
  background: var(--c-surface);
  padding: var(--sp-2) 10px;
  display: grid;
  gap: 2px;
  font: inherit;
}
.pick-item span {
  font-size: var(--fs-xs);
  color: var(--c-sub);
}
.pick-map {
  height: 280px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-md);
  background: var(--c-fill);
}

/* 10-11 운영자 입력 칸 */
.field {
  display: grid;
  gap: var(--sp-1);
  margin: var(--sp-2) 0;
}

/* 10-12 소셜 로그인 버튼 (각 사 색 규칙: 카카오 노랑·네이버 초록·구글 흰 바탕) */
.social-buttons {
  display: grid;
  gap: var(--sp-2);
}
.btn.naver {
  background: var(--c-naver);
  color: var(--c-surface);
}

/* ================= U3 고객 화면 배치 (2026-11-24) ================= */
.top-spacer {
  width: 64px;
}
.grow {
  flex: 1;
  min-width: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
/* 목록 ↔ 지도, 명함 ↔ 관심 현장 전환 */
.seg {
  display: inline-flex;
  background: var(--c-muted-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  padding: 3px;
  gap: 2px;
}
.seg button {
  border: 0;
  background: none;
  border-radius: var(--r-pill);
  padding: 0 var(--sp-4);
  min-height: 38px;
  font-weight: 700;
  color: var(--c-sub);
}
.seg button.sel {
  background: var(--c-surface);
  color: var(--c-primary);
  box-shadow: var(--sh-card);
}
#saved .seg {
  margin: var(--sp-2) 0 var(--sp-3);
}
/* 홈 현장 카드 (사진 없을 때 단정한 모양) */
.site-card .title {
  align-items: center;
}
.site-ico {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--c-primary-soft);
  color: var(--c-primary);
  display: grid;
  place-items: center;
  flex: none;
}
.muted-badge {
  background: var(--c-muted-surface);
  color: var(--c-sub);
}
/* 현장 상세 머리 */
.site-head {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  align-items: flex-start;
  margin-bottom: var(--sp-2);
}
.notice-tag {
  display: inline-block;
  margin-top: var(--sp-2);
}
.fav {
  border: 1px solid var(--c-line-strong);
  background: var(--c-surface);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  gap: 2px;
  padding: var(--sp-2) 10px;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--c-sub);
  flex: none;
}
.fav.on {
  color: var(--c-primary);
  border-color: var(--c-primary-line);
  background: var(--c-primary-soft);
}
/* 혜택 칩 (U3-b): 정보 칩 = 네모 테두리, 거르기 칩(.chip) = 둥근 알약 — 모양을 다르게 */
.benefits {
  margin: var(--sp-3) 0;
}
.bchips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.bchip,
.bchip-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  border: 1.5px solid var(--c-primary);
  background: var(--c-primary-soft);
  color: var(--c-primary);
  border-radius: var(--r-sm);
  padding: 6px var(--sp-3);
  font-size: var(--fs-md);
  font-weight: 800;
  text-align: left;
}
.bchip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 15em;
}
.bchip-more {
  background: var(--c-surface);
}
.mgm-note {
  margin-top: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--c-sub);
}
.chip-toggle {
  min-height: var(--tap);
  padding: 0;
}
.chip-detail .offer {
  margin-top: 0;
}
/* 같은 크기 버튼 두 개 */
.cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}
/* 상담사 상세 아래 고정 버튼 줄 */
.cta-bar {
  position: sticky;
  bottom: 0;
  margin: var(--sp-4) calc(-1 * var(--sp-4)) calc(-1 * var(--sp-4));
  padding: var(--sp-2) var(--sp-4) calc(var(--sp-3) + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
  background: var(--c-glass);
  border-top: 1px solid var(--c-line);
  z-index: 3;
}
.cta-bar .tiny {
  margin: 0;
  color: var(--c-sub);
}
/* 불러오는 중 뼈대 */
.skel {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  margin: var(--sp-3) 0;
}
.skel-line {
  height: 14px;
  border-radius: 7px;
  background: var(--g-skeleton);
  background-size: 200% 100%;
  animation: skel 1.2s ease-in-out infinite;
  margin: 10px 0;
}
.skel-line.w60 {
  width: 60%;
}
.skel-line.w90 {
  width: 90%;
}
.skel-line.w40 {
  width: 40%;
}
@keyframes skel {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
/* 빈 화면·오류 화면 */
.error-state {
  border-color: var(--c-danger-line);
}
/* 채팅 (U3) */
.chat-who {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-2);
}
details > summary {
  cursor: pointer;
  list-style: none;
  min-height: var(--tap);
  display: flex;
  align-items: center;
}
details > summary::-webkit-details-marker {
  display: none;
}
.terms > summary {
  color: var(--c-primary);
  font-weight: 700;
}
.terms > summary::after {
  content: '▾';
  margin-left: 6px;
}
.terms[open] > summary::after {
  content: '▴';
}
.menu {
  position: relative;
}
.menu > summary {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--c-sub);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-pill);
  padding: 0 var(--sp-3);
  gap: 4px;
}
.menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 6;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-float);
  display: grid;
  min-width: 180px;
  padding: var(--sp-1);
}
.menu-list .plain {
  justify-content: flex-start;
  font-size: var(--fs-md);
  padding: 0 var(--sp-3);
}
.danger-text {
  color: var(--c-danger) !important;
}
.chat-log {
  min-height: 40vh;
}
#chatMessages.chat-log {
  max-height: none;
}
.composer {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: var(--sp-2);
  align-items: flex-end;
  margin: 0 calc(-1 * var(--sp-4)) calc(-1 * var(--sp-4));
  padding: var(--sp-2) var(--sp-4) calc(var(--sp-2) + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
  background: var(--c-glass);
  border-top: 1px solid var(--c-line);
  z-index: 3;
}
.composer textarea {
  min-height: 48px;
  max-height: 140px;
  flex: 1;
  resize: vertical;
}
.composer .btn {
  flex: none;
}
.confirm {
  border-color: var(--c-primary-line);
  background: var(--c-primary-soft);
}
/* 내 문의 목록·관심 현장 줄 (한 줄 전체를 누른다) */
.conv-row,
.fav-row {
  width: 100%;
  text-align: left;
  display: grid;
  gap: 2px;
  font: inherit;
  color: inherit;
}
.conv-top {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-2);
}
/* 내 정보: 닉네임 크게 */
.account-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}
.account-name b {
  font-size: var(--fs-xl);
}
/* 지도 바텀 시트: 핀을 누르면 하단 메뉴 위로 올라온다 */
.sheet {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(72px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
  width: calc(min(100vw, var(--app-w)) - 16px);
  z-index: 6;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-float);
  padding: var(--sp-4);
}
.sheet-close {
  float: right;
  margin: -8px -4px 0 var(--sp-2);
}

/* ================= U4 상담사·운영자 화면 (2026-11-24) ================= */
/* 요약 숫자 칸 (상담사 업무·운영자 처리 대기) */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-2);
  margin: var(--sp-3) 0;
}
.op-tiles {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.tile {
  display: grid;
  gap: 2px;
  justify-items: start;
  text-align: left;
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  border-radius: var(--r-md);
  padding: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--c-sub);
  min-height: 64px;
}
.tile-num {
  font-size: var(--fs-xl);
  color: var(--c-ink);
  line-height: 1.1;
}
.tile.hot {
  border-color: var(--c-primary);
  background: var(--c-primary-soft);
  color: var(--c-primary);
}
.tile.hot .tile-num {
  color: var(--c-primary);
}
.tile.sel {
  outline: 2px solid var(--c-primary);
  outline-offset: 1px;
}
.tile-sub .tile-num {
  color: var(--c-primary);
}
.admin-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}
.admin-bar label {
  font-size: var(--fs-xs);
  color: var(--c-sub);
}
.audit {
  margin-top: var(--sp-4);
}
.audit > summary {
  font-weight: 800;
  font-size: var(--fs-lg);
}
/* 상담사 업무 머리·명함 요약 */
.desk-title {
  font-size: var(--fs-xl);
  margin: var(--sp-1) 0 var(--sp-2);
}
.card-mini {
  display: grid;
  gap: 2px;
}
.card-mini .verify {
  margin-left: 0;
  justify-self: start;
}
/* 받은 문의 줄 + 작은 버튼 */
.conv-item {
  margin: var(--sp-2) 0;
}
.conv-item .conv-row {
  margin: 0;
}
.conv-actions {
  display: flex;
  gap: var(--sp-3);
  justify-content: flex-end;
}
/* 위험한 작업 구역 + 그 자리 확인 상자 */
.danger-zone {
  border: 1px solid var(--c-danger-line);
  border-radius: var(--r-md);
  padding: var(--sp-3);
  margin: var(--sp-5) 0 var(--sp-3);
  background: var(--c-danger-soft);
}
.danger-zone h3 {
  color: var(--c-danger);
  margin: 0 0 var(--sp-1);
  font-size: var(--fs-md);
}
.confirm-box {
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-md);
  background: var(--c-surface);
  padding: var(--sp-3);
  margin-top: var(--sp-3);
  display: grid;
  gap: var(--sp-2);
}
.confirm-box label {
  font-weight: 700;
}
/* 혜택 글 작성: 접히는 카드 + 아래 고정 저장 줄 */
.benefit-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-2);
}
.benefit-card-head .bchip,
.benefit-card-head .mgm-note {
  margin-top: 6px;
  display: inline-flex;
}
.benefit-card.open {
  border-color: var(--c-primary-line);
}
.benefit-fields {
  margin-top: var(--sp-2);
}
.save-bar {
  position: sticky;
  bottom: 0;
  margin: var(--sp-4) calc(-1 * var(--sp-4)) calc(-1 * var(--sp-4));
  padding: var(--sp-2) var(--sp-4) calc(var(--sp-3) + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
  background: var(--c-glass);
  border-top: 1px solid var(--c-line);
  z-index: 3;
}
.save-bar .source {
  margin: 0 0 var(--sp-1);
}
/* 소속 신청 단계 표시 */
.stepper {
  list-style: none;
  padding: 0;
  margin: var(--sp-3) 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-1);
}
.stepper li {
  display: grid;
  justify-items: center;
  gap: 2px;
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--c-sub);
}
.step-no {
  width: 28px;
  height: 28px;
  border-radius: var(--r-pill);
  display: grid;
  place-items: center;
  border: 1.5px solid var(--c-line-strong);
  background: var(--c-surface);
  font-weight: 800;
}
.stepper li.done .step-no {
  background: var(--c-success-soft);
  border-color: var(--c-success);
  color: var(--c-success);
}
.stepper li.now {
  color: var(--c-primary);
  font-weight: 800;
}
.stepper li.now .step-no {
  border-color: var(--c-primary);
  background: var(--c-primary);
  color: white;
}
/* U4-a: 운영자 화면만 PC에서 넓게 (최대 960px) */
@media (min-width: 1000px) {
  .app.wide {
    width: min(100%, 960px);
  }
  .app.wide .op-tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .app.wide .op-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 var(--sp-3);
  }
}

/* ================= U6 알림·확인·처리 중·끊김 (2026-11-24) ================= */
/* 토스트 3종 — 색 + 아이콘 둘 다 (색을 구분하지 못해도 알 수 있게) */
.toast {
  align-items: center;
  gap: var(--sp-2);
  width: max-content;
}
.toast-success .icon {
  color: var(--c-success-bright);
}
.toast-error {
  background: var(--c-danger-deep);
}
.toast-error .icon {
  color: var(--c-on-danger);
}
.toast-text {
  flex: 1;
}
.toast-close {
  border: 1px solid var(--c-on-dark-line);
  background: none;
  color: white;
  border-radius: var(--r-sm);
  padding: 0 var(--sp-3);
  min-height: 36px;
  font-size: var(--fs-xs);
  font-weight: 700;
}
/* 아래 고정 버튼 줄·입력줄이 있는 화면에서는 그 위로 */
body:has(#advisor.on) .toast,
body:has(#inquiry.on) .toast,
body:has(#benefitForm.on) .toast {
  bottom: calc(132px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
}
/* 확인 시트 (U6-a): 아래에서 올라오는 <dialog> */
.confirm-sheet {
  border: 0;
  padding: var(--sp-5) var(--sp-4) calc(var(--sp-4) + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
  margin: auto auto 0;
  width: min(100vw, var(--app-w));
  max-width: 100vw;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--c-surface);
  color: var(--c-ink);
  box-shadow: var(--sh-float);
}
.confirm-sheet::backdrop {
  background: var(--c-backdrop);
}
.confirm-sheet h2 {
  font-size: var(--fs-lg);
  margin: 0 0 var(--sp-2);
}
.confirm-sheet[open] {
  animation: sheet-up 0.18s ease-out;
}
@keyframes sheet-up {
  from {
    transform: translateY(24px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
/* 처리 중 버튼 */
.btn[aria-busy='true'],
button[aria-busy='true'] {
  opacity: 0.7;
  cursor: progress;
}
/* 인터넷 끊김 안내 띠 (U6-b) */
.offline-bar {
  position: sticky;
  top: 0;
  z-index: 9;
  background: var(--c-danger-deep);
  color: white;
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: var(--sp-2) var(--sp-3);
}
/* 화면 이동 때 제목으로 옮긴 초점은 테두리를 그리지 않는다 (키보드 Tab 이동은 그대로 보임) */
h1[tabindex='-1']:focus {
  outline: none;
}

/* ================= L1 동의·문서·탈퇴 (2026-11-24) ================= */
.consent-box {
  display: grid;
  gap: var(--sp-1);
}
.consent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  min-height: var(--tap);
}
.consent-row label,
label.consent-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.consent-all {
  border-bottom: 1px solid var(--c-line);
  padding-bottom: var(--sp-2);
}
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--sp-3);
  margin-top: var(--sp-5);
}
.legal-links .link {
  font-size: var(--fs-xs);
  color: var(--c-sub);
}
.legal-doc h1 {
  font-size: var(--fs-xl);
}
.legal-doc h3 {
  font-size: var(--fs-md);
  margin: var(--sp-4) 0 var(--sp-1);
}
.legal-doc p {
  margin: var(--sp-1) 0;
  line-height: 1.7;
}
.legal-doc .li {
  padding-left: var(--sp-3);
}

/* ---------- P7 상담사 프로필: 사진·경력 칩·편집 화면·운영자 확인 ---------- */
.avatar.photo { object-fit: cover; border-radius: 50%; background: var(--c-muted-surface); padding: 0; }
.advisor .avatar, .advisor .avatar.photo { width: 48px; height: 48px; border-radius: 50%; flex: none; }
#profileInitial { overflow: hidden; padding: 0; }
#profileInitial > .avatar { width: 100%; height: 100%; border-radius: 50%; font-size: inherit; }
.headline { color: var(--c-ink); }
/* 경력 칩: 상담사가 직접 입력한 정보 — 신뢰 표시(초록)·광고와 다른 회색 */
.pchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.pchip { font-size: var(--fs-xs); color: var(--c-sub); background: var(--c-muted-surface); border: 1px solid var(--c-line); border-radius: var(--r-pill); padding: 2px 9px; }
.profile-panel .notice { margin: 8px 0; }
.photo-choice { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.photo-opt { display: grid; justify-items: center; gap: 4px; padding: 8px; border: 2px solid var(--c-line); border-radius: var(--r-md); background: var(--c-surface); cursor: pointer; min-width: 44px; }
.photo-opt img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; }
.photo-opt[aria-pressed="true"] { border-color: var(--c-primary); background: var(--c-primary-soft); }
.pick-group { border: 0; padding: 0; margin: 12px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pick-group legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.pick { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1px solid var(--c-line-strong); border-radius: var(--r-pill); background: var(--c-surface); }
.pick:has(input:checked) { border-color: var(--c-primary); background: var(--c-primary-soft); }
.op-photo { width: 160px; height: 160px; object-fit: cover; border-radius: 50%; display: block; margin: 8px 0; background: var(--c-muted-surface); }
.career-sites ul { margin: 4px 0 8px; padding-left: 18px; }
.career-sites li { font-size: var(--fs-md); line-height: 1.6; }
.career-sum { margin: 4px 0; font-size: var(--fs-xs); color: var(--c-sub); }
.career-sum summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.career-sum ul { margin: 2px 0 6px; padding-left: 18px; }

/* P7 · T-001 채팅 머리글 사진 */
#bhChatAvatar .avatar { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; }
#bhChatAvatar { flex: 0 0 36px; }
.chat-who > #bhChatAvatar + div { flex: 1; min-width: 0; }

/* ---------- R1 화면 구조 개편: 머리글(지역·검색·알림), 홈 두 칸 안내·인기·청약 임박, 메뉴 목록(나의 모하·설정), 검색·지역·가이드 ---------- */
.region-btn { display: inline-flex; align-items: center; gap: 2px; border: 0; background: none; font-size: var(--fs-xl); font-weight: 800; color: var(--c-ink); min-height: 44px; padding: 0; }
.top-actions { display: flex; gap: 2px; }
.iconbtn { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; background: none; border-radius: var(--r-md); color: var(--c-ink); }
.iconbtn:active { background: var(--c-muted-surface); }
.chips.wrap { flex-wrap: wrap; }
.hot-tag { display: inline-block; margin-left: 6px; font-size: var(--fs-2xs); font-weight: 800; color: var(--c-danger); background: var(--c-danger-soft); border-radius: 6px; padding: 1px 6px; vertical-align: 2px; }
.hscroll { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--sp-4)); padding: 0 var(--sp-4) 4px; }
.mini-card { flex: none; width: 210px; display: grid; gap: 4px; text-align: left; border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-surface); padding: 12px; color: var(--c-ink); }
#upcomingList .mini-card { width: 100%; margin-bottom: 8px; }
.me-head { margin: 4px 0 12px; }
.me-tiles { margin: 12px 0 4px; }
.menu-group { font-size: var(--fs-xs); color: var(--c-sub); margin: 18px 0 6px; font-weight: 700; }
.menu-list { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden; }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 0 14px; border: 0; border-bottom: 1px solid var(--c-line); background: none; color: var(--c-ink); font-size: var(--fs-md); text-align: left; text-decoration: none; }
.menu-item:last-child { border-bottom: 0; }
.menu-item > span:first-of-type, .menu-item > svg + span { flex: 1; }
.menu-item .icon { color: var(--c-sub); flex: none; }
.menu-item.static { justify-content: space-between; }
.menu-item.danger-text { color: var(--c-danger); }
#siteSearch { margin: 4px 0 12px; }
.guide-list { padding-left: 20px; display: grid; gap: 12px; margin: 12px 0 20px; }
.guide-list li b { display: block; }
.guide-list li span { color: var(--c-sub); font-size: var(--fs-md); }
/* R1: 채팅 ⋯ 메뉴(.menu-list, 떠 있는 목록)와 이름이 같아 나의 모하·설정에서는 제자리 목록으로 되돌린다 */
#myInfo .menu-list, #settings .menu-list { position: static; display: block; box-shadow: none; padding: 0; min-width: 0; z-index: auto; }

/* ---------- R2 현장 상세·상담사 프로필 ---------- */
.site-hero { margin: calc(-1 * var(--sp-4)) calc(-1 * var(--sp-4)) var(--sp-3); height: 180px; background: linear-gradient(135deg, var(--c-primary-soft), var(--c-primary-line)); display: grid; place-items: center; overflow: hidden; }
.site-hero img { width: 100%; height: 100%; object-fit: cover; }
.site-hero-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--c-surface); display: grid; place-items: center; color: var(--c-primary); }
.site-hero-ico .icon { width: 30px; height: 30px; }
.facts3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: var(--sp-3) 0; }
.fact3 { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 10px 6px; text-align: center; display: grid; gap: 2px; }
.fact3 b { font-size: var(--fs-lg); }
.fact3 span { font-size: var(--fs-2xs); color: var(--c-sub); }
.fact3.on b { color: var(--c-success); }
.sticky-tabs { position: sticky; top: 56px; z-index: 3; background: var(--c-bg); margin: 0 calc(-1 * var(--sp-4)); padding: 0 var(--sp-4); }
.advisor.tap { cursor: pointer; }
.advisor.tap:active { background: var(--c-muted-surface); }
.cta-row.one { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cta-row.one .btn { flex: none; min-width: 112px; }
.save-card { display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.visit-tip { background: var(--c-success-soft); border-color: transparent; }
/* R2: 상담사 화면 아래 고정 줄은 한 줄 — [명함 저장][전화] 작게, [무료 문의] 크게 */
#advisor .cta-bar .cta-row { display: flex; gap: 8px; }
#advisor .cta-bar .cta-row .btn { flex: none; padding-inline: 12px; }
#advisor .cta-bar .cta-row .btn:last-child { flex: 1; }

/* ---------- R3 채팅 목록·상담 데스크 ---------- */
.conv-line { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--c-surface); border: 0; border-bottom: 1px solid var(--c-line); padding: 12px 4px; border-radius: 0; color: var(--c-ink); }
#activityBody .conv-line:first-child { border-top: 1px solid var(--c-line); }
.conv-line .avatar { width: 48px; height: 48px; border-radius: 50%; flex: none; }
.conv-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.conv-main .conv-top { display: flex; gap: 6px; align-items: baseline; }
.conv-preview { color: var(--c-sub); font-size: var(--fs-md); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-line.purged .conv-preview { font-style: italic; }
.conv-side { display: grid; justify-items: end; gap: 4px; flex: none; }
.unread { background: var(--c-danger); color: var(--c-surface); border-radius: 999px; min-width: 20px; padding: 0 6px; font-size: var(--fs-2xs); line-height: 20px; text-align: center; font-weight: 700; }
.my-post .bump-inline { border-top: 1px solid var(--c-line); margin-top: 12px; padding-top: 12px; display: grid; gap: 6px; }
#advisorDesk .menu-list { position: static; display: block; box-shadow: none; padding: 0; min-width: 0; z-index: auto; }

/* ---------- S 실거래 칸·기존 현장 찾기 ---------- */
.mini-card.trade { gap: 2px; }
.trade-top { display: flex; gap: 6px; align-items: center; }
.trade-price { color: var(--c-primary); font-size: var(--fs-lg); }
.trade-src { flex: none; align-self: end; width: 120px; }
.found-row { display: flex; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--c-line); }
.found-row .btn { flex: none; }

/* ---------- 지도 이름 팻말 (P10-1 보완) ---------- */
.map-tag { position: relative; max-width: 148px; padding: 5px 9px; border: 1.5px solid var(--c-line); border-radius: 999px; background: var(--c-surface); color: var(--c-ink);
  font: 700 12px/1.25 inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 2px 6px var(--c-shadow-pin); cursor: pointer; }
.map-tag.on { border-color: var(--c-primary); color: var(--c-primary); }
.map-tag::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 8px; height: 8px; margin-left: -4px; background: var(--c-surface);
  border-right: 1.5px solid var(--c-line); border-bottom: 1.5px solid var(--c-line); transform: rotate(45deg); }
.map-tag.on::after { border-color: var(--c-primary); }

/* ---------- 앱(안드로이드 15+ 화면 끝까지 그리기): 맨 위 시계·배터리 줄과 겹치지 않게 (P10-1 보완) ----------
   Capacitor가 상태 표시줄 높이를 --safe-area-inset-top으로 넣어 준다. 웹에서는 env() 값(대부분 0)을 쓴다. */
.top { height: calc(56px + var(--safe-area-inset-top, env(safe-area-inset-top, 0px))); padding-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px)); }
.sticky-tabs { top: calc(56px + var(--safe-area-inset-top, env(safe-area-inset-top, 0px))); }
/* 지도: "이 지역 다시 찾기"를 지도 위쪽에 띄우고(하단 메뉴에 가리지 않게), 지도 높이는 화면에 맞춤 (P10-1 보완) */

.apply-site-find { margin-bottom: 6px; }

/* ---------- 024 현장 사진 칸: 대표 사진 → 카카오 지도 미리보기 → 핀 ---------- */
.site-thumb { width: 96px; height: 84px; flex: none; border-radius: var(--r-md); overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c-primary-soft), var(--c-primary-line)); color: var(--c-primary); pointer-events: none; }
.site-thumb img, .mini-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-thumb { height: 96px; margin: -12px -12px 6px; border-radius: var(--r-md) var(--r-md) 0 0; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c-primary-soft), var(--c-primary-line)); color: var(--c-primary); pointer-events: none; }
.static-map { width: 100%; height: 100%; }
.site-hero .static-map { pointer-events: none; }
.site-card .title { align-items: flex-start; }
.op-photo.wide { width: 240px; height: 160px; object-fit: cover; }
.source.red { color: var(--c-danger); }
.site-thumb img.default-pic, .mini-thumb img.default-pic, .site-hero img.default-pic { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 유형별 예시 이미지 (3:2 전체 보이기, 하단 문구 유지) ---------- */
.site-thumb { width: 108px; height: auto; aspect-ratio: 3 / 2; position: relative; }
.mini-thumb { height: auto; aspect-ratio: 3 / 2; position: relative; }
.site-thumb img.example-pic, .mini-thumb img.example-pic, .site-hero img.example-pic { object-fit: contain; background: var(--c-warm-surface); }
.site-thumb.is-example::after, .mini-thumb.is-example::after { content: '예시 이미지'; position: absolute; left: 4px; top: 4px; padding: 1px 6px; border-radius: 999px;
  background: var(--c-overlay-dark); color: var(--c-surface); font-size: var(--fs-2xs); font-weight: 700; line-height: 1.5; }
.site-hero { height: auto; aspect-ratio: 3 / 2; max-height: 320px; position: relative; }
.site-hero.is-example::after { content: '예시 이미지'; position: absolute; left: 10px; top: 10px; padding: 2px 8px; border-radius: 999px; background: var(--c-overlay-dark); color: var(--c-surface); font-size: var(--fs-2xs); font-weight: 700; }
.hero-note { margin: -6px 0 var(--sp-3); color: var(--c-sub); }

/* ---------- 현장 카드 크기 통일 (2026-11-25): 이름 2줄·유형/지역 1줄·표시 1줄·상태 1줄 ---------- */
.site-card .title { display: flex; gap: 12px; align-items: flex-start; }
.site-card .site-text { min-width: 0; display: grid; gap: 3px; }
.site-card .site-name { margin: 0; font-size: var(--fs-input); line-height: 1.35; height: calc(1.35em * 2); overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: keep-all; overflow-wrap: anywhere; }
.one { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-tags { display: flex; gap: 6px; align-items: center; min-height: 22px; }
.site-tags .badge, .site-tags .hot-tag { margin: 0; }
/* 유형 예시 사진이 없는 유형: 빈 칸 + 건물 아이콘 + 유형 이름 */
.type-ph { width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 2px; background: var(--c-primary-soft); color: var(--c-primary); }
.type-ph span { font-size: var(--fs-2xs); font-weight: 700; color: var(--c-sub); max-width: 92%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-hero .type-ph .icon { width: 40px; height: 40px; }
.site-hero .type-ph span { font-size: var(--fs-md); }
.type-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.type-ph span { max-width: 96px; }

/* ---------- W1 홈: 한 줄 문구·검색칸 ---------- */
.slogan { margin: 4px 0 8px; font-size: var(--fs-lg); font-weight: 700; color: var(--c-ink); letter-spacing: -0.2px; }
.slogan b { color: var(--c-primary); }
.home-search { width: 100%; min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 16px; margin-bottom: 12px;
  border: 1px solid var(--c-line); border-radius: 12px; background: var(--c-surface); color: var(--c-sub); font-size: var(--fs-md); text-align: left; cursor: pointer; }
.home-search .icon { width: 20px; height: 20px; color: var(--c-ink); }
#hotSub { margin: 2px 0 0; }

/* ---------- W1 청약 일정 ---------- */
.warn-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--c-warn-soft); color: var(--c-warn-text); font-size: var(--fs-2xs); font-weight: 700; }
#upPeriod, #upState { margin: 8px 0 4px; }
.up-group { margin-top: 14px; }
.up-day { font-size: var(--fs-md); margin: 0 0 6px; color: var(--c-sub); }
.up-row { width: 100%; min-height: 72px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 8px; text-align: left;
  border: 1px solid var(--c-line); border-radius: 12px; background: var(--c-surface); color: var(--c-ink); cursor: pointer; }
.up-row .grow { min-width: 0; display: grid; gap: 3px; }
.mini-card .site-tags { min-height: 0; }

/* ---------- W1 현장 상세: 이어 보기 ---------- */
#site .panel { display: block; scroll-margin-top: calc(108px + var(--safe-area-inset-top, env(safe-area-inset-top, 0px))); margin-bottom: 16px; }
.site-sec { font-size: var(--fs-lg); margin: 12px 0 8px; }
.site-anchors .tab { min-height: 48px; }

/* ---------- 나의 모하: 상담사 한 칸 (2026-11-29 맨 위로, 눈에 띄게) ---------- */
#meConsultantBox { margin: 0 0 12px; }
.me-consultant-start b { font-size: var(--fs-lg); }
.me-consultant-start .btn { margin-top: 8px; }
/* 038 전화번호 공개 방법: 동그라미 왼쪽, 설명 오른쪽 한 줄 정렬 */
.phone-mode { border: 1px solid var(--c-line); border-radius: 12px; padding: 8px 14px 12px; margin: 12px 0; }
.phone-mode legend { padding: 0 6px; font-weight: 700; }
.phone-mode .check-row { align-items: flex-start; gap: 10px; padding: 8px 0; }
.phone-mode .check-row input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; }
.phone-mode .check-row label { flex: 1; min-width: 0; }
.phone-mode .check-row label b { font-size: var(--fs-md); }
.phone-mode .check-row label .tiny { font-weight: 400; margin-top: 2px; }
.my-post-cta .actions { display: flex; gap: 8px; margin-top: 10px; }
.my-post-cta .actions .btn { flex: 1; }
#meConsultantBox .actions { display: flex; gap: 8px; margin: 8px 0; }

/* ---------- W1 지도 이름표: 네모·두꺼운 테두리 ---------- */
.map-tag { border-radius: 8px; border: 2px solid var(--c-sub); padding: 6px 8px; max-width: 144px; font: 700 13px/18px inherit; white-space: normal;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: keep-all; overflow-wrap: anywhere; text-align: center; min-height: 32px; }
.map-tag::after { display: none; }
.map-tag.on { border-color: var(--c-primary); background: var(--c-primary-soft); color: var(--c-primary-deep); }
.map-tag:focus-visible, .map-tag.sel { background: var(--c-ink); color: var(--c-surface); border-color: var(--c-ink); }
.map-tag { width: max-content; min-width: 56px; }

/* ---------- W2 지도: 이름표 2줄(현장명·상담사 수), 상담사 있음 파랑 2px / 없음 회색 1px ---------- */
.map-tag { display: flex; flex-direction: column; align-items: center; gap: 1px; min-height: 0; -webkit-line-clamp: unset; border-width: 1px; border-color: var(--c-faint); }
.map-tag.on { border-width: 2px; border-color: var(--c-primary); }
.map-tag-name { max-width: 128px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-xs); font-weight: 700; }
.map-tag-count { font-size: var(--fs-2xs); font-weight: 700; color: var(--c-primary); }

/* ---------- W2-2a 현장 정보 수정 ---------- */
.site-edit-entry .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.edit-diff { display: grid; gap: 6px; margin: 8px 0; }
.edit-row { display: grid; grid-template-columns: 24px 1fr; gap: 2px 8px; align-items: start; padding: 8px; border: 1px solid var(--c-line); border-radius: 8px; }
.edit-row > input { grid-row: span 3; margin-top: 3px; }
.supply-tag { padding: 1px 6px; border-radius: 999px; background: var(--c-orange-soft); color: var(--c-orange); font-weight: 700; }

/* W3-a 현장 고르기 결과 */
.found-row.on { background: var(--c-primary-soft); border-radius: 10px; padding: 10px; border-bottom: 0; }
.apply-site-new { margin-top: 8px; }

/* W3-b 혜택 글: 사진 칸 */
.post-img-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.post-img-slot { position: relative; aspect-ratio: 1; border: 1px dashed var(--c-line-strong); border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: var(--c-surface); cursor: pointer; }
.post-img-slot.main { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.post-img-slot img { width: 100%; height: 100%; object-fit: cover; }
.post-img-slot:not(.empty) { border-style: solid; cursor: default; }
.post-img-slot .plus { font-size: var(--fs-2xl); line-height: 1; color: var(--c-primary); }
.post-img-slot .img-tag { position: absolute; left: 8px; top: 8px; background: var(--c-primary); color: var(--c-surface); font-size: var(--fs-2xs); padding: 2px 8px; border-radius: 999px; }
.post-img-slot .img-del { position: absolute; right: 6px; top: 6px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--c-overlay-dark); color: var(--c-surface); }
/* 혜택 칩 입력 */
.chip-group h3 { margin-bottom: 2px; }
.edit-chips { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.edit-chip { display: flex; align-items: center; gap: 8px; border: 1px solid var(--c-line); border-radius: 12px; padding: 8px 10px; }
.edit-chip.main { border-color: var(--c-primary); background: var(--c-primary-soft); }
.edit-chip .star, .edit-chip .del { flex: none; min-width: 36px; min-height: 36px; border: 0; background: none; font-size: var(--fs-lg); color: var(--c-primary); }
.edit-chip .del { color: var(--c-faint); font-size: var(--fs-md); }
.edit-chip .payout, .bchip-line .payout { color: var(--c-sub); }
.chip-add { display: grid; grid-template-columns: 1fr 48px; gap: 6px; }
.chip-add input:first-child { grid-column: 1 / 2; }
.chip-add input:nth-child(2) { grid-column: 1 / 2; grid-row: 2; }
.chip-add .chip-plus { grid-column: 2; grid-row: 1 / 3; min-height: 48px; font-size: var(--fs-title); padding: 0; }
.promo-preview { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.promo-preview img, .promo-noimg { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; flex: none; background: var(--c-primary-soft);
  display: flex; align-items: center; justify-content: center; font-size: var(--fs-2xs); color: var(--c-sub); }
.bchip.main { border-color: var(--c-primary); background: var(--c-primary-soft); font-weight: 700; }
/* 고객 화면: 새 형식 혜택 묶음·글 사진 */
.benefit-group + .benefit-group { margin-top: 10px; }
.bchips.stack { flex-direction: column; align-items: flex-start; }
.bchip-line { display: flex; flex-direction: column; gap: 2px; }
.post-thumb { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--c-primary-soft); margin: 8px 0; }
.post-thumb img, .post-main-img img, .post-sub-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-main-img { width: 100%; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--c-primary-soft); margin-bottom: 10px; }
.post-sub-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0; }
.post-sub-img { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--c-primary-soft); }
/* 상담 데스크: 내 글 미리보기 */
.mypost-preview { display: flex; gap: 10px; margin: 8px 0; }
.mypost-img { width: 84px; height: 84px; flex: none; border-radius: 12px; overflow: hidden; background: var(--c-primary-soft); display: flex; align-items: center; justify-content: center; text-align: center; }
.mypost-img img { width: 100%; height: 100%; object-fit: cover; }
.mypost-preview .chip-status { font-size: var(--fs-2xs); color: var(--c-sub); display: block; }

/* W3-c 상담사 명함 (권장 규격: 폭 358, 여백 20, 모서리 16, 사진 88×112, 이름 24 굵게, 버튼 48, 딥그린 #163D35) */
.moha-card { --mc: var(--c-card-green); max-width: 358px; margin: 8px auto 12px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 16px; padding: 20px;
  box-shadow: 0 4px 18px var(--c-shadow-soft); }
.mc-top { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--c-line); margin-bottom: 16px; }
.mc-brand { color: var(--mc); font-size: var(--fs-title); }
.mc-person { display: flex; gap: 14px; }
.mc-photo { width: 88px; height: 112px; border-radius: 12px; object-fit: cover; flex: none; background: var(--c-line); }
.mc-photo.empty { display: flex; align-items: center; justify-content: center; font-size: var(--fs-hero); font-weight: 700; color: var(--mc); }
.mc-info { display: flex; flex-direction: column; gap: 3px; font-size: var(--fs-md); min-width: 0; }
.mc-name { font-size: var(--fs-2xl); font-weight: 700; margin: 0; }
.mc-name small { font-size: var(--fs-md); }
.mc-verify { color: var(--mc); font-size: var(--fs-xs); }
.mc-line1 { font-weight: 600; }
.mc-intro { background: var(--c-card-green-soft); border-radius: 10px; padding: 12px; margin: 14px 0 4px; font-size: var(--fs-md); line-height: 1.55; }
.mc-row { display: flex; gap: 8px; align-items: center; padding: 8px 0; font-size: var(--fs-md); }
.mc-ico { width: 20px; text-align: center; color: var(--mc); }
.mc-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 12px; }
.mc-cta .btn { min-height: 48px; }
.mc-cta .btn:not(.pale):first-child { background: var(--mc); border-color: var(--mc); }
.mc-tools { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--c-line); padding-top: 8px; }
.mc-tools .plain { min-height: 44px; font-size: var(--fs-xs); }
.mc-tag { text-align: center; font-size: var(--fs-xs); color: var(--c-sub); margin-top: 6px; }
.mc-qr-box { text-align: center; }
.mc-qr { display: block; margin: 8px auto 0; }
.check-row { display: flex; align-items: center; gap: 6px; }

/* 하단 메뉴는 모든 화면에 항상(2026-11-25). 화면 아래 고정 줄(상담사 상세 버튼·채팅 입력·글 저장)은 메뉴 바로 위에 붙인다 */
:root { --nav-h: 64px; }
.cta-bar, .composer, .save-bar { bottom: calc(var(--nav-h) + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px))); }
.cta-bar, .save-bar { padding-bottom: var(--sp-3); }
.composer { padding-bottom: var(--sp-2); }
body:has(#advisor.on) .toast,
body:has(#inquiry.on) .toast,
body:has(#benefitForm.on) .toast { bottom: calc(132px + var(--nav-h) + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px))); }
.confirm-sheet .cta-row.one .btn { flex: 1; min-height: 48px; }
button.logo { border: 0; background: none; padding: 0; color: inherit; font: inherit; cursor: pointer; }

.fact3 .fact-total { display: block; margin-top: 2px; color: var(--c-sub); }

/* W3-07 혜택 상세: 대표 혜택 카드, 칸별 혜택은 2열 */
.main-benefit { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 12px; background: var(--c-primary-soft); border: 1px solid var(--c-primary-line); margin-bottom: 12px; }
.main-benefit-item { font-size: var(--fs-xl); line-height: 28px; }
.benefit-group .bchips.stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
.benefit-group .bchip-line { border: 1px solid var(--c-line); border-radius: 10px; padding: 10px; min-height: 64px; }
.benefit-group .bchip-line .bchip { border: 0; background: none; padding: 0; white-space: normal; text-align: left; font-weight: 700; }
.benefit-group .bchip-line.main { border-color: var(--c-primary); background: var(--c-primary-soft); }
@media (max-width: 340px) { .benefit-group .bchips.stack { grid-template-columns: 1fr; } }
.card-main-benefit { font-size: var(--fs-lg); font-weight: 700; color: var(--c-primary); margin: 8px 0 2px; }
#advisor .cta-bar .cta-row { display: grid; grid-template-columns: auto minmax(0, 2fr) minmax(0, 3fr); gap: 8px; }   /* W3-08: 전화 40% · 무료 문의 60% */
.edit-chip .edit-btn { flex: none; min-height: 36px; border: 0; background: none; color: var(--c-primary); font-size: var(--fs-xs); padding: 0 6px; }
.edit-chip .star { font-size: var(--fs-xs); padding: 0 8px; border: 1px solid var(--c-primary-line); border-radius: 999px; min-width: 56px; }
.edit-chip .star.on { background: var(--c-primary); color: var(--c-surface); border-color: var(--c-primary); }
.report-links { display: flex; gap: 12px; justify-content: flex-end; margin-top: 6px; }
.mc-cta.one { grid-template-columns: 1fr; } .mc-nopost { margin: 10px 0 0; }

/* W5: 시험 계정 띠, 의견 보내기 */
/* 시범 운영 안내 창 (앱 처음 열 때 한 번, bh-native.js) */
.pilot-notice {
  width: min(340px, calc(100vw - 2 * var(--sp-4)));
  border: 0;
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  background: var(--c-surface);
  color: var(--c-ink);
}
.pilot-notice::backdrop {
  background: var(--c-backdrop);
}
.pilot-notice h2 {
  margin: 0 0 var(--sp-3);
  font-size: var(--fs-lg);
}
.pilot-notice p {
  margin: 0 0 var(--sp-5);
  color: var(--c-sub);
  font-size: var(--fs-md);
  line-height: 1.6;
}
.test-banner {
  margin: 0;
  padding: var(--sp-2) var(--sp-4);
  background: var(--c-warn-soft);
  border-bottom: 1px solid var(--c-warn-line);
  color: var(--c-warn-text);
  font-size: var(--fs-xs);
  font-weight: 600;
}
#bhFeedback textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 96px;
  margin-top: var(--sp-2);
  padding: var(--sp-3);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-md, 10px);
  font: inherit;
  resize: vertical;
}

.app-version { text-align: center; color: var(--c-sub); margin: var(--sp-3) 0; }

/* W5 화면 다듬기(자동 측정 결과): 글자 12px 이상, 누르는 곳 44px 안팎 */
.hot-tag, .type-ph span, .map-tag-count,
.site-thumb.is-example::after, .mini-thumb.is-example::after { font-size: var(--fs-2xs); }
.logo { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.tab { min-width: 44px; min-height: 44px; text-align: center; }
.career-sum summary { min-height: 44px; }
.page a[target="_blank"] { display: inline-block; padding-block: 11px; }

/* 2026-11-27 가독성: 정보 묶음을 구분하고 명함의 보기·저장을 나눈다. */
#site :is(#overview, #schedule, #notice),
#liveAdvisorBody .panel > .box {
  background: var(--c-surface);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  margin-block: var(--sp-4);
  box-shadow: none;
}
#liveAdvisorBody .panel > .box > :first-child,
#site :is(#overview, #schedule, #notice) > :first-child { margin-top: 0; }
#advBenefit > .main-benefit { margin-top: var(--sp-4); }
#advBenefit .benefit-group + .benefit-group {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-line-strong);
}
#advBenefit .benefit-head { font-size: var(--fs-md); margin-bottom: var(--sp-3); }
#advBenefit .bchip-line { background: var(--c-muted-surface); }
#advBenefit .bchip-line.main { background: var(--c-primary-soft); }
#advBenefit .bchip-line .payout { margin-top: var(--sp-1); line-height: 1.5; }
#advisor .cta-bar { background: var(--c-surface); border-top-color: var(--c-line-strong); }
#advisor .cta-bar .tiny { margin: 0 0 var(--sp-2); line-height: 1.5; }
#advisor .cta-bar .cta-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#advisor .cta-bar .cta-row .btn { padding-inline: var(--sp-2); min-width: 0; white-space: normal; }
#mohaCardBody { max-width: 390px; margin-inline: auto; }
#mohaCardBody .moha-card { max-width: none; margin-top: 0; }
#mohaCardBody .mc-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#mohaCardBody .mc-save { margin: var(--sp-3) 0 var(--sp-2); min-height: 52px; }
#mohaCardBody > .full { width: 100%; white-space: normal; }
#mohaCardBody > .tiny { margin-top: var(--sp-4); line-height: 1.7; }
:is(#site, #advisor, #mohaCard) :is(h1, h2, h3, .pre, .mc-row, .mc-name, .bchip) {
  word-break: keep-all;
  overflow-wrap: anywhere;
}
#liveAdvisorBody .pre { line-height: 1.75; }
#myInfo .menu-item + .menu-item { border-top: 1px solid var(--c-line); }
.app { min-height: 100dvh; }

/* ===== 2026-11-27 완성본 가독성 (대표 시범 사용 의견 + 나이 많은 사용자 기준) =====
   1) 글자 한 단계 크게(본문 16), 보조 글자 더 진하게  2) 위 머리줄·아래 메뉴는 불투명(뒤 글자 비침 없음)
   3) 바탕과 흰 카드의 대비를 높여 칸과 칸의 경계가 보이게  4) 누르는 곳 48px  5) 문단 사이 여백 */
:root {
  --fs-xs: 14px;
  --fs-md: 16px;
  --fs-lg: 18px;
  --fs-xl: 21px;
  --fs-2xl: 26px;
  --lh-body: 1.62;
  --c-sub: #4a5567;
  --c-line: #dde3eb;
  --c-line-strong: #cbd3df;
  --c-bg: #eef1f6;
  --c-page: #e3e8ef;
  --tap: 48px;
  --sh-card: 0 1px 3px #18253b14;
}
.top, .nav, .sticky-tabs { background: var(--c-surface); }
.nav { border-top: 1px solid var(--c-line-strong); box-shadow: 0 -2px 10px var(--c-shadow-soft); }
.nav button { font-size: var(--fs-xs); min-height: 56px; }
.sticky-tabs { border-bottom: 1px solid var(--c-line-strong); }
.tab { font-size: var(--fs-md); padding-block: 12px; min-height: var(--tap); }
.card, .box { border: 1px solid var(--c-line-strong); box-shadow: var(--sh-card); }
.card + .card, .box + .box { margin-top: var(--sp-3); }
.page h2, .page .sec-title { margin-top: var(--sp-5); }
.page p { line-height: var(--lh-body); }
.tiny, .source { font-size: var(--fs-xs); line-height: 1.6; color: var(--c-sub); }
.btn { min-height: var(--btn-h); font-size: var(--fs-md); }
.chip { min-height: 40px; font-size: var(--fs-md); }
/* 혜택 칩 아래 면책 문구가 칩에 붙지 않게 */
.offer > .tiny { margin-top: var(--sp-3); display: block; }
/* 긴 이름·주소: 단어 중간에서 끊지 않되 넘치면 줄바꿈 */
h1, h2, h3, .name, .title { word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
p, li, .pre { text-wrap: pretty; }
/* 폰 글씨 크기를 키워도 가로로 넘치지 않게 */
.page { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
/* 아래 메뉴가 56px 버튼 + 위아래 6px로 커져서, 위에 붙는 버튼 줄·입력 줄 높이 기준도 맞춘다 */
:root { --nav-h: 68px; }
/* 첫 화면 한 줄 약속 (2026-11-27 대표 결정): 모하가 왜 필요한지 3초 안에 */
.hero-line { margin: var(--sp-2) 0 0; font-size: var(--fs-2xl); font-weight: 800; line-height: 1.3; letter-spacing: -0.5px; color: var(--c-ink); }
.hero-line + .slogan { margin-top: var(--sp-1); font-size: var(--fs-md); font-weight: 600; color: var(--c-sub); }

/* ---------- 039 운영자 상담사 목록·운영자 메시지 ---------- */
.op-person { display: block; width: 100%; text-align: left; cursor: pointer; }
.op-person p { margin: 4px 0 0; }
#bhOpConsultantQ { width: 100%; margin: 8px 0 12px; }
.op-thread { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; max-height: 420px; overflow-y: auto; }
.op-msg { max-width: 88%; padding: 8px 12px; border-radius: 12px; background: var(--c-muted-surface); }
.op-msg p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.op-msg.mine { align-self: flex-end; background: var(--c-primary-soft); }
.op-msg.theirs { align-self: flex-start; }
.op-inbox textarea, #bhOpThread textarea { width: 100%; margin: 6px 0 8px; }

/* ---------- 2026-11-29 상담사 상세: 칸 나누기(혜택 / 현장 소개 / 상담사 소개) ---------- */
.icon.xs { width: 14px; height: 14px; }
.adv-sec { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 14px; padding: 16px; margin: 12px 0; }
.sec-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--c-line); }
.sec-head h3 { margin: 0; font-size: var(--fs-lg); }
.sec-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--c-primary-soft); color: var(--c-primary); flex: none; }
.sec-sub { margin-left: auto; font-size: var(--fs-xs); color: var(--c-sub); max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adv-title { font-size: var(--fs-lg); font-weight: 700; line-height: 1.45; margin: 0 0 8px; }
.adv-lead { font-weight: 700; margin: 0 0 8px; }
.adv-body { line-height: 1.7; margin: 0 0 12px; }
.adv-note { display: flex; gap: 6px; align-items: flex-start; margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--c-line); font-size: var(--fs-2xs); line-height: 1.5; color: var(--c-sub); }
.adv-note .icon { flex: none; margin-top: 2px; }
.adv-when { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); color: var(--c-sub); }
.main-benefit-label { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); font-weight: 700; color: var(--c-primary); }
.b-group + .b-group { margin-top: 14px; }
.b-group-head { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 700; color: var(--c-sub); margin-bottom: 6px; }
.b-count { margin-left: 2px; padding: 0 6px; border-radius: 10px; background: var(--c-muted-surface); font-size: var(--fs-2xs); }
.b-group.mgm .b-group-head { color: var(--c-mgm); }
.b-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--c-muted-surface); }
.b-row + .b-row { margin-top: 6px; }
.b-row.main { background: var(--c-primary-soft); border: 1px solid var(--c-primary-line); }
.b-ic { color: var(--c-primary); flex: none; margin-top: 2px; }
.b-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.b-txt b { font-size: var(--fs-md); overflow-wrap: anywhere; }
/* 목록 카드: 대표 혜택 띠 + 현장 소개 한 줄 */
.card-main-benefit { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 10px; background: var(--c-primary-soft); color: var(--c-primary); font-size: var(--fs-input); }
.card-main-benefit .cmb-label { font-size: var(--fs-2xs); font-weight: 700; padding: 1px 6px; border-radius: 6px; background: var(--c-surface); flex: none; }
.card-main-benefit b { overflow-wrap: anywhere; }
.post-title { display: flex; align-items: center; gap: 6px; color: var(--c-sub); font-weight: 600; font-size: var(--fs-md); }
.post-title .icon { flex: none; }

/* ---------- 지도 [내 위치] (2026-11-29) ---------- */
.map-me { width: 18px; height: 18px; border-radius: 50%; background: var(--c-primary); border: 3px solid var(--c-surface); box-shadow: 0 0 0 6px var(--c-primary-ring); }

/* ---------- 2026-11-29 UI 통일: 화면 제목 한 크기 (화면마다 22·23px로 따로 쓰던 것) ---------- */
.page h1 { font-size: var(--fs-title); }
/* 버튼: 아이콘+글자 가운데 정렬, 글자 링크도 손가락 크기(44px) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
button.link { min-height: 44px; display: inline-flex; align-items: center; gap: 4px; }
/* 외부 링크: 글자 기호(↗) 대신 Lucide external-link 아이콘 (ISC) */
a.ext::after { content: ''; display: inline-block; width: 14px; height: 14px; margin-left: 4px; vertical-align: -2px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E") center / contain no-repeat; }
.broker.verified, .mc-verify, .green, .bchip { display: inline-flex; align-items: center; gap: 4px; }

/* ===== 2026-11-29 대표 요청: 웹·앱 전부 흰 바탕 + 칸 구별 확실히 + 버튼 색 하나 =====
   방식(토스·당근식): 바탕은 흰색, 큰 덩어리 사이는 8px 회색 띠, 덩어리 안 카드는 옅은 테두리·둥근 모서리(그림자 없음).
   역할 색: 혜택 = 연한 파랑 칸, 안내 = 작은 회색 글씨, 신뢰 표시 = 초록 글자(버튼 아님). 버튼은 파랑 하나(꽉 찬 / 테두리).
   카카오·네이버·구글 로그인 버튼은 각 회사 규정 색을 그대로 둔다. */
:root {
  --c-bg: #ffffff;
  --c-page: #ffffff;
  --c-band: #f2f4f6;
  --c-line: #e5e8ec;
  --c-muted-surface: #f7f8fa;
  --sh-card: none;
}
body, .app { background: var(--c-surface); }
.app { box-shadow: none; }
/* 카드(덩어리 안 칸): 흰 바탕 + 테두리 + 16px 모서리, 그림자 없음 */
.box, .advisor, .card, .adv-sec, .menu-list, .tile, .sheet, .op-person { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 16px; box-shadow: none; }
.advisor { padding: 16px; }
/* 큰 덩어리 사이: 화면 끝까지 닿는 8px 회색 띠 (현장 화면의 상담사·현장 정보·청약 일정·공고) */
#site .panel { border-top: 8px solid var(--c-band); margin: 0 calc(-1 * var(--sp-4)); padding: var(--sp-4); }
#site .panel:first-of-type { border-top: 0; }
.menu-group { margin-top: 24px; padding-top: 16px; border-top: 8px solid var(--c-band); margin-inline: calc(-1 * var(--sp-4)); padding-inline: var(--sp-4); }
/* 혜택은 혜택끼리: 연한 파랑 칸으로 다른 칸과 구별 */
.offer, .b-group { background: var(--c-primary-soft); border: 1px solid var(--c-primary-line); border-radius: 14px; padding: 12px; }
.b-row { background: var(--c-surface); }
.b-row.main { background: var(--c-surface); border: 1.5px solid var(--c-primary); }
.card-main-benefit { border: 1px solid var(--c-primary-line); }
.b-group.mgm { background: var(--c-warn-soft); border-color: var(--c-warn-line); }
/* 상담사 상세 칸 머리글 */
.adv-sec { padding: 18px 16px; }
/* 버튼 색 하나: 주 버튼 = 꽉 찬 파랑, 보조 버튼 = 흰 바탕 + 파랑 테두리·글자 */
.btn { background: var(--c-primary); color: var(--c-surface); border: 1px solid var(--c-primary); border-radius: 12px; font-weight: 700; }
.btn.pale, .btn.plain { background: var(--c-surface); color: var(--c-primary); border: 1px solid var(--c-primary); }
.btn.danger { background: var(--c-surface); color: var(--c-danger); border: 1px solid var(--c-danger-line); }
.btn.kakao, .btn.naver, .btn.google { border-color: transparent; }
.chip.on, .tab.sel { color: var(--c-primary); }
/* 상담사 명함: 브랜드 색도 파랑으로 통일, 정보는 [아이콘 · 항목 · 내용] 줄 */
.moha-card { --mc: var(--c-primary); box-shadow: none; border: 1.5px solid var(--c-primary-line); }
.mc-top { border-bottom: 1px solid var(--c-line); }
.mc-intro { background: var(--c-primary-soft); border-left: 3px solid var(--c-primary); border-radius: 8px; }
.mc-rows { margin: 12px 0 4px; padding: 4px 0; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.mc-row { display: grid; grid-template-columns: 76px 1fr; gap: 8px; align-items: start; padding: 9px 0; margin: 0; }
.mc-row + .mc-row { border-top: 1px dashed var(--c-line); }
.mc-row dt { display: inline-flex; align-items: center; gap: 5px; color: var(--c-sub); font-size: var(--fs-xs); font-weight: 600; }
.mc-row dt .icon { color: var(--c-primary); }
.mc-row dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
/* 2026-11-29: 글이 없어 [전화 상담](연한 버튼) 하나만 있을 때 파랑으로 칠해 글자가 안 보이던 문제 → 연한 버튼은 제외 */
.mc-cta .btn:not(.pale):first-child { background: var(--c-primary); border-color: var(--c-primary); }

/* UI 2차 (2026-11-29): HTML 안 직접 스타일을 옮긴 공통 클래스 */
.m-0 { margin: 0; }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.t-center { text-align: center; }
.avatar.avatar-lg { width: 76px; height: 76px; border-radius: 50%; font-size: 26px; }
.page .profile-name, .profile-name { font-size: var(--fs-xl); margin: 0 0 5px; }
.saved .eyebrow { color: var(--c-on-dark-accent); }

/* 2026-11-29 나의 모하 상담사 칸 (상담 데스크 합침) */
#meDesk { display: grid; gap: var(--sp-3); margin-bottom: var(--sp-3); }
#meDesk.hide { display: none; }
#meDesk .desk-card .cta-row { margin-top: var(--sp-3); }
#meDesk .desk-card .btn.plain { margin-top: var(--sp-1); }
#mohaCardBody .mc-mine { margin: var(--sp-2) 0; }

/* 2026-11-29 현장 수정 요청: 고른 사진 미리보기 · 운영자 확인 화면 사진 */
.file-preview { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-2); }
.file-preview:empty { display: none; }
.file-preview img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--c-line); }
.edit-file { display: flex; flex-direction: column; gap: 2px; }
.edit-file .op-photo { margin: 2px 0; border-radius: var(--r-sm); }
.op-photo-btn { padding: 0; min-height: 0; background: none; border: 0; }

/* 2026-11-29 현장 상담사 카드: 프로필 줄 · 대표 혜택 작게 · 부가 혜택 작은 칩 · 소개 2줄 미리보기 */
.advisor .pc-site { color: var(--c-sub); }
.advisor .pc-name b { font-size: var(--fs-lg); }
.advisor .pc-title { font-size: var(--fs-xs); color: var(--c-sub); font-weight: 600; }
.advisor .card-main-benefit { font-size: var(--fs-md); padding: 8px 10px; margin: 8px 0 4px; }
.advisor .post-title { font-size: var(--fs-xs); margin-top: var(--sp-2); }
.post-brief { margin: 2px 0 var(--sp-1); }
.post-brief-text { margin: 0; font-size: var(--fs-xs); color: var(--c-sub); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.post-brief .more-link { min-height: 32px; font-size: var(--fs-xs); padding: 0; }
.benefits.compact .bchips { gap: 6px; }
.benefits.compact .bchip, .benefits.compact .bchip-more { font-size: var(--fs-xs); font-weight: 600; padding: 3px 8px; border-width: 1px; border-color: var(--c-primary-line); gap: 4px; }
.benefits.compact .bchip span { max-width: 11em; }
.benefits.compact .bchip .icon { width: 13px; height: 13px; }
.benefits.compact .chip-toggle { min-height: 36px; font-size: var(--fs-xs); }

/* 2026-11-29 대표 지적: 홈이 빈 공간이 많고 덩어리 구분이 약함 → 위쪽을 줄이고, 덩어리 사이에 8px 회색 띠(현장 화면과 같은 규칙) */
#home .hero-line { font-size: var(--fs-xl); margin-top: var(--sp-1); }
#home .hero-line + .slogan { margin: 2px 0 var(--sp-3); font-size: var(--fs-xs); }
#home .home-search { min-height: 46px; margin-bottom: 0; background: var(--c-muted-surface); }
#home > .head, #homeFeed > .head, #upcomingWrap, #tradesWrap { border-top: 8px solid var(--c-band); margin: var(--sp-3) calc(-1 * var(--sp-4)) 0; padding: var(--sp-4) var(--sp-4) 0; }
#home > .head, #homeFeed > .head { margin-bottom: 10px; }
#upcomingWrap .head, #tradesWrap .head { margin-top: 0; }
#home .head h2 { font-size: var(--fs-lg); font-weight: 800; margin-top: 0; }
/* 현장 카드: 이름이 한 줄이면 두 줄 높이를 비워 두지 않음 */
.site-card .site-name { height: auto; max-height: calc(1.35em * 2); }
/* 청약 접수 임박 작은 카드: 폭·사진 높이 줄임 */
#upcomingStrip .mini-card, #tradesStrip .mini-card { width: 168px; padding: 10px; gap: 3px; }
#upcomingStrip .mini-thumb { margin: -10px -10px 4px; aspect-ratio: 16 / 9; }
#upcomingStrip .mini-card b { font-size: var(--fs-md); }
#upcomingStrip .mini-card .small { font-size: var(--fs-2xs); }

/* ===== 2026-11-30 전체 점검 반영 (가독성·누르기 쉬운 크기) ===== */
/* 점검 16번: 동의 줄 글자까지 눌리게, 줄 높이 48px */
.consent-row label { flex: 1; min-height: var(--tap); }
.consent-row input[type=checkbox], .check-row input[type=radio], .check-row input[type=checkbox] { width: 22px; height: 22px; flex: none; }
/* 가독성 1번: 12px 글자를 13px로(이름표·뱃지), 법적 고지 안내 줄은 14px */
:root { --fs-2xs: 13px; }
.adv-note { font-size: var(--fs-xs); }
/* 가독성 5번·점검 34번: 누르는 곳 최소 44px */
.more-link, .chip-toggle { min-height: 44px; display: inline-flex; align-items: center; padding-inline: 8px; }
.check-row { min-height: var(--tap); }
.check-row label { flex: 1; min-height: var(--tap); display: flex; align-items: center; }
/* 가독성 6번: 묶음 제목 줄 간격 */
.menu-group, #region h3 { line-height: 1.45; }

/* 2026-12-01 품질 점검 2-1: 홈 아래 묶음은 자료가 다 모일 때까지 골격만 보여 주고 한 번에 바꾼다(CLS 0.1 이하) */
#homeFeed.loading > :not(.feed-skel) { display: none; }
#homeFeed:not(.loading) > .feed-skel { display: none; }
.feed-skel { padding-top: var(--sp-3); }
/* 2026-12-01 품질 점검 2-5: 누르는 곳은 안드로이드 기준 48dp 이상 (WCAG 2.5.8 최소 24px보다 넉넉하게) */
:root { --tap: 48px; }
.chip, .pick, .region-btn, .tab, button.link, .more-link, .chip-toggle, .seg > button, .map-redo, .star, .logo, .mc-tools .plain, .map-locate,
.career-sum summary, .home-search { min-height: 48px; }
.iconbtn { width: 48px; height: 48px; }
/* 지도 이름표는 모양은 그대로 두고 누르는 범위만 넓힌다 */
.map-tag::before { content: ''; position: absolute; inset: -6px; }
/* 체크박스는 24px, 옆 글자(라벨)를 눌러도 체크된다 */
.formbox input[type=checkbox], .consent-row input[type=checkbox], .check-row input[type=radio], .check-row input[type=checkbox] { width: 24px; height: 24px; min-height: 0; flex: none; padding: 0; }
.formbox input[type=checkbox] + label { display: inline-flex; align-items: center; min-height: 48px; margin: 0 0 0 6px; vertical-align: middle; width: calc(100% - 34px); }

/* ================= 지도 화면 (2026-12-01 한곳으로 모음) =================
   위에서부터: 거르기 칩 한 줄 → 현장 수 → 지도(아래 메뉴 위까지 꽉 참). 화면 전체는 스크롤되지 않는다.
   아래 메뉴(.nav) 높이 = 위아래 여백 12px + 버튼 56px + 선 1px = 69px (+ 휴대폰 아래 안전 영역) */
:root { --nav-h: 69px; --top-h: 56px; }
body.on-map .app { padding-bottom: calc(var(--nav-h) + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px))); }
#map.on { display: flex; flex-direction: column; padding: 0; overflow: hidden;
  height: calc(100dvh - var(--top-h) - var(--nav-h) - var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) - var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px))); }
#mapFilter { flex: none; display: flex; flex-wrap: nowrap; gap: var(--sp-2); overflow-x: auto; margin: 0; padding: var(--sp-2) var(--sp-4) 0; scrollbar-width: none; }
#mapFilter::-webkit-scrollbar { display: none; }
#mapFilter .chip { flex: none; }
#mapStatus { flex: none; margin: 0; padding: 6px var(--sp-4) var(--sp-2); font-size: var(--fs-xs); line-height: 1.45; color: var(--c-sub); }
.map-box { position: relative; flex: 1; min-height: 240px; border-top: 1px solid var(--c-line); }
#realMap { position: absolute; inset: 0; width: 100%; height: 100%; background: var(--c-fill); touch-action: pan-x pan-y; }
.map-redo { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 3; padding: 0 16px; border: 1px solid var(--c-line);
  border-radius: 999px; background: var(--c-surface); color: var(--c-ink); font-weight: 700; font-size: var(--fs-xs); box-shadow: 0 2px 8px var(--c-shadow-pin); cursor: pointer; white-space: nowrap; }
.map-locate { position: absolute; right: 12px; bottom: 16px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 0 16px;
  border: 1px solid var(--c-line); border-radius: 999px; background: var(--c-surface); color: var(--c-primary); font-weight: 700; font-size: var(--fs-xs); box-shadow: 0 2px 8px var(--c-shadow-pin); cursor: pointer; }
#serverSitesStatus:empty { display: none; }
#serverSitesStatus { flex: none; margin: 0; padding: 6px var(--sp-4); }
/* 2026-12-01 홈 청약 임박·실거래 빈 공간 줄이기: '전체 보기'는 누르는 곳 48px 그대로, 줄 높이만 제목에 맞춤 */
#upcomingWrap .head .link { margin: -12px 0; }
#upcomingStrip .mini-card .small { line-height: 1.4; }
/* 2026-12-01 홈 첫 화면을 "상담사 비교" 중심으로: 제목 아래 한 줄 설명, 브랜드 문구는 작게 */
#home .hero-sub { margin: 6px 0 0; font-size: var(--fs-md); line-height: 1.45; color: var(--c-ink); font-weight: 600; }
#home .hero-sub + .slogan { margin: 2px 0 var(--sp-3); font-size: var(--fs-xs); font-weight: 600; color: var(--c-sub); }
#compareEmpty { margin: 0 0 var(--sp-2); }
#compareEmpty .btn { margin-top: var(--sp-2); }
/* 2026-12-01 상담사 시작 단계 안내(튜토리얼) */
.quest { border-color: var(--c-primary); }
.quest-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.quest-count { font-size: var(--fs-xs); font-weight: 700; color: var(--c-primary); }
.quest-bar { height: 8px; border-radius: 999px; background: var(--c-band); margin: 8px 0 10px; overflow: hidden; }
.quest-bar span { display: block; height: 100%; background: var(--c-primary); border-radius: inherit; }
.quest-steps { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.quest-steps li { display: flex; align-items: center; gap: 8px; font-size: var(--fs-md); color: var(--c-sub); }
.quest-steps li.now { color: var(--c-ink); font-weight: 700; }
.quest-steps li.done { color: var(--c-sub); text-decoration: line-through; }
.quest-no { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: var(--fs-2xs); font-weight: 800; border: 1.5px solid var(--c-line); background: var(--c-surface); }
.quest-steps li.now .quest-no { border-color: var(--c-primary); background: var(--c-primary); color: #fff; }
.quest-steps li.done .quest-no { border-color: var(--c-primary); color: var(--c-primary); }
.quest-next { margin: 0 0 10px; font-size: var(--fs-md); }
.quest.done { background: var(--c-band); }
/* 홈의 상담사 시작 안내: 한 줄(누르면 다음 단계로) */
.quest-mini { display: flex; align-items: center; gap: 10px; width: 100%; min-height: var(--tap, 48px); margin: 0 0 var(--sp-3); padding: 8px 14px; border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-surface); color: var(--c-ink); text-align: left; font-size: var(--fs-md); }
.quest-mini .grow { flex: 1; min-width: 0; }
.quest-mini .quest-go { font-size: 22px; color: var(--c-sub); }

/* ===== 2026-12-01 상담사 화면 정리 (대표 폰 확인 의견) ===== */
/* 현장 화면 상담사 카드: 혜택 한 묶음(대표+나머지) / 현장 소개는 점선 아래 따로 */
.advisor .pc-benefits { margin: 10px 0 4px; padding: 10px; border-radius: 12px; background: var(--c-primary-soft); border: 1px solid var(--c-primary-line); }
.advisor .pc-benefits .card-main-benefit { margin: 0 0 6px; background: var(--c-surface); }
.advisor .pc-benefits .benefits { margin: 0; }
.advisor .pc-benefits .bchips { margin-top: 0; }
.advisor .pc-intro { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--c-line); }
.advisor .pc-intro .post-title { margin-top: 0; }
/* 상담사 상세: 명함 칸에 직책·팀·한 줄 소개·경력 */
#profileMeta { color: var(--c-sub); margin: 2px 0 4px; }
.profile-extra:empty { display: none; }
.profile-extra { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--c-line); display: grid; gap: 6px; }
.profile-extra .adv-lead { margin: 0; }
/* 혜택 칸 높이 줄이기 */
#advisor .b-group { padding: 10px; }
#advisor .b-row { padding: 8px 10px; gap: 8px; }
#advisor .b-row + .b-row { margin-top: 4px; }
#advisor .b-group + .b-group { margin-top: 10px; }
#advisor .adv-sec { padding: 14px; margin: 10px 0; }
/* 현장 소개: 제목 → 메인 사진 → 글 */
#advisor .post-main-img { margin: 8px 0 10px; }
/* 사진 눌러 크게 보기 */
.img-zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.img-zoom img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .92); display: flex; flex-direction: column; }
.lightbox-frame { flex: 1; overflow: auto; display: grid; place-items: center; -webkit-overflow-scrolling: touch; }
.lightbox-frame img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; }
.lightbox-frame img.zoomed { max-width: none; max-height: none; width: 200%; cursor: zoom-out; }
.lightbox-close { position: absolute; top: calc(8px + env(safe-area-inset-top, 0px)); right: 8px; z-index: 1; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 22px; }
.lightbox-tip { margin: 0; padding: 10px 16px calc(14px + env(safe-area-inset-bottom, 0px)); color: #ddd; font-size: var(--fs-xs); text-align: center; }
/* 아래 버튼 줄: 폰에서도 한 줄(명함 보기가 두 줄로 꺾이지 않게) */
#advisor .cta-bar .cta-row .btn { white-space: nowrap; gap: 4px; font-size: var(--fs-md); padding-inline: 6px; }
#advisor .cta-bar .cta-row .btn .icon { flex: none; }
/* 문의 화면: 기능 줄(더보기 없이) */
.chat-actions { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 8px 0 2px; }
.chat-actions .chip { flex: none; min-height: 40px; padding: 0 12px; font-size: var(--fs-xs); }
.chat-actions .chip.danger-text:first-of-type { margin-left: auto; }
/* 저장된 명함: 얼굴 사진 */
.saved-person { display: flex; align-items: center; gap: 12px; margin: 6px 0 4px; }
.saved-person h2 { margin: 0; }
.saved-face { flex: none; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: rgba(255, 255, 255, .18); color: #fff; font-size: 26px; font-weight: 800; }
.saved-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 혜택 글 사진 맞추기 창 */
.crop-sheet { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .55); display: flex; align-items: flex-end; justify-content: center; }
.crop-box { width: min(100%, var(--app-w, 480px)); max-height: 100%; overflow: auto; background: var(--c-surface); border-radius: 18px 18px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
.crop-box h2 { margin: 0 0 4px; font-size: var(--fs-lg); }
.crop-ratios { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 10px 0; }
.crop-ratios .chip { flex: none; }
.crop-frame { display: grid; place-items: center; background: #111; border-radius: 12px; padding: 8px 0; }
.crop-view { display: block; touch-action: none; cursor: grab; border-radius: 4px; outline: 2px solid rgba(255, 255, 255, .7); }
.crop-zoom { display: flex; align-items: center; gap: 12px; margin: 12px 0; }
.crop-zoom input { flex: 1; min-height: 40px; }
.crop-box .cta-row { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
/* 045 전화번호: [전화하기]가 없으면 아래 버튼 2개, 채팅 속 번호는 눌러서 전화, 노출 번호 칸 */
#advisor .cta-bar .cta-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tel-link { display: inline; min-height: 0; padding: 0; font-weight: 700; text-decoration: underline; }
.phone-num { display: grid; gap: 6px; margin-top: 8px; }
.phone-num input { min-height: 48px; }

/* ===== 2026-12-02 상담사 카드 간결하게 (현장 카드처럼): 사진 | 상담사·한 줄 소개·한 줄 혜택 ===== */
.cpc { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px; margin: 0 0 10px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 16px; text-align: left; }
.cpc.tap { cursor: pointer; }
.cpc.tap:active { background: var(--c-muted-surface, #f6f8fc); }
.cpc-img { width: 96px; height: 96px; border-radius: 12px; overflow: hidden; background: var(--c-primary-soft); display: grid; place-items: center; color: var(--c-primary); }
.cpc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cpc-body { min-width: 0; display: grid; gap: 4px; }
.cpc-who { display: flex; align-items: center; gap: 6px; min-width: 0; }
.cpc-who .avatar { width: 28px; height: 28px; flex: none; font-size: 13px; }
.cpc-who b { font-size: var(--fs-md); min-width: 0; }
.cpc-title { flex: none; font-size: var(--fs-xs); color: var(--c-sub); }
.verify.sm { flex: none; margin-left: auto; font-size: var(--fs-2xs); padding: 1px 6px; }
.cpc-line { margin: 0; font-size: var(--fs-md); color: var(--c-ink); line-height: 1.4; }
.cpc-line.two { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cpc-benefit { margin: 0; display: flex; align-items: center; gap: 4px; font-size: var(--fs-xs); color: var(--c-primary); font-weight: 600; min-width: 0; }
.cpc-benefit > span:first-of-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cpc-benefit .icon { flex: none; }
.cpc-benefit.none { color: var(--c-sub); font-weight: 400; }
.cpc-more { flex: none; color: var(--c-sub); font-weight: 400; }
.cpc-meta { color: var(--c-sub); }
.one { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mypost-preview { display: grid; gap: 8px; }
.mypost-preview .cpc { margin: 0; }
.chip-preview .cpc { margin: 8px 0 4px; }
/* 상세: 링크 줄·유튜브 */
.link-row { display: grid; gap: 6px; }
.link-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.link-chip { min-height: 40px; padding: 0 12px; font-size: var(--fs-xs); text-decoration: none; display: inline-flex; align-items: center; }
.yt-box { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.yt-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* 상세 현장 소개: 메인 사진은 원래 비율로(아래 빈 공간 없음), 너무 길면 520px에서 자름 */
#advisor .post-main-img { aspect-ratio: auto; height: auto; }
#advisor .post-main-img .img-zoom, #advisor .post-main-img img { height: auto; max-height: 520px; width: 100%; object-fit: cover; }
/* 명함 화면: 보내기 방법 한 줄 */
.mc-share { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 8px 0; }
.mc-share .btn { padding-inline: 6px; font-size: var(--fs-xs); white-space: nowrap; }
.cpc-foot { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cpc-foot .cpc-meta { flex: 1; min-width: 0; }
.cpc-ask { flex: none; min-height: 40px; padding: 0 12px; font-size: var(--fs-xs); gap: 4px; }
/* 2026-12-02 상담사 상세: 사진 옆 빈 곳까지 쓰는 명함 칸, 혜택 작은 칩, 소개·혜택·후기를 한 화면에 이어서(버튼 = 그 칸으로 이동) */
#advisor > .box .person { align-items: flex-start; gap: 12px; }
#advisor .adv-who { flex: 1; min-width: 0; }
#advisor .adv-who .profile-name { margin: 0 0 2px; }
#advisor .adv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
#advisor .adv-meta .verify.sm { margin-left: 0; }
#advisor .adv-meta #profileMeta:empty { display: none; }
#advisor .adv-who .adv-lead { margin: 6px 0 2px; font-size: var(--fs-sm); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
#advisor .adv-who .adv-lead:empty { display: none; }
#advisor .profile-extra { margin-top: 8px; padding-top: 8px; gap: 8px; }
.adv-bchips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.adv-bchip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 3px 8px; border-radius: 6px; background: var(--c-fill); color: var(--c-ink);
  font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adv-bchip.main { background: var(--c-primary-soft); color: var(--c-primary-deep); }
.adv-bmore { font-size: var(--fs-xs); color: var(--c-sub); }
.adv-bgo { margin-left: auto; min-height: 32px; font-size: var(--fs-xs); font-weight: 700; color: var(--c-primary); }
#advisor .panel { display: block; scroll-margin-top: calc(108px + var(--safe-area-inset-top, env(safe-area-inset-top, 0px))); }
#advisor .panel + .panel { margin-top: 12px; }
#advisor .adv-anchors .tab { min-height: 44px; }
/* 2026-12-02 지도: 상담사 있는 현장 = 상담사 수 숫자, 지금 보이는 지역의 상담사 많은 1~5등은 등수마다 다른 효과 */
.map-tag-top { display: inline-flex; align-items: center; gap: 4px; }
.map-tag-num { font-size: var(--fs-2xs); font-weight: 800; color: var(--c-primary-deep); }
.map-rank { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 18px; padding: 0 5px; border-radius: 999px;
  font-size: 11px; font-weight: 800; line-height: 1; background: var(--c-primary); color: #fff; }
.map-tag.rank { box-shadow: 0 2px 8px var(--c-shadow-pin); }
/* 1위: 금색 + 크게 + 퍼지는 테두리 */
.map-tag.rank-1 { transform: scale(1.18); transform-origin: 50% 100%; border-color: #c99700; background: #fff8db; }
.map-tag.rank-1 .map-rank { background: #f2b600; color: #3d2c00; }
.map-tag.rank-1::after { content: ''; display: block; position: absolute; inset: -4px; border: 2px solid #f2b600; border-radius: inherit; background: none;
  width: auto; height: auto; margin: 0; transform: none; animation: mapPulse 1.8s ease-out infinite; pointer-events: none; }
@keyframes mapPulse { 0% { opacity: .9; inset: -2px; } 100% { opacity: 0; inset: -10px; } }
/* 2위: 은색 + 조금 크게 */
.map-tag.rank-2 { transform: scale(1.12); transform-origin: 50% 100%; border-color: #8a94a6; background: #f3f5f8; }
.map-tag.rank-2 .map-rank { background: #6b7587; color: #fff; }
/* 3위: 동색 */
.map-tag.rank-3 { transform: scale(1.07); transform-origin: 50% 100%; border-color: #b0703a; background: #fbf1e8; }
.map-tag.rank-3 .map-rank { background: #a2602c; color: #fff; }
/* 4·5위: 파랑 강조 */
.map-tag.rank-4, .map-tag.rank-5 { border-color: var(--c-primary); background: var(--c-primary-soft); }
.map-tag.rank-5 .map-rank { background: var(--c-primary-soft); color: var(--c-primary-deep); border: 1px solid var(--c-primary); }
@media (prefers-reduced-motion: reduce) { .map-tag.rank-1::after { animation: none; inset: -3px; } }
.map-tag.rank.sel, .map-tag.rank:focus-visible { background: var(--c-ink); color: var(--c-surface); border-color: var(--c-ink); }
/* 혜택 작은 칩은 한 줄(옆으로 밀어 보기) + 오른쪽 [혜택 상세보기] */
.adv-bchips { flex-wrap: nowrap; }
.adv-bscroll { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.adv-bscroll::-webkit-scrollbar { display: none; }
.adv-bscroll .adv-bchip { flex: none; max-width: 70%; }
.adv-bgo { flex: none; margin-left: 0; white-space: nowrap; }
.profile-extra > * { min-width: 0; }
/* 2026-12-02 상담사 카드 하나로: 긴 소개는 3줄 + [소개 더 보기], 빈 공간 줄이기 */
.adv-intro-box { display: grid; gap: 2px; }
.adv-intro { margin: 0; font-size: var(--fs-sm); line-height: 1.55; color: var(--c-ink); }
.adv-intro.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.adv-more { justify-self: start; min-height: 32px; padding: 0; font-size: var(--fs-xs); font-weight: 700; color: var(--c-primary); }
#advisor > .box { padding-top: 12px; padding-bottom: 12px; }
#advisor .profile-extra .career-sum summary { min-height: 32px; padding: 4px 0; }
#advisor .profile-extra .link-row { display: grid; gap: 4px; }
#advisor .profile-extra .link-row > .tiny { margin: 0; }
#advisor .adv-sec .adv-bchips { margin: 2px 0 8px; }
.post-order { margin: 0 0 8px; color: var(--c-sub); }

/* 2026-12-02: 현장 이름 옆 활동 상담사 수 배지 (위 세 칸 대신) */
.site-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.site-cons { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 700; background: var(--c-surface); color: var(--c-sub); border: 1px solid var(--c-line); white-space: nowrap; }
.site-cons.on { background: var(--c-success-bg, #e9f7ef); color: var(--c-success); border-color: transparent; cursor: pointer; }
.site-cons.on:focus-visible { outline: 3px solid var(--c-focus, #e58924); outline-offset: 2px; }

/* 2026-12-02: 현장 머리를 낮게 — 열면 바로 상담사 카드가 보이게 */
.site-hero-wrap { position: relative; margin: calc(-1 * var(--sp-4)) calc(-1 * var(--sp-4)) var(--sp-3); }
.site-hero-wrap .site-hero { margin: 0; aspect-ratio: 16 / 9; max-height: 210px; }
.site-hero-wrap .hero-note { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 4px 10px; background: var(--c-overlay-dark, rgba(0,0,0,.55)); color: var(--c-surface); font-size: var(--fs-2xs); line-height: 1.4; }
#site .site-head { align-items: flex-start; }
#site .site-head-main { flex: 1 1 auto; min-width: 0; }
#site .site-head-main h1 { overflow-wrap: anywhere; word-break: keep-all; min-width: 0; }
#site .site-head-side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
#site .site-head-side .notice-tag { margin-top: 0; white-space: nowrap; }

/* 2026-12-02 대표 요청: 메뉴와 상담사 카드 사이 공간 줄이기 */
#site #sitePeople.panel { padding-top: 4px; margin-top: 0; }
#sitePeople .post-order { margin: 6px 0 6px; }

/* 048 운영 현황판 */
.op-stats { margin-bottom: var(--sp-3); }
.op-stats .conv-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.op-stat-group { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 10px; }
.op-stat-group h4 { grid-column: 1 / -1; margin: 4px 0 0; font-size: var(--fs-sm); color: var(--c-sub); }
.op-stat { border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 10px; display: grid; gap: 2px; background: var(--c-surface); }
.op-stat b { font-size: var(--fs-lg); }
.op-stat span { font-size: var(--fs-xs); }
.op-stat small { color: var(--c-sub); }
.op-stat.hot { border-color: var(--c-warn, #e58924); }
.op-stat.hot b { color: var(--c-warn-ink, #b45f06); }

.op-stat.go { cursor: pointer; text-align: left; font: inherit; color: inherit; }
.op-stat.go:hover { border-color: var(--c-primary); }
.op-stat.go:focus-visible { outline: 3px solid var(--c-focus, #e58924); outline-offset: 2px; }
.op-post .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* 2026-12-02 운영자 화면 세 칸(할 일·현황·관리) */
.op-tabs { margin: 8px 0 12px; }
.op-manage { display: grid; gap: 6px; margin-bottom: 12px; }
.op-manage-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; }
.op-manage-item > span:first-child { display: grid; gap: 2px; }
.op-manage-item small { color: var(--c-sub); }
.op-manage-item[aria-current="true"] { border-color: var(--c-primary); background: var(--c-primary-soft); }
#bhOpAllTiles { margin: 4px 0 10px; }

/* 인앱 업데이트 안내(앱에서만) — 하단 메뉴 위 */
.app-update-bar { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 12px; border-radius: var(--r-md); background: var(--c-surface); border: 1px solid var(--c-line-strong); box-shadow: 0 6px 24px rgba(0,0,0,.15); max-width: 520px; margin: 0 auto; }
.app-update-bar span { flex: 1 1 100%; font-size: var(--fs-sm); }
.app-update-bar .btn { flex: 1 1 0; min-height: 44px; }

/* 채팅 목록: 상담사가 받은 문의 표시 */
.recv-badge { font-size: var(--fs-2xs); padding: 1px 8px; background: var(--c-primary-soft); color: var(--c-primary); border-radius: 999px; }

/* 하단 [채팅] 안 읽은 수 */
.nav button { position: relative; }
.nav-badge { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--c-danger, #d93025); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }

/* ===== 2026-12-03 대표 요청: 색은 강조할 곳에만, 지역 선택 부각, 소개 칸 넘겨 보기, 광고·제휴 부각 =====
   원칙: 그라데이션·그림자·이모지 없이 평평한 옅은 바탕 + 칸마다 강조색 하나. 강조색은 기존 역할 색(파랑·초록·황토)만 쓴다. */
/* 지역 버튼: 위치 아이콘이 있는 파란 알약. 보이는 높이 40px, 누르는 범위는 48px */
.region-btn { position: relative; flex: none; gap: 4px; min-height: 40px; padding: 0 12px 0 10px; border-radius: 999px; background: var(--c-primary-soft);
  border: 1px solid var(--c-primary-line); color: var(--c-primary); font-size: var(--fs-md); font-weight: 800; max-width: 52vw; }
.region-btn::after { content: ''; position: absolute; inset: -4px; }
.region-btn #regionLabel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.region-btn .icon { flex: none; }
/* 홈 소개 칸 */
.hero-rail { margin: var(--sp-1) calc(-1 * var(--sp-4)) var(--sp-3); }
.hero-track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 var(--sp-4); scroll-padding: 0 var(--sp-4); }
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide { flex: 0 0 86%; scroll-snap-align: start; min-height: 148px; border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.hero-slide .hero-tag { font-size: var(--fs-xs); font-weight: 700; }
#home .hero-slide .hero-line { margin: 2px 0 0; font-size: var(--fs-xl); font-weight: 800; line-height: 1.32; letter-spacing: -0.4px; color: var(--c-ink); }
.hero-slide .hero-line em { font-style: normal; }
#home .hero-slide .hero-sub { margin: 2px 0 0; font-size: var(--fs-xs); font-weight: 600; color: var(--c-sub); }
.hero-go { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 2px; min-height: 40px; padding: 0 2px; border: 0; background: none;
  font-size: var(--fs-md); font-weight: 800; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.t-blue { background: var(--c-primary-soft); } .t-blue .hero-tag, .t-blue em, .t-blue .hero-go { color: var(--c-primary); }
.t-green { background: var(--c-success-soft); } .t-green .hero-tag, .t-green em, .t-green .hero-go { color: var(--c-success); }
.t-amber { background: var(--c-warn-soft); } .t-amber .hero-tag, .t-amber em, .t-amber .hero-go { color: var(--c-mgm); }
.t-ink { background: var(--c-ink); } #home .t-ink .hero-line, .t-ink .hero-go { color: #fff; } .t-ink .hero-tag { color: #c9d3e3; } .t-ink em { color: #ffd76a; }
.hero-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.hero-dots i { width: 6px; height: 6px; border-radius: 999px; background: var(--c-line-strong); transition: width .2s ease-out, background-color .2s ease-out; }
.hero-dots i.on { width: 18px; background: var(--c-primary); }
@media (prefers-reduced-motion: reduce) { .hero-dots i { transition: none; } }
/* 홈 맨 아래 광고·제휴 칸 (진한 남색 하나로 다른 칸과 구별) */
.ad-cta { display: flex; align-items: center; gap: 12px; margin: var(--sp-5) 0 var(--sp-2); padding: 16px; border-radius: 16px; background: var(--c-ink); color: #fff; }
.ad-cta > div { flex: 1; min-width: 0; }
.ad-cta b { font-size: var(--fs-lg); }
.ad-cta p { margin: 2px 0 0; font-size: var(--fs-xs); color: #c9d3e3; line-height: 1.45; }
.ad-cta .btn { flex: none; background: #fff; color: var(--c-ink); border-color: #fff; }
/* 나의 모하 광고·제휴 항목 */
.menu-item.accent span { color: var(--c-primary); font-weight: 800; }
/* 지역 고르기: 왼쪽 시·도 목록, 오른쪽 구·군 두 줄 격자. 각 칸이 따로 스크롤되고 화면 전체는 움직이지 않는다 */
#region.on { display: flex; flex-direction: column; padding-bottom: 0;
  height: calc(100dvh - var(--top-h) - var(--nav-h) - var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) - var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px))); }
#region h1 { margin-bottom: 2px; }
#region > .source { margin: 0 0 var(--sp-3); }
.region-pick { flex: 1; min-height: 0; display: grid; grid-template-columns: 104px 1fr; margin: 0 calc(-1 * var(--sp-4)); border-top: 1px solid var(--c-line); }
.region-pick > div { overflow-y: auto; overscroll-behavior: contain; }
#regionSido { background: var(--c-muted-surface); border-right: 1px solid var(--c-line); }
#regionSido .chip { display: flex; width: 100%; align-items: center; border: 0; border-radius: 0; background: none; padding: 0 16px; min-height: 48px; font-weight: 600; transform: none; }
#regionSido .chip.on { background: var(--c-surface); color: var(--c-primary); font-weight: 800; box-shadow: inset 3px 0 0 var(--c-primary); }
#regionGu { padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
#regionGu .chip { width: 100%; justify-content: center; text-align: center; }
#regionGu .source { grid-column: 1 / -1; }
/* ===== 2026-12-03 전체 화면 점검: AI 티 줄이기 + 눈에 들어올 곳만 색 =====
   1) 사진 없는 칸의 파란 그라데이션 → 평평한 회색 바탕(그라데이션은 꾸민 티가 남)
   2) 돈(현금 혜택)은 황토색 굵게 한 곳만  3) 나의 모하 숫자는 파랑  4) 지도 1위 표시의 깜빡이는 테두리 없앰(색·크기로 충분) */
.site-hero, .site-thumb, .mini-thumb { background: var(--c-muted-surface); color: #8a96a8; }
.status .cash { color: var(--c-mgm); font-weight: 800; }
.tile-num { color: var(--c-primary); font-weight: 800; }
.map-tag.rank-1::after { animation: none; inset: -3px; }

/* 050 (2026-12-04) 자동 승인 뒤 운영자 확인 전: 회색 '확인 중' */
.verify.wait { color: var(--c-sub); background: var(--c-muted-surface); }
.mc-verify.wait { color: var(--c-sub); }

/* 2026-12-05 대표 결정(집중검토 8번): 홈 소개 칸을 낮춰 현장 목록을 위로(176→152px), 소개 칸 버튼 44px */
.hero-slide { min-height: 0; padding: 12px 16px 10px; gap: 2px; border-radius: 16px; }
#home .hero-slide .hero-line { font-size: var(--fs-lg); line-height: 1.36; }
.hero-go { min-height: 44px; margin: auto 0 -6px; }
.hero-dots { margin-top: 8px; }

/* 2026-12-05 집중검토 7번: 작은 누르는 곳 키우기(카드 안 작은 버튼은 44px, 겉모양은 그대로 두고 누르는 범위만 넓힌 곳도 있음) */
.cpc-ask, .link-chip, .chat-actions .chip, .region-btn, .toast-close, .benefits.compact .chip-toggle { min-height: 44px; }
.edit-chip .star, .edit-chip .del { min-width: 44px; min-height: 44px; }
.edit-chip .edit-btn { min-height: 44px; }
.site-cons.on { position: relative; }
.site-cons.on::after { content: ''; position: absolute; inset: -9px -6px; }   /* 배지는 작게, 누르는 범위는 48px 가까이 */
.adv-bgo, #upcomingBtn { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; }
.quest-mini .quest-go { width: 20px; height: 20px; }
.account-name > .tiny { flex: none; color: var(--c-sub); } .account-name b { flex: 1; min-width: 0; }

/* 2026-12-05 앱 시작 화면(앱 전용). 그림은 배경 그림이라 웹에서는 받지 않는다 */
.boot-splash { display: none; }
.is-app .boot-splash { display: flex; position: fixed; inset: 0; z-index: 9999; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: #f1f4f9; transition: opacity .25s ease-out; }
.is-app .boot-splash.out { opacity: 0; pointer-events: none; }
.boot-logo { width: 160px; height: 102px; background: url('boot-logo.webp') center / contain no-repeat; }
.boot-splash p { margin: 0; font-size: var(--fs-lg); font-weight: 700; color: var(--c-ink); letter-spacing: -0.2px; }
.boot-house { position: absolute; left: 0; right: 0; bottom: 9%; height: 120px; background: url('boot-house.webp') center bottom / auto 100% no-repeat; }
@media (prefers-reduced-motion: reduce) { .is-app .boot-splash { transition: none; } }
