/* ===============================
   DETAIL SHEET (Detail Card)
   - iOS / Material 스타일 모바일 앱 디자인
   - 카드 기반, 정보 위계 명확, 색상 최소화
   =============================== */

:root {
  --topbar-h: 0px;
  --ds-accent: #2563eb;
  --ds-accent-bg: #eff6ff;
  --ds-label: #777;
  --ds-value: #1a1a1a;
  --ds-border: #e5e7eb;
  --ds-bg-page: #f5f6f8;
  --ds-bg-card: #ffffff;
  --ds-radius: 12px;
  --ds-radius-sm: 10px;
  --ds-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

#detailSheet {
  position: fixed;
  left: 0;
  right: 0;
  top: calc(var(--topbar-h) + env(safe-area-inset-top));
  bottom: 0;
  width: auto;
  height: auto;
  z-index: 5000;
  background: var(--ds-bg-page);
  overflow: hidden;
}

/* 고객관리 연락이력 매물카드 클릭 시: 모바일에서 고객 패널(z-index:7000) 위에 표시 */
#detailSheet.detailSheet--above-customer {
  z-index: 7500;
}

.detailSheet__wrap {
  padding: 10px;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* PC 버전: 세부내역서 폭을 조금 넓게 */
@media (min-width: 901px) {
  #detailSheet.detailSheet--panel {
    /* 패널 모드에서만 적용 (지도 옆 패널) */
    max-width: 560px; /* 기본 카드보다 약간 넓게 */
  }
  .detailSheet__wrap {
    padding: 12px 14px 14px;
  }
}

/* PC 목록장부: 세부내역서 팝업 (별도 모달) */
.detailSheet-popup-wrap {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.detailSheet-popup-wrap.is-open {
  display: flex;
}

.detailSheet-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.detailSheet-popup-content {
  position: relative;
  width: 100%;
  max-width: 560px;
  height: 90vh;
  max-height: 90vh;
  background: var(--ds-bg-page, #f5f6f8);
  border-radius: var(--ds-radius, 12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#detailSheetPopupInner {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#detailSheet.detailSheet--popup {
  position: relative;
  top: auto;
  bottom: auto;
  left: auto;
  right: auto;
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  border-radius: inherit;
}

/* ----- 헤더 ----- */
.detailSheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 4px 14px;
  margin-bottom: 4px;
  position: relative;
}

.detailSheet__title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 700;
  font-size: 17px;
  color: var(--ds-value);
  pointer-events: none;
}

.detailSheet__back,
.detailSheet__close {
  border: 0;
  background: transparent;
  font-size: 22px;
  color: var(--ds-label);
  cursor: pointer;
  padding: 8px 12px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.detailSheet__back:hover,
.detailSheet__close:hover {
  color: var(--ds-value);
}

.detailSheet__headerActions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.detailSheet__fav {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: #d1d5db;
  padding: 4px;
}

.detailSheet__fav--on {
  color: #f59e0b;
}

.detailSheet__fav:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.detailSheet__buildingModeBtn {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.detailSheet__buildingModeBtn:hover {
  background: #dbeafe;
  color: #1d4ed8;
}

/* ----- 갤러리 (카드 안) ----- */
.detailSheet__gallery-wrap {
  position: relative;
}
.detailSheet__gallery-vt-link {
  display: inline-block;
  margin: 8px 14px 4px;
  padding: 6px 12px;
  background: #7c3aed;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
}
.detailSheet__gallery-vt-link:hover {
  background: #6d28d9;
  color: #fff;
}
.detailSheet__gallery-vt-link.hidden {
  display: none !important;
}
.detailSheet__gallery {
  margin: 0 -10px 10px -10px;
  background: var(--ds-bg-card);
  min-height: 0;
  border-radius: 0;
  box-shadow: var(--ds-shadow);
}

.detailSheet__gallery--empty {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f1f3;
  position: relative;
}

.detailSheet__gallery--empty::before {
  content: "360°, Photo, Image, Video, File";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 300;
  color: rgba(0, 0, 0, 0.12);
  letter-spacing: 0.08em;
  pointer-events: none;
}

.detailSheet__gallery-track {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.detailSheet__gallery-item {
  flex-shrink: 0;
  scroll-snap-align: start;
  cursor: pointer;
}

.detailSheet__gallery-thumb {
  width: 100px;
  height: 100px;
  border-radius: var(--ds-radius-sm);
  background-size: cover;
  background-position: center;
  background-color: var(--ds-border);
  position: relative;
  overflow: hidden;
}

.detailSheet__gallery-thumb-img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  display: block;
}

.detailSheet__gallery-item.is-360 .detailSheet__gallery-thumb {
  border: 2px solid var(--ds-accent);
}

/* 편집 모드: 360°는 갤러리에서 삭제/대표 설정 없음 — 썸네일 클릭 시 가상투어 뷰어로만 연결 */
.detailSheet__gallery-item--vt360 .detailSheet__gallery-thumb {
  cursor: pointer;
}

.detailSheet__gallery-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.detailSheet__gallery-delete:hover {
  background: rgba(185, 28, 28, 0.9);
}

.detailSheet__gallery-mainbadge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: #059669;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

.detailSheet__gallery-mainbtn {
  position: absolute;
  bottom: 6px;
  left: 6px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.detailSheet__gallery-mainbtn:hover {
  background: rgba(5, 150, 105, 0.9);
  border-color: transparent;
}

.detailSheet__gallery-item.is-main .detailSheet__gallery-thumb {
  box-shadow: 0 0 0 2px #059669;
}

.detailSheet__gallery-360badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: var(--ds-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 6px;
}

.detailSheet__gallery-upload {
  padding: 14px;
}

.detailSheet__gallery-upload-zone {
  border: 2px dashed var(--ds-border);
  border-radius: var(--ds-radius);
  padding: 20px;
  text-align: center;
  background: var(--ds-bg-page);
}

.detailSheet__gallery-upload-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.detailSheet__gallery-upload-btn {
  display: inline-block;
  padding: 10px 16px;
  background: var(--ds-accent);
  color: #fff;
  border: 0;
  border-radius: var(--ds-radius-sm);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.detailSheet__gallery-upload-btn:hover {
  filter: brightness(0.96);
}

.detailSheet__gallery-upload-btn--360 {
  background: #7c3aed;
}

.detailSheet__gallery-upload-btn--video {
  background: #059669;
}

.detailSheet__gallery-upload-btn--file {
  background: #6b7280;
}

.detailSheet__gallery-upload-hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ds-label);
}

/* 갤러리 모달 */
.detailSheet__gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.detailSheet__gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.detailSheet__gallery-modal-content {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 80vh;
  max-height: 500px;
  background: #000;
  border-radius: var(--ds-radius);
  overflow: hidden;
}

.detailSheet__gallery-modal-content--image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.detailSheet__gallery-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detailSheet__gallery-modal-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.detailSheet__gallery-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detailSheet__gallery-modal-nav[data-nav="prev"] { left: 10px; }
.detailSheet__gallery-modal-nav[data-nav="next"] { right: 10px; }

.detailSheet__gallery-modal-counter {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
}

.detailSheet__gallery-error {
  color: #666;
  padding: 24px;
  text-align: center;
  font-size: 14px;
}

/* 영상 썸네일 배지 */
.detailSheet__gallery-videobadge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detailSheet__gallery-item.is-video .detailSheet__gallery-thumb video {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

/* ----- 통합 뷰어 (Kuula 스타일 풀스크린) ----- */
.detailSheet__gallery-unified {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.detailSheet__gallery-unified--open {
  display: flex;
}

.detailSheet__gallery-unified-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
}

.detailSheet__gallery-unified-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 1; /* backdrop 위에 올라오도록 보장 */
  /* 뷰어 영역은 항상 터치·클릭 가능해야 함 */
  pointer-events: auto;
}

.detailSheet__gallery-unified-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detailSheet__gallery-unified-close:hover {
  background: rgba(0, 0, 0, 0.7);
}

.detailSheet__gallery-unified-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.detailSheet__gallery-unified-nav:hover {
  background: rgba(0, 0, 0, 0.7);
}

.detailSheet__gallery-unified-nav[data-nav="prev"] { left: 12px; }
.detailSheet__gallery-unified-nav[data-nav="next"] { right: 12px; }

.detailSheet__gallery-unified-counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 14px;
  z-index: 5;
}

.detailSheet__gallery-unified-body {
  width: 100%;
  height: 100%;
  position: relative;
}

.detailSheet__gallery-unified-slide {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  /* 기본적으로는 이벤트 차단, 활성 슬라이드에만 허용 */
  pointer-events: none;
}

.detailSheet__gallery-unified-slide.is-active {
  display: flex;
  pointer-events: auto;
}

.detailSheet__gallery-unified-zoomwrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
}

.detailSheet__gallery-unified-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: center center;
}

.detailSheet__gallery-unified-video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.detailSheet__gallery-unified-mainbadge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: #059669;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  z-index: 3;
}

.detailSheet__gallery-unified-slide--360 {
  width: 100%;
  height: 100%;
  /* 360° 뷰어 영역은 항상 직접 인터랙션 가능해야 함 */
  pointer-events: auto;
}

.detailSheet__gallery-unified-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.detailSheet__gallery-unified-pannellum {
  width: 100%;
  height: 100%;
  min-height: 300px;
  /* 360° 뷰어 내 모든 요소에 직접 인터랙션 허용 */
  pointer-events: auto;
  touch-action: auto;
}

.detailSheet__gallery-unified-pannellum .pnlm-container {
  width: 100% !important;
  height: 100% !important;
  pointer-events: auto;
  touch-action: auto;
}

/* 파일 타입: 썸네일 + 통합 뷰어 */
.detailSheet__gallery-thumb--file {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  background: var(--ds-bg-page);
  min-height: 100px;
}
.detailSheet__gallery-fileicon {
  font-size: 28px;
}
.detailSheet__gallery-filename {
  font-size: 11px;
  color: var(--ds-value);
  text-align: center;
  word-break: break-all;
  line-height: 1.2;
}

.detailSheet__gallery-unified-slide--file {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.detailSheet__gallery-unified-filelink {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 32px;
  background: var(--ds-accent-bg);
  border: 2px solid var(--ds-accent);
  border-radius: var(--ds-radius);
  color: var(--ds-accent);
  font-weight: 600;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.detailSheet__gallery-unified-filelink:hover {
  background: #dbeafe;
}
.detailSheet__gallery-unified-fileicon {
  font-size: 48px;
}
.detailSheet__gallery-unified-filename {
  font-size: 16px;
  color: var(--ds-value);
}
.detailSheet__gallery-unified-filehint {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.9;
}

/* ----- 읽기 전용: 단일 썸네일 + 개수 + 목록 팝업 ----- */
.detailSheet__gallery--compactRoot {
  padding: 12px 14px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.detailSheet__gallery-compact {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border-radius: var(--ds-radius-sm);
}

.detailSheet__gallery-compact .detailSheet__gallery-thumb {
  width: 100px;
  height: 100px;
  border-radius: var(--ds-radius-sm);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  position: relative;
}

.detailSheet__gallery-compact .detailSheet__gallery-thumb video {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.detailSheet__gallery-compact:active .detailSheet__gallery-thumb {
  opacity: 0.92;
}

.detailSheet__gallery-countbadge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: #1e40af;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.detailSheet__gallery-listmodal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.detailSheet__gallery-listmodal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.detailSheet__gallery-listmodal-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: min(70vh, 520px);
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  z-index: 1;
}

@media (min-width: 500px) {
  .detailSheet__gallery-listmodal {
    align-items: center;
  }

  .detailSheet__gallery-listmodal-panel {
    border-radius: 16px;
    max-height: min(80vh, 600px);
  }
}

.detailSheet__gallery-listmodal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.detailSheet__gallery-listmodal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ds-value);
}

.detailSheet__gallery-listmodal-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.detailSheet__gallery-listmodal-share {
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--ds-accent);
  border-radius: 8px;
  background: var(--ds-accent-bg);
  color: var(--ds-accent);
  cursor: pointer;
}

.detailSheet__gallery-listmodal-close {
  width: 36px;
  height: 36px;
  border: 0;
  background: #f3f4f6;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #374151;
}

.detailSheet__gallery-listmodal-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 12px 16px;
  flex: 1;
  min-height: 0;
}

.detailSheet__gallery-listmodal-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 8px;
  margin: 0 0 4px;
  border: 0;
  border-radius: 10px;
  background: #f9fafb;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.detailSheet__gallery-listmodal-row:active {
  background: #f3f4f6;
}

.detailSheet__gallery-listmodal-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  background: #e5e7eb;
}

.detailSheet__gallery-listmodal-thumb .detailSheet__gallery-thumb {
  width: 72px;
  height: 72px;
  min-height: 0;
  position: relative;
}

.detailSheet__gallery-listmodal-thumb .detailSheet__gallery-thumb video {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.detailSheet__gallery-listmodal-thumb .detailSheet__gallery-thumb--file {
  min-height: 0;
  height: 72px;
  padding: 6px;
  gap: 2px;
}

.detailSheet__gallery-listmodal-thumb .detailSheet__gallery-fileicon {
  font-size: 20px;
}

.detailSheet__gallery-listmodal-thumb .detailSheet__gallery-filename {
  font-size: 9px;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.detailSheet__gallery-listmodal-caption {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--ds-value);
  word-break: break-all;
}

.gallery-public-body {
  margin: 0;
  min-height: 100vh;
  background: #f0f1f3;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.gallery-public-inner {
  max-width: 520px;
  margin: 0 auto;
  padding: 16px;
}

.gallery-public-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #111827;
}

.gallery-public-error {
  padding: 24px;
  text-align: center;
  color: #6b7280;
}

/* ----- 레이어 (매물유형·거래유형 카드) ----- */
.detailSheet__layer {
  background: var(--ds-bg-card);
  border-radius: var(--ds-radius);
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: var(--ds-shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.detailSheet__layerTitle {
  font-size: 16px;
  font-weight: 700;
  color: var(--ds-value);
  margin-bottom: 8px;
}

/* ----- 뷰모드: 매물유형·거래유형 선택된 것만 한 줄 표기 ----- */
.detailSheet__typeLine {
  display: none;
}

.detailSheet__typeLine.is-visible {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ds-accent);
  background: var(--ds-accent-bg);
  padding: 6px 12px;
  border-radius: 20px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.detailSheet__layer--typeLine {
  padding: 10px 14px;
  min-height: 0;
}

.detailSheet__layer--typeLine .detailSheet__typeLine.is-visible {
  padding: 6px 12px;
}

/* ----- 1차·2차·3차 탭 (매물유형 레이어 안) ----- */
.detailSheet__layer--propertyType .detailSheet__tabs,
.detailSheet__layer--propertyType .detailSheet__tabs2nd,
.detailSheet__layer--propertyType .detailSheet__tabs3rd {
  display: flex;
  gap: 6px;
}

.detailSheet__layer--propertyType .detailSheet__tabs {
  padding: 0 0 6px 0;
}

.detailSheet__layer--propertyType .detailSheet__tabs2nd,
.detailSheet__layer--propertyType .detailSheet__tabs3rd {
  padding: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.detailSheet__layer--propertyType .detailSheet__tabs2nd {
  padding-top: 4px;
}

.detailSheet__layer--propertyType .detailSheet__tabs3rd {
  padding-top: 10px;
}

.detailSheet__layer--propertyType .detailSheet__tabs2nd .detailSheet__tab {
  flex: 1 1 0;
  min-width: 48px;
  font-size: 10px;
  padding: 5px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  text-align: center;
}

.detailSheet__layer--propertyType .detailSheet__tabs3rd .detailSheet__tab {
  flex: 1 1 0;
  min-width: 40px;
  font-size: 9px;
  padding: 4px 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  text-align: center;
}

.detailSheet__tab {
  flex: 1;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-sm);
  padding: 7px 6px;
  cursor: pointer;
  background: var(--ds-bg-card);
  font-weight: 600;
  font-size: 12px;
  color: var(--ds-value);
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  text-align: center;
}

.detailSheet__tab:hover {
  background: #f9fafb;
}

.detailSheet__tab.is-active {
  border-color: var(--ds-accent);
  background: var(--ds-accent-bg);
  color: var(--ds-accent);
}

/* ----- 거래유형 레이어 ----- */
.detailSheet__layer--dealType .detailSheet__dealType {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.detailSheet__tab--dealType {
  flex: 1;
  font-size: 11px;
  padding: 6px 8px;
}

.detailSheet__select {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--ds-value);
  background: var(--ds-bg-card);
}

/* ----- 본문 (섹션 = 카드) ----- */
.detailSheet__body {
  padding: 4px 0 16px 0;
}

/* ===== 뷰모드: 보유 데이터만 압축, 읽기 특화 ===== */
.detailSheet__body--viewMode {
  padding: 0 0 20px;
}

.detailSheet__viewSection {
  background: var(--ds-bg-card);
  border-radius: var(--ds-radius);
  padding: 14px 16px;
  margin-bottom: 8px;
  box-shadow: var(--ds-shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* 임대내역 섹터(건물모드 스타일) 내 빈 상태 메시지 */
.detailSheet__leaseUnitsEmpty {
  margin: 0;
  padding: 12px 0;
  font-size: 13px;
  color: var(--ds-label, #6b7280);
}

.detailSheet__viewSectionTitleRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ds-border);
}

.detailSheet__viewSectionTitle {
  font-weight: 700;
  font-size: 14px;
  color: var(--ds-label);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.detailSheet__viewCopyBtn {
  flex-shrink: 0;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ds-accent);
  background: transparent;
  border: 1px solid var(--ds-accent);
  border-radius: 6px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.detailSheet__viewCopyBtn:hover {
  background: var(--ds-accent-bg);
}

.detailSheet__viewGrid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.detailSheet__viewRow {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  padding: 6px 0;
  align-items: start;
  font-size: 14px;
  line-height: 1.45;
  border-bottom: 1px solid #f0f1f3;
}

.detailSheet__viewRow:last-child {
  border-bottom: none;
}

.detailSheet__viewRow--multiline {
  grid-template-columns: 100px 1fr;
  align-items: start;
}

.detailSheet__viewRow--multiline .detailSheet__viewValue {
  white-space: pre-wrap;
  word-break: break-word;
}

.detailSheet__viewLabel {
  font-size: 12px;
  font-weight: 500;
  color: var(--ds-label);
  flex-shrink: 0;
}

.detailSheet__viewValue {
  font-weight: 500;
  color: var(--ds-value);
  text-align: right;
}

.detailSheet__viewRow--multiline .detailSheet__viewValue {
  text-align: left;
}

.detailSheet__viewRow--contact .detailSheet__viewValue {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.detailSheet__viewValue--contact {
  flex: 1;
  min-width: 0;
}

.detailSheet__viewContactText {
  font-weight: 500;
  color: var(--ds-value);
}

.detailSheet__viewContactNote {
  font-size: 12px;
  color: var(--ds-label);
  font-weight: 400;
}

.detailSheet__viewContactActions {
  display: flex;
  gap: 8px;
}

.detailSheet__viewContactBtn {
  font-size: 12px;
  font-weight: 600;
  color: var(--ds-accent);
  padding: 4px 10px;
  border: 1px solid var(--ds-accent);
  border-radius: 6px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.detailSheet__viewContactBtn:hover {
  background: var(--ds-accent-bg);
}

/* 세부내역서 연락이력 (고객관리 연락이력과 동일 UI) */
.detailSheet__contactLogsBlock .customer-detail__section-row {
  margin-bottom: 8px;
}
.detailSheet__contactLogsBlock .customer-detail__timeline-card {
  margin-bottom: 0;
}

.detailSheet__section {
  background: var(--ds-bg-card);
  border-radius: var(--ds-radius);
  padding: 12px;
  margin: 0 0 8px 0;
  box-shadow: var(--ds-shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.detailSheet__sectionTitleRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.detailSheet__sectionTitle {
  font-weight: 700;
  font-size: 16px;
  color: var(--ds-value);
}

.detailSheet__leaseUnitBtns {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

/* 섹션 제목 행 액션 버튼 (주소복사 등) */
.detailSheet__sectionActionBtn {
  flex-shrink: 0;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ds-accent);
  background: var(--ds-bg-card);
  border: 1px solid var(--ds-accent);
  border-radius: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.detailSheet__sectionActionBtn:hover {
  background: var(--ds-accent-bg);
}
.detailSheet__sectionActionBtn:active {
  background: var(--ds-accent-bg);
}

/* 매매조건 아래: 건축물대장 불러오기 (지번코드 API) */
.detailSheet__buildingHubWrap {
  margin-top: 8px;
  margin-bottom: 12px;
  padding: 12px;
  background: var(--ds-bg-card);
  border-radius: var(--ds-radius);
  border: 1px solid var(--ds-border);
  box-shadow: var(--ds-shadow);
}
.detailSheet__buildingHubTitle {
  font-weight: 700;
  font-size: 16px;
  color: var(--ds-value);
  margin: 0 0 10px 0;
}
.detailSheet__buildingHubRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.detailSheet__buildingHubWrap .detailSheet__pnuInput {
  width: 140px;
  min-width: 0;
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid var(--ds-border);
  border-radius: 8px;
  inputmode: numeric;
}
.detailSheet__buildingHubWrap .detailSheet__btn {
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.detailSheet__buildingHubFetch {
  color: #fff;
  background: var(--ds-accent);
  border: 1px solid var(--ds-accent);
}
.detailSheet__buildingHubFetch:hover:not(:disabled) {
  filter: brightness(1.05);
}
.detailSheet__buildingHubFetch:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.detailSheet__buildingHubMsg {
  font-size: 13px;
  color: var(--ds-label);
  margin: 0 0 8px 0;
  min-height: 1.2em;
}
.detailSheet__buildingInfoSection.hidden {
  display: none;
}
.detailSheet__buildingInfoSectionTitle {
  font-size: 14px;
  font-weight: 700;
  color: var(--ds-value);
  margin: 0 0 8px 0;
}
.detailSheet__buildingInfoBlock.hidden {
  display: none;
}
.detailSheet__buildingInfoBlock {
  margin-top: 0;
  padding-top: 10px;
  border-top: 1px solid var(--ds-border);
}
.detailSheet__buildingInfoGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin-bottom: 10px;
}
.detailSheet__buildingInfoRow {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 13px;
}
.detailSheet__buildingInfoLabel {
  color: var(--ds-label);
  flex-shrink: 0;
}
.detailSheet__buildingInfoValue {
  color: var(--ds-value);
  font-weight: 500;
}

/* 건물정보 불러오기: 지정 순서 1줄씩, 그룹 간 행 띄기 */
.detailSheet__buildingInfoGrid--oneLine {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.detailSheet__buildingInfoSpacer {
  height: 8px;
  min-height: 8px;
}
.detailSheet__buildingInfoRow--oneLine {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 6px;
  min-width: 0;
  line-height: 1.4;
}
.detailSheet__buildingInfoRow--oneLine .detailSheet__buildingInfoLabel {
  flex-shrink: 0;
}
.detailSheet__buildingInfoRow--oneLine .detailSheet__buildingInfoValue {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}
.detailSheet__buildingInfoUnit,
.detailSheet__buildingInfoPyeong {
  color: var(--ds-label);
  font-size: 12px;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* 건폐율·용적률: 라벨 위, 값 아래 한 줄씩 */
.detailSheet__buildingInfoRow--labelAbove {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.detailSheet__buildingInfoRow--labelAbove .detailSheet__buildingInfoLabel {
  display: block;
}
.detailSheet__buildingInfoRow--labelAbove .detailSheet__buildingInfoValue {
  display: block;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.detailSheet__buildingFloorTitle {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: var(--ds-value);
}
.detailSheet__buildingTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.detailSheet__buildingTable th,
.detailSheet__buildingTable td {
  padding: 6px 8px;
  text-align: left;
  border: 1px solid var(--ds-border);
}
.detailSheet__buildingTable th {
  background: var(--ds-bg-page);
  color: var(--ds-label);
  font-weight: 600;
}

/* 층별개요 묶음 표시 (지상 1층 / 사무소, 세차장 / 66.4㎡ (20.1평)) */
.detailSheet__buildingFloorList {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--ds-value);
}
.detailSheet__buildingFloorItem {
  padding: 6px 0;
  border-bottom: 1px solid var(--ds-border);
  font-weight: 500;
}
.detailSheet__buildingFloorItem:last-child {
  border-bottom: none;
}

/* 집합건축물 — 호별정보 (건축HUB 전유부) */
.detailSheet__hoByUnitWrap {
  margin-top: 16px;
  margin-bottom: 20px;
}
.detailSheet__hoByUnitWrap .detailSheet__buildingInfoSectionTitle {
  margin-bottom: 12px;
}
.detailSheet__hoByUnitMeta {
  font-size: 13px;
  color: var(--ds-label);
  margin: 0 0 10px 0;
  line-height: 1.4;
}
.detailSheet__hoByUnitStatus {
  font-size: 13px;
  color: var(--ds-label);
  margin: 0 0 8px 0;
  min-height: 1.2em;
}
.detailSheet__hoByUnitInner {
  margin-top: 4px;
}
.detailSheet__hoByUnitPickRow {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  /* 칸(동·층·호) 사이 간격 — 바깥 여백과 별도 */
  gap: 12px 18px;
  margin-bottom: 12px;
  position: relative;
  z-index: 0;
}
.detailSheet__hoByUnitPick:focus-within {
  z-index: 4;
}
.detailSheet__hoByUnitPick {
  flex: 1 1 110px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.detailSheet__hoByUnitPickLabel {
  font-size: 12px;
  color: var(--ds-label);
  font-weight: 600;
}
.detailSheet__hoByUnitSelect {
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid var(--ds-border);
  border-radius: 8px;
  background: var(--ds-bg-card);
  color: var(--ds-value);
}
.detailSheet__hoByUnitSubTitle {
  margin: 10px 0 6px 0;
}
/* 호별정보 본문: 층·호 / 대지권 / 전유부 를 하나의 흰 카드로 */
.detailSheet__hoByUnitWhiteCard {
  padding: 16px 14px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--ds-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.detailSheet__hoByUnitWhiteCard .detailSheet__hoByUnitMeta {
  margin: 0 0 12px 0;
}
.detailSheet__hoByUnitMeta + .detailSheet__hoByUnitExposHeading {
  margin-top: 0;
}
.detailSheet__hoByUnitWhiteCard .detailSheet__hoByUnitPickRow {
  margin-bottom: 0;
}
.detailSheet__hoByUnitLandInner {
  margin-bottom: 12px;
}
.detailSheet__hoByUnitLandInner:empty {
  margin-bottom: 0;
}
.detailSheet__hoByUnitLandInner.hidden {
  display: none !important;
  margin-bottom: 0;
}
.detailSheet__hoByUnitExposHeading {
  margin-top: 12px;
  margin-bottom: 8px;
}
.detailSheet__hoByUnitWhiteCard > .detailSheet__hoByUnitExposHeading:first-child {
  margin-top: 0;
}
.detailSheet__hoByUnitLandInner:not(.hidden) + .detailSheet__hoByUnitExposHeading {
  margin-top: 0;
}
.detailSheet__hoByUnitLandInner.hidden + .detailSheet__hoByUnitExposHeading {
  margin-top: 12px;
}
.detailSheet__hoByUnitWhiteCard .detailSheet__hoByUnitTable {
  margin-bottom: 0;
}
.detailSheet__hoByUnitWhiteCard .detailSheet__hoByUnitMuted:last-child {
  margin-bottom: 0;
}
.detailSheet__hoByUnitContextRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 10px;
}
.detailSheet__hoByUnitContextPill {
  flex: 1 1 120px;
  min-width: 0;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--ds-label);
  text-align: center;
  background: var(--ds-bg-card);
  border: 1px solid var(--ds-border);
  border-radius: 8px;
  opacity: 0.92;
}
.detailSheet__hoByUnitLandRow {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 12px;
  margin-top: 8px;
  font-size: 13px;
}
.detailSheet__hoByUnitLandRow:first-of-type {
  margin-top: 0;
}
.detailSheet__hoByUnitLandLabel {
  color: var(--ds-accent);
  font-weight: 700;
  flex-shrink: 0;
}
.detailSheet__hoByUnitLandValue {
  color: var(--ds-value);
  font-weight: 600;
  text-align: right;
  max-width: 100%;
  word-break: break-word;
}
.detailSheet__hoByUnitLand {
  margin-bottom: 10px;
  padding: 8px 10px;
  background: var(--ds-bg-page);
  border-radius: 8px;
  border: 1px solid var(--ds-border);
}
.detailSheet__hoByUnitLandVal {
  margin: 4px 0 0 0;
  font-size: 13px;
  color: var(--ds-value);
  font-weight: 500;
  line-height: 1.45;
  word-break: break-word;
}
.detailSheet__hoByUnitMuted {
  font-size: 13px;
  color: var(--ds-label);
  margin: 6px 0;
}
.detailSheet__hoByUnitLineList {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--ds-value);
  line-height: 1.5;
}
.detailSheet__hoByUnitLine {
  padding: 6px 0;
  border-bottom: 1px solid var(--ds-border);
  font-weight: 500;
  overflow-wrap: break-word;
  word-break: break-word;
}
.detailSheet__hoByUnitLine:last-child {
  border-bottom: none;
}
@media (max-width: 480px) {
  .detailSheet__hoByUnitPickRow {
    flex-direction: column;
    align-items: stretch;
    row-gap: 14px;
    column-gap: 0;
  }
  .detailSheet__hoByUnitPick {
    flex-basis: auto;
  }
}

/* 주소/상호 섹션 하단 미니 지도 */
.detailSheet__miniMapWrap {
  margin-top: 12px;
  margin-bottom: 4px;
  border-radius: var(--ds-radius-sm);
  overflow: hidden;
  border: 1px solid var(--ds-border);
  background: var(--ds-bg-page);
}
.detailSheet__miniMapArea {
  position: relative;
  width: 100%;
}
/* 잠금 시 터치패드 스크롤/핀치가 지도로 전달되지 않도록 (맥북 포함) */
.detailSheet__miniMapArea--locked .detailSheet__miniMap,
.detailSheet__miniMapArea--locked .detailSheet__miniMap * {
  pointer-events: none !important;
}
.detailSheet__miniMap {
  width: 100%;
  height: 200px;
  min-height: 200px;
}
.detailSheet__miniMapLockBtn {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--ds-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
}
.detailSheet__miniMapLockBtn:hover {
  background: #fff;
  border-color: var(--ds-accent);
}
.detailSheet__miniMapLockBtn:active {
  transform: scale(0.96);
}
.detailSheet__miniMapPlaceholder {
  width: 100%;
  height: 200px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--ds-label);
  background: var(--ds-bg-page);
}

.detailSheet__leaseUnitBtn {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--ds-border);
  background: var(--ds-bg-card);
  border-radius: 8px;
  cursor: pointer;
  color: var(--ds-label);
}

.detailSheet__leaseUnitBtn.active {
  border-color: var(--ds-accent);
  background: var(--ds-accent-bg);
  color: var(--ds-accent);
}

/* ----- 필드: 라벨(작고 연함) / 값(크고 진하게) ----- */
.detailSheet__field {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
  flex-wrap: wrap;
}

.detailSheet__field--inline {
  flex-wrap: nowrap;
}

.detailSheet__field--inline .detailSheet__input {
  min-width: 0;
  flex: 1;
}

.detailSheet__field--moneyRow,
.detailSheet__field--maintenanceRow {
  gap: 10px;
}

.detailSheet__field--maintenanceRow .detailSheet__maintenanceFeeInput {
  flex: 3;
  min-width: 0;
}

.detailSheet__field--maintenanceRow .detailSheet__maintenanceMemoInput {
  flex: 7;
  min-width: 0;
}

/* 주택정보: 방/욕실 1행 */
.detailSheet__field--roomBathRow {
  gap: 10px;
}

.detailSheet__field--roomBathRow .detailSheet__roomBathInput {
  width: 60px;
  min-width: 0;
  flex: 0 0 auto;
}

/* 전용면적: 평 / ㎡ 한 줄 이중 입력 */
.detailSheet__field--areaDual {
  flex-wrap: nowrap;
  gap: 10px;
}

.detailSheet__areaDualLabel {
  flex-shrink: 0;
}

.detailSheet__areaDualRow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-left: auto;
  flex: 0 0 auto;
  min-width: 0;
}

.detailSheet__areaDualCell {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  min-width: 0;
}

.detailSheet__areaDualCell .detailSheet__input {
  flex: 1;
  min-width: 0;
  max-width: 100px;
}

.detailSheet__areaDualUnitLabel {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--ds-label);
}

.detailSheet__moneyInput {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.detailSheet__moneyInput .detailSheet__input {
  flex: 1;
  min-width: 60px;
}

.detailSheet__field--naverRow {
  flex-wrap: nowrap;
  min-width: 0;
}

.detailSheet__field--naverRow .detailSheet__fieldLabel {
  flex-shrink: 0;
}

.detailSheet__field--naverRow .detailSheet__input {
  min-width: 0;
  flex: 1;
}

.detailSheet__field--naverRow .detailSheet__actionBtn {
  padding: 8px 12px;
  font-size: 12px;
  flex-shrink: 0;
}

/* 주소/도로명주소: 폰트 축소해 한 줄에 맞춤 */
.detailSheet__field--addressRow {
  flex-wrap: nowrap;
  min-width: 0;
}
.detailSheet__field--addressRow .detailSheet__fieldLabel {
  flex-shrink: 0;
}
.detailSheet__field--addressRow .detailSheet__input {
  min-width: 0;
  flex: 1;
  font-size: 12px;
  padding: 6px 8px;
}

.detailSheet__field--full {
  width: 100%;
  flex-direction: column;
  align-items: stretch;
}

.detailSheet__fieldLabel {
  min-width: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ds-label);
}

/* 입력: 박스형 (밑줄 스타일 없음) */
.detailSheet__input,
.detailSheet__textarea {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--ds-value);
  background: var(--ds-bg-card);
  min-width: 0;
}

.detailSheet__input {
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 호별정보 동·층·호 셀렉트: 숫자 입력 우측정렬 규칙 제외 */
.detailSheet__input.detailSheet__hoByUnitSelect {
  text-align: center;
  text-align-last: center;
}

/* date 입력: 브라우저별 오른쪽 정렬 확실히 적용 */
.detailSheet__input[type="date"] {
  text-align: right;
}
.detailSheet__input[type="date"]::-webkit-date-and-time-value {
  text-align: right;
}

.detailSheet__input::placeholder,
.detailSheet__textarea::placeholder {
  color: #9ca3af;
  font-size: 12px;
}

/* 평당가 자동계산 표시 (읽기 전용) */
.detailSheet__pyeongPriceDisplay {
  background: #f5f6f8;
  color: var(--ds-value);
  cursor: default;
}

.detailSheet__textarea {
  min-height: 72px;
  resize: vertical;
  text-align: left;
}

.detailSheet__fieldHint {
  font-size: 11px;
  color: var(--ds-label);
  margin-top: 4px;
}

/* 세부정보 메모: 입력창 위 안내문 (항상 표시, DB 미저장) */
.detailSheet__detailMemoGuide {
  display: block;
  font-size: 11px;
  line-height: 1.5;
  color: #888;
  margin-bottom: 8px;
  white-space: pre-line;
}
.detailSheet__detailMemoInput {
  margin-top: 0;
  min-height: 144px;   /* 기본 textarea(72px)의 2배 */
  flex: 0 0 auto;      /* flex가 높이를 잡아먹지 않도록 → 수동 리사이즈 가능 */
  width: 100%;
  resize: both;
  overflow: auto;
}
.detailSheet__readonly .detailSheet__detailMemoGuide {
  color: #999;
}
.detailSheet__readonly .detailSheet__detailMemoInput {
  background: #f5f6f8;
}

.detailSheet__checkWrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  font-size: 13px;
  color: var(--ds-value);
}

/* ----- 거래상태 ----- */
.detailSheet__dealStatus {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detailSheet__dealStatusBtns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.detailSheet__dealStatusBtn {
  flex: 1;
  min-width: 0;
  padding: 8px 8px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-sm);
  background: var(--ds-bg-card);
  color: var(--ds-value);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.detailSheet__dealStatusBtn:hover {
  background: #f9fafb;
}

/* 읽기전용(view) 모드에서는 거래상태 버튼 hover 색상 유지 */
.detailSheet__readonly .detailSheet__dealStatusBtn:hover {
  background: var(--ds-bg-card);
}

.detailSheet__dealStatusBtn.is-active {
  border-color: var(--ds-accent);
  background: var(--ds-accent-bg);
  color: var(--ds-accent);
}

.detailSheet__dealStatusMemo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.detailSheet__dealStatusMemo .detailSheet__fieldLabel {
  min-width: 90px;
}

/* ----- 화장실 (위치·사용 한 줄) ----- */
.detailSheet__restroomSelect {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
}

.detailSheet__restroomTitle {
  font-weight: 700;
  font-size: 13px;
  color: var(--ds-value);
  margin-bottom: 6px;
}

.detailSheet__restroomRow {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.detailSheet__restroomRow .detailSheet__fieldLabel {
  min-width: 0;
  flex-shrink: 0;
  white-space: nowrap;
}

.detailSheet__restroomBtn {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-sm);
  background: var(--ds-bg-card);
  color: var(--ds-value);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.detailSheet__restroomBtn:hover {
  background: #f9fafb;
}

.detailSheet__restroomBtn.is-active {
  border-color: var(--ds-accent);
  background: var(--ds-accent-bg);
  color: var(--ds-accent);
}

/* ----- 주차 ----- */
.detailSheet__parkingSelect {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detailSheet__parkingTitle {
  font-weight: 700;
  font-size: 13px;
  color: var(--ds-value);
  margin-bottom: 4px;
}

.detailSheet__parkingAvail {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.detailSheet__parkingAvail .detailSheet__fieldLabel {
  min-width: 100px;
}

.detailSheet__parkingAvail .detailSheet__parkingBtn:first-of-type {
  margin-left: auto;
}

.detailSheet__parkingBtn {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-sm);
  background: var(--ds-bg-card);
  color: var(--ds-value);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.detailSheet__parkingBtn:hover {
  background: #f9fafb;
}

.detailSheet__parkingBtn.is-active {
  border-color: var(--ds-accent);
  background: var(--ds-accent-bg);
  color: var(--ds-accent);
}

.detailSheet__parkingDetailBtn {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-sm);
  background: var(--ds-bg-card);
  color: var(--ds-value);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.detailSheet__parkingDetailBtn:hover {
  background: #f9fafb;
  border-color: var(--ds-accent);
  color: var(--ds-accent);
}

/* ----- 주차장 상세 팝업 ----- */
.detailSheet__parkingPopup {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.detailSheet__parkingPopupBackdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.detailSheet__parkingPopupContent {
  position: relative;
  width: 100%;
  max-width: 360px;
  max-height: 85vh;
  background: var(--ds-bg-card);
  border-radius: var(--ds-radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.detailSheet__parkingPopupHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ds-border);
  flex-shrink: 0;
}

.detailSheet__parkingPopupTitle {
  font-weight: 700;
  font-size: 15px;
  color: var(--ds-value);
}

.detailSheet__parkingPopupClose {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--ds-border);
  border-radius: 8px;
  background: var(--ds-bg-card);
  color: var(--ds-value);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.detailSheet__parkingPopupClose:hover {
  background: #f9fafb;
}

.detailSheet__parkingPopupBody {
  padding: 12px 16px 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.detailSheet__parkingPopupRow {
  margin: 4px 0;
  gap: 8px;
}

.detailSheet__parkingPopupRow.detailSheet__field {
  margin: 4px 0;
  min-height: 0;
}

.detailSheet__parkingPopupBody .detailSheet__parkingCostTitle {
  margin-top: 10px;
  margin-bottom: 2px;
}

.detailSheet__parkingPopupBody .detailSheet__parkingCostTitle:first-of-type {
  margin-top: 0;
}

.detailSheet__parkingUnit {
  font-size: 13px;
  color: var(--ds-label);
  flex-shrink: 0;
}

/* ----- 연락처정보 블록 ----- */
.detailSheet__contactsBlock {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detailSheet__contactsAddBtn {
  align-self: flex-start;
}

/* 연락처 타입별 카드 (소유자-관리인-세입자) */
.detailSheet__contactsTypeCard {
  background: var(--ds-bg-card);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  overflow: hidden;
}

.detailSheet__body--viewMode .detailSheet__contactsTypeCard + .detailSheet__contactsTypeCard {
  margin-top: 12px;
}

.detailSheet__contactsTypeCardTitle {
  padding: 10px 12px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ds-value);
  background: rgba(var(--ds-accent-rgb, 59, 130, 246), 0.06);
  border-bottom: 1px solid var(--ds-border);
}

.detailSheet__contactsTypeCard .detailSheet__contactsList {
  padding: 8px;
}

.detailSheet__contactsTypeCardGrid {
  padding: 8px;
}

.detailSheet__contactsList {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detailSheet__contactsRow {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--ds-bg-card);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  font-size: 14px;
}

.detailSheet__contactsRowBody {
  flex: 1;
  min-width: 0;
}

.detailSheet__contactsRowType {
  font-weight: 600;
  color: var(--ds-value);
  margin-bottom: 4px;
}

.detailSheet__contactTypeSub {
  font-size: 11px;
  font-weight: 500;
  color: var(--ds-label);
}

.detailSheet__contactsRowNote {
  font-size: 13px;
  color: var(--ds-label);
  margin-bottom: 2px;
}

.detailSheet__contactsRowPhone {
  color: var(--ds-value);
}

.detailSheet__contactsRowActions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.detailSheet__contactsRowActionsTop,
.detailSheet__contactsRowActionsBottom {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.detailSheet__contactsRowActionsTop {
  align-items: center;
}

.detailSheet__contactsRowActionsBottom {
  align-items: center;
}

.detailSheet__contactsActionBtn {
  font-size: 13px;
  font-weight: 500;
  color: var(--ds-accent);
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid var(--ds-accent);
  border-radius: 6px;
  -webkit-tap-highlight-color: transparent;
}

.detailSheet__contactsActionBtn:hover {
  background: rgba(var(--ds-accent-rgb, 59, 130, 246), 0.08);
}

.detailSheet__contactsEditBtn {
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  border: 1px solid var(--ds-border);
  border-radius: 6px;
  background: var(--ds-bg-card);
  color: var(--ds-label);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.detailSheet__contactsEditBtn:hover {
  background: rgba(var(--ds-accent-rgb, 59, 130, 246), 0.06);
  border-color: var(--ds-accent);
  color: var(--ds-accent);
}

.detailSheet__contactsDeleteBtn {
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  border: 1px solid var(--ds-border);
  border-radius: 6px;
  background: var(--ds-bg-card);
  color: var(--ds-label);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.detailSheet__contactsDeleteBtn:hover {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

/* ----- 연락처 추가 팝업 ----- */
.detailSheet__contactPopup {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.detailSheet__contactPopupBackdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.detailSheet__contactPopupContent {
  position: relative;
  width: 100%;
  max-width: 360px;
  max-height: 85vh;
  background: var(--ds-bg-card);
  border-radius: var(--ds-radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.detailSheet__contactPopupHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ds-border);
  flex-shrink: 0;
  gap: 8px;
}

.detailSheet__contactPopupTitle {
  font-weight: 700;
  font-size: 15px;
  color: var(--ds-value);
}

.detailSheet__contactPopupHeaderRight {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.detailSheet__contactPopupDelete {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 999px;
  border: 0;
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.detailSheet__contactPopupDelete:hover {
  background: rgba(239, 68, 68, 0.16);
}

.detailSheet__contactPopupClose {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--ds-border);
  border-radius: 8px;
  background: var(--ds-bg-card);
  color: var(--ds-value);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.detailSheet__contactPopupClose:hover {
  background: #f9fafb;
}

.detailSheet__contactPopupBody {
  padding: 12px 16px 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.detailSheet__contactPopupRow {
  margin: 8px 0;
}

.detailSheet__contactPopupRow.detailSheet__field {
  min-height: 0;
}

.detailSheet__contactTypeBtns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.detailSheet__contactTypeBtn {
  padding: 8px 12px;
  font-size: 13px;
  border: 1px solid var(--ds-border);
  border-radius: 8px;
  background: var(--ds-bg-card);
  color: var(--ds-value);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.detailSheet__contactTypeBtn.is-active {
  border-color: var(--ds-accent);
  background: rgba(var(--ds-accent-rgb, 59, 130, 246), 0.1);
  color: var(--ds-accent);
  font-weight: 600;
}

.detailSheet__contactTypeBtn .detailSheet__contactTypeSub {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: inherit;
  opacity: 0.85;
}

.detailSheet__viewLabel .detailSheet__contactTypeSub {
  display: block;
}

.detailSheet__contactPhoneRow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.detailSheet__contactPhoneRow .detailSheet__input {
  flex: 1;
  min-width: 120px;
}

.detailSheet__contactPopupActions {
  margin-top: 16px;
}

.detailSheet__contactPopupActions .detailSheet__btn {
  width: 100%;
}

/* 접힘 영역 토글 (칩/텍스트 스타일) */
.detailSheet__parkingToggle {
  align-self: flex-start;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--ds-accent);
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.detailSheet__parkingDetail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 0;
}

.detailSheet__parkingDetail.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.detailSheet__parkingDetail.is-disabled input,
.detailSheet__parkingDetail.is-disabled button {
  cursor: not-allowed;
}

.detailSheet__parkingTypeRow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.detailSheet__parkingTypeRow .detailSheet__fieldLabel {
  min-width: 72px;
}

.detailSheet__parkingTypeBtn {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--ds-border);
  border-radius: 8px;
  background: var(--ds-bg-card);
  color: var(--ds-value);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.detailSheet__parkingTypeBtn:hover {
  background: #f9fafb;
}

.detailSheet__parkingTypeBtn.is-active {
  border-color: var(--ds-accent);
  background: var(--ds-accent-bg);
  color: var(--ds-accent);
}

.detailSheet__parkingCost {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.detailSheet__parkingCostTitle {
  font-size: 12px;
  font-weight: 600;
  color: var(--ds-label);
  margin-top: 6px;
}

.detailSheet__fieldActions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.detailSheet__actionBtn {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--ds-border);
  border-radius: 8px;
  background: var(--ds-bg-card);
  color: var(--ds-value);
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.detailSheet__actionBtn:hover {
  background: #f9fafb;
  border-color: var(--ds-accent);
  color: var(--ds-accent);
}

/* ----- 푸터 버튼 ----- */
.detailSheet__footer {
  background: var(--ds-bg-card);
  padding: 16px 12px 24px;
  display: flex;
  gap: 10px;
  margin-top: 8px;
  border-radius: var(--ds-radius);
  box-shadow: var(--ds-shadow);
}

.detailSheet__btn {
  flex: 1;
  padding: 14px 12px;
  border-radius: var(--ds-radius-sm);
  font-weight: 700;
  font-size: 15px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.detailSheet__btn--ghost {
  background: var(--ds-bg-card);
  color: var(--ds-value);
}

.detailSheet__btn--ghost:hover {
  background: #f9fafb;
}

.detailSheet__btn--primary {
  background: var(--ds-accent);
  color: #fff;
  border-color: var(--ds-accent);
}

.detailSheet__btn--primary:hover {
  filter: brightness(0.96);
}

.detailSheet__btn.is-hidden {
  display: none;
}

/* 읽기 전용 세부내역서: 입력 필드 + 분류 탭 비활성 표시 */
.detailSheet__readonly .detailSheet__input,
.detailSheet__readonly .detailSheet__textarea,
.detailSheet__readonly .detailSheet__select {
  background: #f5f6f8;
  color: var(--ds-value);
  border-color: var(--ds-border);
}

.detailSheet__readonly .detailSheet__tab {
  cursor: default;
  opacity: 0.85;
}
.detailSheet__readonly .detailSheet__tab:hover {
  background: var(--ds-bg-card);
}
.detailSheet__readonly .detailSheet__tab.is-active {
  opacity: 1;
}

/* 뷰모드: 매물유형·거래유형 레이어 축소 */
.detailSheet__readonly .detailSheet__layer {
  padding: 10px 12px;
  margin-bottom: 8px;
}
.detailSheet__readonly .detailSheet__layerTitle {
  font-size: 12px;
  margin-bottom: 6px;
  color: var(--ds-label);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ----- PC: 디테일 패널 ----- */
.detail-panel {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 500px;
  max-width: 90%;
  z-index: 3000;
  background: var(--ds-bg-page);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.detail-panel.is-open {
  display: block;
}

#detailSheet.detailSheet--panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}

/* ----- 모바일: 탭 추가 축소 (아파트·오피스텔 등 긴 텍스트 대응) ----- */
@media (max-width: 768px) {
  .detailSheet__layer--propertyType .detailSheet__tab {
    font-size: 11px;
    padding: 6px 5px;
  }
  .detailSheet__layer--propertyType .detailSheet__tabs2nd .detailSheet__tab {
    font-size: 9px;
    padding: 4px 3px;
    min-width: 42px;
  }
  .detailSheet__layer--propertyType .detailSheet__tabs3rd .detailSheet__tab {
    font-size: 8px;
    padding: 3px 2px;
    min-width: 36px;
  }
}

/* ----- 매물 수정/신규 업로드 중 진행 UI (UploadOverlay) ----- */
.upload-overlay {
  position: fixed;
  inset: 0;
  z-index: 6500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: auto;
}

.upload-overlay.hidden {
  display: none;
}

.upload-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.upload-overlay__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  padding: 24px 32px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.upload-overlay__phase {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.upload-overlay__count {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ds-accent, #2563eb);
}

.upload-overlay__progress-wrap {
  width: 100%;
  height: 8px;
  background: var(--ds-border, #e5e7eb);
  border-radius: 4px;
  overflow: hidden;
}

.upload-overlay__progress-bar {
  height: 100%;
  background: var(--ds-accent, #2563eb);
  border-radius: 4px;
  transition: width 0.2s ease-out;
}

/* 파일 없이 저장 시: 진행바 indeterminate 애니메이션 */
.upload-overlay__progress-wrap.upload-overlay__progress-wrap--indeterminate .upload-overlay__progress-bar {
  width: 40% !important;
  animation: upload-overlay-indeterminate 1.2s ease-in-out infinite;
}

@keyframes upload-overlay-indeterminate {
  0% { margin-left: -40%; }
  100% { margin-left: 100%; }
}

.upload-overlay__spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--ds-border, #e5e7eb);
  border-top-color: var(--ds-accent, #2563eb);
  border-radius: 50%;
  animation: upload-overlay-spin 0.8s linear infinite;
}

.upload-overlay__spinner.upload-overlay__spinner--hidden {
  display: none;
}

@keyframes upload-overlay-spin {
  to {
    transform: rotate(360deg);
  }
}

/* 고객용 링크 / 추천묶음 (뷰 모드) */
.detailSheet__shareBar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 4px 12px;
  margin-top: 4px;
}

.detailSheet__btn--share {
  flex: 1;
  min-width: 140px;
  padding: 12px 14px;
  border-radius: var(--ds-radius-sm, 10px);
  border: 1px solid var(--ds-border, #e5e7eb);
  background: var(--ds-bg-card, #fff);
  color: var(--ds-accent, #2563eb);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.detailSheet__btn--shareSecondary {
  color: var(--ds-value, #1a1a1a);
  background: var(--ds-bg-page, #f5f6f8);
}

/* ===========================
   수수료 배분 segmented bar
   =========================== */
.feeSplitBar {
  position: relative;
  width: 100%;
  height: 28px;
  border-radius: 999px;
  background: #f3f4f6;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.feeSplitBar--readonly {
  opacity: 0.92;
}

.detailSheet__feeSplitHint {
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.35;
}

.feeSplitBar__seg {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-right: 1px solid rgba(17, 24, 39, 0.06);
}

.feeSplitBar__segText {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feeSplitBar__segName {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  line-height: 1.05;
}

.feeSplitBar__segPct {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.05;
}

.feeSplitBar__seg--acquirer { background: #eef2ff; }
.feeSplitBar__seg--closer { background: #ecfdf5; }
.feeSplitBar__seg--office { background: #fff7ed; }

.feeSplitBar__handle {
  position: absolute;
  top: -5px;
  bottom: -5px;
  width: 12px;
  transform: translateX(-50%);
  cursor: ew-resize;
  z-index: 3;
  pointer-events: auto;
}

.feeSplitBar__handle::before {
  content: "";
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.25);
  border-radius: 2px;
}

.detailSheet__readonly .feeSplitBar__handle {
  cursor: default;
}

/* 마지막 세그먼트 border-right 제거(시각적 경계 과도 방지) */
.feeSplitBar__seg--office {
  border-right: none;
}
