    /* =========================================================================
       글자 크기 3단계 심플 모드 (40~60대 현장/모바일 가독성 최적화 상향 스케일)
       ========================================================================= */
    :root, html[data-font-mode="standard"] {
      font-size: 15.5px;
      --fs-sub: 12.5px;        /* 보조 텍스트 / 주소 / 메타 */
      --fs-body: 14px;         /* 일반 본문 / 버튼 / 필터 칩 */
      --fs-title: 15.5px;      /* 리스트 제목 / 강조 텍스트 */
      --fs-head: 18px;         /* 상세시트 큰 제목 */
      --fs-pin: 11.5px;        /* 지도 개별 핀 텍스트 */
      --fs-c-title: 11.5px;    /* 클러스터 지역명 */
      --fs-c-count: 13.5px;    /* 클러스터 건수 숫자 */
      --fs-c-sub: 10.5px;      /* 클러스터 하단 요약 */
      --pin-pad: 3.5px 7.5px;
      --cluster-pad: 5px 11px;
    }

    html[data-font-mode="compact"] {
      font-size: 14px;
      --fs-sub: 11.5px;
      --fs-body: 12.5px;
      --fs-title: 14px;
      --fs-head: 16px;
      --fs-pin: 10.5px;
      --fs-c-title: 10.5px;
      --fs-c-count: 12px;
      --fs-c-sub: 10px;
      --pin-pad: 2.5px 6px;
      --cluster-pad: 4px 9px;
    }

    html[data-font-mode="large"] {
      font-size: 17.5px;
      --fs-sub: 14px;
      --fs-body: 15.5px;
      --fs-title: 17.5px;
      --fs-head: 20.5px;
      --fs-pin: 12.5px;
      --fs-c-title: 12.5px;
      --fs-c-count: 15px;
      --fs-c-sub: 11.5px;
      --pin-pad: 4px 8.5px;
      --cluster-pad: 6px 12px;
    }

    /* 상세시트 내부 모든 텍스트가 글자크기 조절기와 100% 유기적으로 연동되도록 보정 */
    .detail-sheet-surface {
      font-size: var(--fs-body);
    }
    .detail-sheet-surface h2 {
      font-size: var(--fs-head);
    }
    .detail-sheet-surface .tx-sub {
      font-size: var(--fs-sub);
    }
    .detail-sheet-surface .tx-body {
      font-size: var(--fs-body);
    }
    .detail-sheet-surface .tx-title {
      font-size: var(--fs-title);
    }
    .detail-sheet-surface .tx-head {
      font-size: var(--fs-head);
    }
    .detail-tab-bar button {
      font-size: var(--fs-title) !important;
    }
    .detail-sheet-surface button,
    .detail-sheet-surface input,
    .detail-sheet-surface textarea,
    .detail-sheet-surface select {
      font-size: inherit;
    }

    /* 임의 픽셀(text-[...px]) 클래스도 글자 크기 3단계 모드(compact / standard / large)와 100% 유기적 연동 */
    html[data-font-mode="compact"] .text-\[9\.5px\] { font-size: 8.5px !important; }
    html[data-font-mode="compact"] .text-\[10px\] { font-size: 9px !important; }
    html[data-font-mode="compact"] .text-\[10\.5px\] { font-size: 9.5px !important; }
    html[data-font-mode="compact"] .text-\[11px\] { font-size: 10px !important; }
    html[data-font-mode="compact"] .text-\[11\.5px\] { font-size: 10.5px !important; }
    html[data-font-mode="compact"] .text-\[12px\] { font-size: 11px !important; }
    html[data-font-mode="compact"] .text-\[12\.5px\] { font-size: 11.5px !important; }
    html[data-font-mode="compact"] .text-\[13px\],
    html[data-font-mode="compact"] .text-\[13\.5px\] { font-size: 12px !important; }
    html[data-font-mode="compact"] .text-\[14px\] { font-size: 12.5px !important; }

    html[data-font-mode="large"] .text-\[9\.5px\] { font-size: 11px !important; }
    html[data-font-mode="large"] .text-\[10px\] { font-size: 11.5px !important; }
    html[data-font-mode="large"] .text-\[10\.5px\] { font-size: 12.5px !important; }
    html[data-font-mode="large"] .text-\[11px\] { font-size: 12.5px !important; }
    html[data-font-mode="large"] .text-\[11\.5px\] { font-size: 13.5px !important; }
    html[data-font-mode="large"] .text-\[12px\] { font-size: 14px !important; }
    html[data-font-mode="large"] .text-\[12\.5px\] { font-size: 14.5px !important; }
    html[data-font-mode="large"] .text-\[13px\],
    html[data-font-mode="large"] .text-\[13\.5px\] { font-size: 15.5px !important; }
    html[data-font-mode="large"] .text-\[14px\] { font-size: 16.5px !important; }

    body, html {
      margin: 0; padding: 0; height: 100%;
      font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo", sans-serif;
      font-size: var(--fs-body);
      letter-spacing: -0.2px;
      overflow: hidden;
    }
    #map { width: 100%; height: 100%; z-index: 1; }

    /* 배경 지도 타일 톤 정돈:
       - 라이트 모드(기본): 밝고 자연스러운 카카오맵 본연의 색감 유지
       - 다크 모드: 눈부심 방지를 위해 타일 채도/밝기를 차분하게 정돈 */
    html[data-theme="light"] #map.tone-soft img[src*="daumcdn.net/map_2d"] {
      filter: saturate(0.92) contrast(0.98);
    }
    html[data-theme="dark"] #map.tone-soft img[src*="daumcdn.net/map_2d"] {
      filter: saturate(0.76) contrast(0.91) brightness(0.95);
    }

    /* 유틸리티 폰트 클래스 (CSS 변수 연동) */
    .tx-sub { font-size: var(--fs-sub); line-height: 1.4; }
    .tx-body { font-size: var(--fs-body); line-height: 1.45; }
    .tx-title { font-size: var(--fs-title); line-height: 1.4; }
    .tx-head { font-size: var(--fs-head); line-height: 1.35; }

    /* =========================================================================
       구·동 클러스터 카운트 버블 (라이트: 화이트 + BDSoft 로얄블루 #05499F / 다크: 슬레이트 + 에메랄드)
       ========================================================================= */
    .ddjmap-cluster {
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      min-width: 80px; padding: var(--cluster-pad); border-radius: 9999px;
      background: rgba(255, 255, 255, 0.97);
      border: 2px solid #05499F;
      color: #0f172a; cursor: pointer;
      box-shadow: 0 6px 18px rgba(5, 73, 159, 0.22), 0 2px 6px rgba(15, 23, 42, 0.08);
      backdrop-filter: blur(6px);
      user-select: none;
      transition: transform 0.12s ease, background 0.12s ease;
    }
    .ddjmap-cluster:hover {
      background: #eff6ff;
      border-color: #1d4ed8;
      transform: translateY(-1px);
      z-index: 9999 !important;
    }
    .ddjmap-cluster .c-header {
      display: flex; align-items: center; gap: 4px;
    }
    .ddjmap-cluster .c-title {
      font-size: var(--fs-c-title); font-weight: 700; color: #0f172a;
    }
    .ddjmap-cluster .c-count {
      font-size: var(--fs-c-count); font-weight: 800; color: #ffffff;
      background: #05499F; padding: 0.5px 6px; border-radius: 9999px; line-height: 1.35;
    }
    .ddjmap-cluster .c-sub {
      font-size: var(--fs-c-sub); font-weight: 500; color: #475569; white-space: nowrap; margin-top: 1.5px;
    }

    /* 다크 모드일 때 클러스터 버블 스타일 */
    html[data-theme="dark"] .ddjmap-cluster {
      background: rgba(15, 23, 42, 0.93);
      border: 1.5px solid #10b981;
      color: #ffffff;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    }
    html[data-theme="dark"] .ddjmap-cluster:hover {
      background: rgba(6, 78, 59, 0.96);
      border-color: #34d399;
    }
    html[data-theme="dark"] .ddjmap-cluster .c-title { color: #f1f5f9; }
    html[data-theme="dark"] .ddjmap-cluster .c-count {
      background: transparent; color: #34d399; padding: 0;
    }
    html[data-theme="dark"] .ddjmap-cluster .c-sub { color: #cbd5e1; }

    /* 개별 핀 래퍼: 하단 꼭짓점(▼)이 해당 지번 위경도(xAnchor:0.5, yAnchor:1.0)에 100% 고정 */
    .ddjmap-pin-wrap {
      display: flex; flex-direction: column; align-items: center;
      cursor: pointer; user-select: none;
      position: relative;
      transition: transform 0.15s ease;
    }
    .ddjmap-pin-wrap:hover .ddjmap-pin,
    .ddjmap-pin-wrap.pin-highlight .ddjmap-pin,
    .ddjmap-pin-wrap.pin-active .ddjmap-pin {
      box-shadow: 0 0 0 2.5px #05499F, 0 8px 20px rgba(5, 73, 159, 0.45);
      border-color: #ffffff;
      filter: brightness(1.08);
    }
    html[data-theme="dark"] .ddjmap-pin-wrap:hover .ddjmap-pin,
    html[data-theme="dark"] .ddjmap-pin-wrap.pin-highlight .ddjmap-pin,
    html[data-theme="dark"] .ddjmap-pin-wrap.pin-active .ddjmap-pin {
      box-shadow: 0 0 0 2.5px #fde047, 0 8px 20px rgba(0,0,0,0.7);
      border-color: #fef08a;
    }
    .ddjmap-pin-wrap.pin-highlight,
    .ddjmap-pin-wrap.pin-active {
      transform: translateY(-2px) scale(1.06);
    }
    .ddjmap-pin-wrap.pin-highlight .ddjmap-multi-pin,
    .ddjmap-pin-wrap.pin-active .ddjmap-multi-pin {
      box-shadow: 0 0 0 2.5px #05499F, 0 8px 20px rgba(5, 73, 159, 0.45);
      border-color: #ffffff;
    }
    .ddjmap-pin {
      display: inline-flex; align-items: center; gap: 4px;
      padding: var(--pin-pad); border-radius: 7px;
      font-weight: 600; font-size: var(--fs-pin); color: #fff;
      box-shadow: 0 3px 10px rgba(15, 23, 42, 0.28);
      border: 1.5px solid rgba(255,255,255,0.96); white-space: nowrap;
    }
    .ddjmap-pin .pin-val { font-weight: 700; }

    /* 다중 겹침 그룹 핀 */
    .ddjmap-multi-pin {
      display: inline-flex; align-items: center; gap: 3px;
      padding: 3px 4px; border-radius: 8px;
      background: rgba(15, 23, 42, 0.94);
      border: 1.5px solid rgba(255, 255, 255, 0.96);
      box-shadow: 0 4px 12px rgba(15, 23, 42, 0.35);
      white-space: nowrap;
    }
    .ddjmap-multi-pin .m-seg {
      display: inline-flex; align-items: center; gap: 3px;
      padding: 2px 6.5px; border-radius: 5px;
      font-size: var(--fs-pin); font-weight: 700; color: #ffffff;
    }
    .ddjmap-multi-pin .m-cnt {
      font-weight: 800; color: #fef08a;
    }
    .ddjmap-pin-tail {
      width: 0; height: 0;
      border-left: 5px solid transparent;
      border-right: 5px solid transparent;
      border-top: 6px solid rgba(15, 23, 42, 0.85);
      margin-top: -1px;
    }
    .pin-start { background: #059669; }
    .pin-permit { background: #d97706; }
    .pin-demolish { background: #dc2626; }
    .pin-corp-house { background: #e11d48; }
    .pin-comm { background: #0284c7; }
    .pin-land { background: #c2410c !important; color: #ffffff !important; }
    .pin-land-apt { background: #0d9488; }
    .pin-auction { background: #4f46e5; }

    /* 지번 미공개 전용 고대비 배지 (.badge-masked-jibun) */
    .badge-masked-jibun {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 1.5px 6.5px;
      border-radius: 4px;
      font-size: var(--fs-sub);
      font-weight: 800 !important;
      line-height: 1.35;
      letter-spacing: -0.2px;
      white-space: nowrap;
    }
    /* 라이트 모드: 최고 명도 대비 (블랙 슬레이트 배경 + 선명한 순백색 텍스트) */
    html[data-theme="light"] .badge-masked-jibun {
      background-color: #0f172a !important;
      color: #ffffff !important;
      border: 1px solid #020617 !important;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    }
    /* 다크 모드: 선명한 화이트/슬레이트 대비 */
    html[data-theme="dark"] .badge-masked-jibun {
      background-color: #334155 !important;
      color: #ffffff !important;
      border: 1px solid #475569 !important;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }

    /* 추정 지번 매칭 전용 최고대비 배지 (.badge-estimated-jibun) */
    .badge-estimated-jibun {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 1.5px 7px;
      border-radius: 4px;
      font-size: 11px;
      font-weight: 900 !important;
      line-height: 1.35;
      letter-spacing: -0.2px;
      white-space: nowrap;
    }
    /* 라이트 모드: 선명한 네이비-인디고 솔리드 배경 + 순백 텍스트 (명도대비 12:1 초고명도) */
    html[data-theme="light"] .badge-estimated-jibun {
      background-color: #312e81 !important;
      color: #ffffff !important;
      border: 1px solid #1e1b4b !important;
      box-shadow: 0 1px 2px rgba(49, 46, 129, 0.25);
    }
    /* 다크 모드: 인디고 배경 + 순백 텍스트 (명도대비 9:1) */
    html[data-theme="dark"] .badge-estimated-jibun {
      background-color: #4f46e5 !important;
      color: #ffffff !important;
      border: 1px solid #6366f1 !important;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    }

    /* 제목 앞단 [추정] 고대비 인라인 태그 (.tag-estimated-title) */
    .tag-estimated-title {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 1px 6px;
      border-radius: 4px;
      font-weight: 900 !important;
      font-size: 11px;
      margin-right: 6px;
      vertical-align: middle;
      line-height: 1.3;
    }
    /* 라이트 모드: 맑은 소프트 라벤더 배경 + 짙은 딥 인디고 텍스트 (대비 10.5:1) */
    html[data-theme="light"] .tag-estimated-title {
      background-color: #e0e7ff !important;
      color: #312e81 !important;
      border: 1.5px solid #6366f1 !important;
    }
    /* 다크 모드: 짙은 인디고 배경 + 밝은 라벤더 텍스트 */
    html[data-theme="dark"] .tag-estimated-title {
      background-color: rgba(99, 102, 241, 0.25) !important;
      color: #c7d2fe !important;
      border: 1px solid rgba(129, 140, 248, 0.5) !important;
    }

    /* 추정 지번 상세 모달 안내 배너 (.estimated-info-banner) */
    .estimated-info-banner {
      border-radius: 12px;
      padding: 12px 14px;
      font-size: var(--fs-sub);
      line-height: 1.5;
      margin: 6px 0 12px 0;
    }
    .estimated-info-banner .banner-title {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 6px;
      font-weight: 900;
      font-size: 13px;
      margin-bottom: 4px;
    }
    .estimated-info-banner .banner-desc {
      font-size: 11.5px;
      line-height: 1.55;
      font-weight: 500;
    }
    html[data-theme="light"] .estimated-info-banner {
      background-color: #eef2ff !important;
      border: 1.5px solid #818cf8 !important;
      box-shadow: 0 1px 3px rgba(99, 102, 241, 0.1);
    }
    html[data-theme="light"] .estimated-info-banner .banner-title {
      color: #312e81 !important;
    }
    html[data-theme="light"] .estimated-info-banner .banner-desc {
      color: #1e1b4b !important;
    }
    html[data-theme="light"] .estimated-info-banner .banner-desc b {
      color: #0f172a !important;
      font-weight: 800 !important;
    }
    html[data-theme="dark"] .estimated-info-banner {
      background-color: rgba(67, 56, 202, 0.18) !important;
      border: 1.5px solid #6366f1 !important;
    }
    html[data-theme="dark"] .estimated-info-banner .banner-title {
      color: #c7d2fe !important;
    }
    html[data-theme="dark"] .estimated-info-banner .banner-desc {
      color: #e0e7ff !important;
    }
    html[data-theme="dark"] .estimated-info-banner .banner-desc b {
      color: #ffffff !important;
      font-weight: 800 !important;
    }

    /* 지번 미공개 상단 안내 배너 (.masked-info-banner) */
    .masked-info-banner {
      border-radius: 12px;
      padding: 11px 13px;
      font-size: var(--fs-sub);
      line-height: 1.5;
      margin: 6px 0 10px 0;
    }
    .masked-info-banner .banner-title {
      display: flex;
      align-items: center;
      gap: 6px;
      font-weight: 800;
      font-size: 13px;
      margin-bottom: 3px;
    }
    .masked-info-banner .banner-desc {
      font-size: 11.5px;
      line-height: 1.55;
      font-weight: 500;
    }
    /* 라이트 모드 배너: 맑은 스카이블루 배경 + 짙은 블루 타이틀 + 선명한 슬레이트 본문 (대비 100%) */
    html[data-theme="light"] .masked-info-banner {
      background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
      border: 1.5px solid #38bdf8 !important;
      box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08) !important;
    }
    html[data-theme="light"] .masked-info-banner .banner-title {
      color: #0369a1 !important;
    }
    html[data-theme="light"] .masked-info-banner .banner-desc {
      color: #0f172a !important;
    }
    html[data-theme="light"] .masked-info-banner .banner-desc b {
      color: #0284c7 !important;
      font-weight: 800 !important;
    }
    /* 다크 모드 배너 */
    html[data-theme="dark"] .masked-info-banner {
      background: rgba(14, 165, 233, 0.12) !important;
      border: 1.5px solid rgba(56, 189, 248, 0.4) !important;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
    }
    html[data-theme="dark"] .masked-info-banner .banner-title {
      color: #38bdf8 !important;
    }
    html[data-theme="dark"] .masked-info-banner .banner-desc {
      color: #e2e8f0 !important;
    }
    html[data-theme="dark"] .masked-info-banner .banner-desc b {
      color: #7dd3fc !important;
      font-weight: 800 !important;
    }

    /* 지번 비공개 하단 액션 비활성 바 (.masked-disabled-btn) */
    .masked-disabled-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 9px 12px;
      border-radius: 12px;
      font-size: var(--fs-sub);
      font-weight: 800 !important;
      letter-spacing: -0.2px;
      user-select: none;
    }
    /* 라이트 모드: 화이트/라이트 슬레이트 바탕 + 짙은 네이비 텍스트 (대비비 12:1) */
    html[data-theme="light"] .masked-disabled-btn {
      background-color: #f1f5f9 !important;
      border: 1.5px solid #94a3b8 !important;
      color: #0f172a !important;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }
    /* 다크 모드: 딥슬레이트 바탕 + 선명한 연회색 텍스트 */
    html[data-theme="dark"] .masked-disabled-btn {
      background-color: rgba(30, 41, 59, 0.8) !important;
      border: 1.5px solid rgba(71, 85, 105, 0.6) !important;
      color: #cbd5e1 !important;
    }

    /* 건축물대장 미지원 안내 (.masked-spec-notice) */
    .masked-spec-notice {
      border-radius: 12px;
      padding: 12px;
      text-align: center;
      font-size: var(--fs-sub);
      font-weight: 700;
      letter-spacing: -0.2px;
    }
    html[data-theme="light"] .masked-spec-notice {
      background-color: #f8fafc !important;
      border: 1.5px solid #cbd5e1 !important;
      color: #1e293b !important;
    }
    html[data-theme="dark"] .masked-spec-notice {
      background-color: rgba(15, 23, 42, 0.85) !important;
      border: 1.5px solid #334155 !important;
      color: #94a3b8 !important;
    }

    /* 좌측 리스트 카드 선택 하이라이트 */
    html[data-theme="light"] .sidebar-card-active {
      background: #eff6ff !important;
      border-left: 3.5px solid #05499F !important;
    }
    html[data-theme="dark"] .sidebar-card-active {
      background: rgba(16, 185, 129, 0.14) !important;
      border-left: 3px solid #10b981 !important;
    }

    /* 상세 시트 배경 (라이트 / 다크) */
    html[data-theme="light"] .detail-sheet-surface {
      background: rgba(255, 255, 255, 0.98) !important;
      border-color: #cbd5e1 !important;
      box-shadow: 0 12px 36px rgba(15, 23, 42, 0.18) !important;
    }
    html[data-theme="dark"] .detail-sheet-surface {
      background: rgba(15, 23, 42, 0.97) !important;
      border-color: #334155 !important;
    }

    /* 모인 물건 목록 복귀 (Back) 버튼 */
    .back-to-group-btn {
      background: rgba(14, 165, 233, 0.18);
      border: 1px solid rgba(56, 189, 248, 0.6);
      color: #38bdf8;
    }
    .back-to-group-btn:hover {
      background: rgba(14, 165, 233, 0.32);
      color: #7dd3fc;
    }
    html[data-theme="light"] .back-to-group-btn {
      background: #e0f2fe !important;
      border: 1.5px solid #0284c7 !important;
      color: #0369a1 !important;
    }
    html[data-theme="light"] .back-to-group-btn:hover {
      background: #bae6fd !important;
      color: #0284c7 !important;
    }

    /* =========================================================================
       방안 1: 핵심 세일즈 공정 타이밍 카드 (소프트 블루/인디고 그라데이션)
       ========================================================================= */
    html[data-theme="light"] .timing-card-container {
      background: linear-gradient(135deg, #f0f7ff 0%, #e0effe 48%, #eef2ff 100%) !important;
      border: 1px solid #bfdbfe !important;
      box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    }
    html[data-theme="light"] .timing-card-title {
      color: #1d4ed8 !important;
      font-weight: 800 !important;
      letter-spacing: -0.3px;
    }
    html[data-theme="light"] .timing-pct-badge {
      color: #0369a1 !important;
      background: #e0f2fe !important;
      border: 1px solid #bae6fd !important;
      padding: 1px 7px;
      border-radius: 9999px;
      font-weight: 700;
    }
    html[data-theme="light"] .timing-progress-track {
      background-color: #dbeafe !important;
      border: 1px solid #bfdbfe !important;
    }
    html[data-theme="light"] .timing-progress-fill {
      background: linear-gradient(90deg, #2563eb 0%, #0284c7 60%, #10b981 100%) !important;
      box-shadow: 0 1px 4px rgba(37, 99, 235, 0.25) !important;
    }
    html[data-theme="light"] .timing-card-body {
      color: #1e293b !important;
      line-height: 1.5;
    }
    html[data-theme="light"] .timing-card-body b {
      color: #0f172a !important;
      font-weight: 700;
    }
    /* 세일즈 타이밍 카드 내부 서브 타이틀 및 본문 (초고대비) */
    html[data-theme="light"] .timing-section-label {
      color: #1e3a8a !important; /* 딥 네이비 */
      font-weight: 800 !important;
    }
    html[data-theme="light"] .timing-target-chip {
      background-color: #ffffff !important;
      color: #1d4ed8 !important; /* 쨍한 로얄블루 */
      border: 1.5px solid #93c5fd !important;
      font-weight: 800 !important;
      box-shadow: 0 1px 2px rgba(30, 64, 175, 0.08) !important;
    }
    html[data-theme="light"] .timing-sales-guide-body {
      color: #0f172a !important; /* 100% 선명한 흑청색 */
      font-weight: 600 !important;
      line-height: 1.55 !important;
    }

    /* 공정 4단계 라이프사이클 카드 (초고대비) */
    html[data-theme="light"] .lifecycle-card-container {
      background-color: #ffffff !important;
      border: 1.5px solid #cbd5e1 !important;
      box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
    }
    html[data-theme="light"] .lifecycle-card-title {
      color: #0f172a !important;
      font-weight: 800 !important;
    }
    html[data-theme="light"] .lifecycle-card-badge {
      color: #05499F !important;
      font-weight: 800 !important;
    }
    html[data-theme="light"] .lifecycle-step-active {
      background-color: #05499F !important;
      color: #ffffff !important;
      border: 2px solid #043b82 !important;
      box-shadow: 0 2px 6px rgba(5, 73, 159, 0.25) !important;
    }
    html[data-theme="light"] .lifecycle-step-active div {
      color: #ffffff !important;
    }
    html[data-theme="light"] .lifecycle-step-inactive {
      background-color: #f8fafc !important;
      color: #334155 !important; /* 또렷하고 짙은 슬레이트 다크 */
      border: 1.5px solid #cbd5e1 !important;
      font-weight: 700 !important;
    }
    html[data-theme="light"] .lifecycle-step-inactive .step-title {
      color: #1e293b !important;
      font-weight: 800 !important;
    }
    html[data-theme="light"] .lifecycle-step-inactive .step-pct {
      color: #64748b !important;
      font-weight: 600 !important;
    }

    /* 공정 마일스톤 종합 일정표 (초고대비) */
    html[data-theme="light"] .milestone-card-container {
      background-color: #ffffff !important;
      border: 1.5px solid #cbd5e1 !important;
      box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
    }
    html[data-theme="light"] .milestone-card-title {
      color: #0f172a !important;
      font-weight: 800 !important;
    }
    html[data-theme="light"] .milestone-card-basis {
      color: #475569 !important;
      font-weight: 600 !important;
    }
    html[data-theme="light"] .milestone-item-label {
      color: #334155 !important;
      font-weight: 600 !important;
    }
    html[data-theme="light"] .milestone-item-permit {
      color: #0f172a !important;
      font-weight: 800 !important;
    }
    html[data-theme="light"] .milestone-item-start {
      color: #047857 !important; /* 선명한 다크 에메랄드 */
      font-weight: 800 !important;
    }
    html[data-theme="light"] .milestone-item-elapsed {
      color: #b45309 !important; /* 선명한 다크 앰버 */
      font-weight: 800 !important;
    }
    html[data-theme="light"] .milestone-item-expected {
      color: #0369a1 !important; /* 선명한 다크 블루 */
      font-weight: 800 !important;
    }
    html[data-theme="light"] .milestone-item-remaining {
      color: #475569 !important;
      font-weight: 700 !important;
    }
    html[data-theme="light"] .timing-help-btn {
      background-color: #dbeafe !important;
      border: 1px solid #93c5fd !important;
      color: #1e40af !important;
    }
    html[data-theme="light"] .timing-help-btn:hover {
      background-color: #bfdbfe !important;
      color: #1d4ed8 !important;
    }
    html[data-theme="light"] .timing-tooltip {
      background-color: #ffffff !important;
      border: 1.5px solid #60a5fa !important;
      box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15) !important;
      color: #1e293b !important;
    }
    html[data-theme="light"] .timing-tooltip div {
      color: #1e293b !important;
    }

    /* 다크 모드 스타일 */
    html[data-theme="dark"] .timing-card-container {
      background: linear-gradient(135deg, rgba(30, 58, 138, 0.35) 0%, rgba(15, 23, 42, 0.8) 100%) !important;
      border: 1px solid rgba(59, 130, 246, 0.4) !important;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
    }
    html[data-theme="dark"] .timing-card-title {
      color: #fde047 !important;
      font-weight: 700 !important;
    }
    html[data-theme="dark"] .timing-pct-badge {
      color: #34d399 !important;
      background: rgba(6, 78, 59, 0.6) !important;
      border: 1px solid rgba(52, 211, 153, 0.4) !important;
      padding: 1px 7px;
      border-radius: 9999px;
      font-weight: 700;
    }
    html[data-theme="dark"] .timing-progress-track {
      background-color: #1e293b !important;
      border: 1px solid #334155 !important;
    }
    html[data-theme="dark"] .timing-progress-fill {
      background: linear-gradient(90deg, #10b981 0%, #38bdf8 50%, #f59e0b 100%) !important;
    }
    html[data-theme="dark"] .timing-card-body {
      color: #e2e8f0 !important;
      line-height: 1.5;
    }
    html[data-theme="dark"] .timing-help-btn {
      background-color: #1e293b !important;
      border: 1px solid #475569 !important;
      color: #94a3b8 !important;
    }
    html[data-theme="dark"] .timing-tooltip {
      background-color: rgba(15, 23, 42, 0.96) !important;
      border: 1px solid rgba(16, 185, 129, 0.6) !important;
      color: #f8fafc !important;
    }

    /* =========================================================================
       3대 테마 탭 바 (정통 언더라인 인디케이터 탭 UI)
       ========================================================================= */
    .detail-tab-bar {
      display: flex;
      align-items: center;
      position: relative;
      border-bottom: 2px solid #e2e8f0;
      margin: 10px 0 14px 0;
      user-select: none;
      padding: 0 4px;
    }
    .detail-tab-bar button {
      cursor: pointer;
      outline: none;
      transition: color 0.15s ease, border-color 0.15s ease;
    }

    /* 기본 및 라이트 모드 */
    .active-detail-tab,
    html[data-theme="light"] .active-detail-tab {
      background: transparent !important;
      color: #05499F !important; /* BDSoft 로얄블루 */
      font-weight: 800 !important;
      border: none !important;
      border-bottom: 3.5px solid #05499F !important;
      margin-bottom: -2px !important;
      padding-bottom: 8px !important;
      box-shadow: none !important;
      transform: none !important;
    }
    .inactive-detail-tab,
    html[data-theme="light"] .inactive-detail-tab {
      background: transparent !important;
      color: #475569 !important; /* 선명하고 또렷한 슬레이트 다크 */
      font-weight: 700 !important;
      border: none !important;
      border-bottom: 3.5px solid transparent !important;
      margin-bottom: -2px !important;
      padding-bottom: 8px !important;
      opacity: 1 !important;
      box-shadow: none !important;
      transform: none !important;
    }
    .inactive-detail-tab:hover,
    html[data-theme="light"] .inactive-detail-tab:hover {
      color: #05499F !important;
      border-bottom: 3.5px solid #94a3b8 !important;
    }

    /* 다크 모드 */
    html[data-theme="dark"] .detail-tab-bar {
      border-bottom-color: #334155 !important;
    }
    html[data-theme="dark"] .active-detail-tab {
      background: transparent !important;
      color: #38bdf8 !important; /* 스카이블루 */
      font-weight: 800 !important;
      border: none !important;
      border-bottom: 3.5px solid #38bdf8 !important;
      margin-bottom: -2px !important;
      padding-bottom: 8px !important;
    }
    html[data-theme="dark"] .inactive-detail-tab {
      background: transparent !important;
      color: #cbd5e1 !important; /* 밝고 또렷한 슬레이트 */
      font-weight: 700 !important;
      border: none !important;
      border-bottom: 3.5px solid transparent !important;
      margin-bottom: -2px !important;
      padding-bottom: 8px !important;
    }
    html[data-theme="dark"] .inactive-detail-tab:hover {
      color: #f8fafc !important;
      border-bottom: 3.5px solid #64748b !important;
    }

    /* 거리·면적 측정 플로팅 라벨 */
    .measure-badge {
      padding: 4px 8px;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.96);
      border: 1.5px solid #05499F;
      color: #0f172a;
      font-size: var(--fs-sub);
      font-weight: 700;
      box-shadow: 0 4px 12px rgba(15,23,42,0.2);
      white-space: nowrap;
      pointer-events: none;
    }
    html[data-theme="dark"] .measure-badge {
      background: rgba(15, 23, 42, 0.94);
      border-color: #38bdf8;
      color: #f8fafc;
    }

    /* =========================================================================
       클린 라이트 & BDSoft 블루 (#05499F) 기본 테마 팔레트 매핑
       - 눈이 편안한 화이트/쿨그레이 배경 + 선명한 딥슬레이트 타이포그래피
       ========================================================================= */
    html[data-theme="light"] body {
      background-color: #f8fafc !important;
      color: #0f172a !important;
    }
    html[data-theme="light"] .bg-slate-950,
    html[data-theme="light"] .bg-slate-950\/90,
    html[data-theme="light"] .bg-slate-950\/80,
    html[data-theme="light"] .bg-slate-950\/70 {
      background-color: #f1f5f9 !important;
    }
    html[data-theme="light"] .bg-slate-900,
    html[data-theme="light"] .bg-slate-900\/95,
    html[data-theme="light"] .bg-slate-900\/90,
    html[data-theme="light"] .bg-slate-900\/80 {
      background-color: #ffffff !important;
    }
    html[data-theme="light"] #leftSidebar {
      background-color: #f8fafc !important;
    }
    html[data-theme="light"] #siteListContainer > div {
      background-color: #ffffff;
    }
    html[data-theme="light"] #siteListContainer > div:hover {
      background-color: #f1f5f9 !important;
    }
    html[data-theme="light"] .bg-slate-800,
    html[data-theme="light"] .bg-slate-800\/90,
    html[data-theme="light"] .bg-slate-800\/80,
    html[data-theme="light"] .bg-slate-800\/70 {
      background-color: #f1f5f9 !important;
    }
    html[data-theme="light"] .hover\:bg-slate-700:hover,
    html[data-theme="light"] .hover\:bg-slate-800:hover,
    html[data-theme="light"] .hover\:bg-slate-800\/70:hover {
      background-color: #e2e8f0 !important;
    }
    html[data-theme="light"] .border-slate-800,
    html[data-theme="light"] .border-slate-700,
    html[data-theme="light"] .border-slate-700\/80,
    html[data-theme="light"] .border-slate-700\/70,
    html[data-theme="light"] .border-slate-600 {
      border-color: #e2e8f0 !important;
    }
    html[data-theme="light"] .divide-slate-800\/60 > :not([hidden]) ~ :not([hidden]),
    html[data-theme="light"] .divide-slate-800\/70 > :not([hidden]) ~ :not([hidden]) {
      border-color: #e2e8f0 !important;
    }
    html[data-theme="light"] .text-white:not(.pin-start):not(.pin-permit):not(.pin-demolish):not(.pin-corp-house):not(.pin-comm):not(.pin-land):not(.pin-land-apt):not(.pin-auction):not(.bg-indigo-500):not(.brand-solid-btn):not(.active-sido):not(.tool-btn-active):not([class*="bg-[#05499F]"]):not(.badge-estimated-jibun):not(.badge-masked-jibun),
    html[data-theme="light"] .text-slate-100,
    html[data-theme="light"] .text-slate-200 {
      color: #0f172a !important;
    }
    html[data-theme="light"] .text-slate-300 {
      color: #334155 !important;
    }
    html[data-theme="light"] .text-slate-400,
    html[data-theme="light"] .text-slate-500 {
      color: #64748b !important;
    }
    /* 라이트 모드에서 진한 배경(핀/카테고리 배지/솔리드 버튼/오버레이) 내부의 글씨는 선명한 순백색(#ffffff) 유지 */
    html[data-theme="light"] .ddjmap-pin,
    html[data-theme="light"] .ddjmap-pin *,
    html[data-theme="light"] .m-seg,
    html[data-theme="light"] .m-seg *,
    html[data-theme="light"] .pin-start,
    html[data-theme="light"] .pin-start *,
    html[data-theme="light"] .pin-permit,
    html[data-theme="light"] .pin-permit *,
    html[data-theme="light"] .pin-demolish,
    html[data-theme="light"] .pin-demolish *,
    html[data-theme="light"] .pin-corp-house,
    html[data-theme="light"] .pin-corp-house *,
    html[data-theme="light"] .pin-comm,
    html[data-theme="light"] .pin-comm *,
    html[data-theme="light"] .pin-land,
    html[data-theme="light"] .pin-land *,
    html[data-theme="light"] .pin-land-apt,
    html[data-theme="light"] .pin-land-apt *,
    html[data-theme="light"] .pin-auction,
    html[data-theme="light"] .pin-auction *,
    html[data-theme="light"] .bg-indigo-500,
    html[data-theme="light"] .brand-solid-btn,
    html[data-theme="light"] [class*="bg-sky-6"],
    html[data-theme="light"] [class*="bg-blue-6"],
    html[data-theme="light"] [class*="bg-indigo-6"],
    html[data-theme="light"] [class*="bg-emerald-6"],
    html[data-theme="light"] [class*="bg-rose-6"],
    html[data-theme="light"] [class*="bg-orange-6"],
    html[data-theme="light"] [class*="bg-[#c2410c]"],
    html[data-theme="light"] [class*="bg-[#05499F]"] {
      color: #ffffff !important;
      text-shadow: 0 1px 1.5px rgba(0, 0, 0, 0.4);
    }
    html[data-theme="light"] .ddjmap-multi-pin .m-cnt {
      color: #fef08a !important;
    }
    html[data-theme="light"] .bg-black\/70,
    html[data-theme="light"] .bg-black\/70 * {
      color: #ffffff !important;
    }

    /* 발주처 배지 & KISCON 행정처분 공시 카드 라이트/다크 고대비 보정 */
    html[data-theme="light"] .owner-direct-badge {
      background-color: #e2e8f0 !important;
      border: 1px solid #cbd5e1 !important;
      color: #1e293b !important;
    }
    html[data-theme="dark"] .owner-direct-badge {
      background-color: #334155 !important;
      border: 1px solid #475569 !important;
      color: #f1f5f9 !important;
    }
    html[data-theme="light"] .kiscon-alert-card {
      background-color: #fff1f2 !important;
      border: 1px solid #fda4af !important;
    }
    html[data-theme="light"] .kiscon-alert-title {
      color: #be123c !important;
    }
    html[data-theme="light"] .kiscon-alert-body {
      color: #1e293b !important;
    }
    html[data-theme="light"] .kiscon-alert-body b {
      color: #881337 !important;
    }
    html[data-theme="light"] .kiscon-alert-badge,
    html[data-theme="dark"] .kiscon-alert-badge {
      background-color: #dc2626 !important;
      color: #ffffff !important;
      text-shadow: none !important;
    }
    html[data-theme="dark"] .kiscon-alert-card {
      background-color: rgba(225, 29, 72, 0.16) !important;
      border: 1px solid rgba(244, 63, 94, 0.45) !important;
    }
    html[data-theme="dark"] .kiscon-alert-title {
      color: #fda4af !important;
    }
    html[data-theme="dark"] .kiscon-alert-body {
      color: #ffe4e6 !important;
    }
    html[data-theme="dark"] .kiscon-alert-body b {
      color: #ffffff !important;
    }

    /* 신규 모달(건설사DB·협업게시판·문의·공지·동선·내정보) 라이트 테마 고대비 보정 */
    html[data-theme="light"] #kisconModal select,
    html[data-theme="light"] #kisconModal input,
    html[data-theme="light"] #communityModal select,
    html[data-theme="light"] #communityModal input,
    html[data-theme="light"] #communityModal textarea,
    html[data-theme="light"] #inquiryModal select,
    html[data-theme="light"] #inquiryModal input,
    html[data-theme="light"] #inquiryModal textarea,
    html[data-theme="light"] #profileModal input {
      background-color: #ffffff !important;
      color: #0f172a !important;
      border-color: #cbd5e1 !important;
    }
    html[data-theme="light"] #communityModal .bg-emerald-500\/20 {
      background-color: #dcfce7 !important;
      color: #166534 !important;
    }
    html[data-theme="light"] #communityModal .bg-indigo-500\/20 {
      background-color: #e0e7ff !important;
      color: #3730a3 !important;
    }
    html[data-theme="light"] #communityModal .bg-slate-600\/30 {
      background-color: #e2e8f0 !important;
      color: #475569 !important;
    }
    /* 로그인·회원가입 모달 라이트/다크 고대비 보정 */
    html[data-theme="light"] #authModal input {
      background-color: #ffffff !important;
      color: #0f172a !important;
      border-color: #cbd5e1 !important;
    }
    html[data-theme="light"] #authModalNotice {
      background-color: #fef3c7 !important;
      border-color: #f59e0b !important;
      color: #92400e !important;
      font-weight: 700;
    }
    html[data-theme="light"] #authErrorMsg {
      background-color: #fee2e2 !important;
      border-color: #ef4444 !important;
      color: #b91c1c !important;
      font-weight: 700;
    }
    #authModal .auth-primary-btn {
      background-color: #05499F !important;
      color: #ffffff !important;
      text-shadow: none !important;
    }
    html[data-theme="light"] #authModal .auth-tab-inactive {
      background-color: #f1f5f9 !important;
      color: #475569 !important;
      border: 1px solid #cbd5e1 !important;
    }

    /* 전국 광역 시·도 선택 팝오버 버튼 고대비 */
    .active-sido,
    #sidoGridList button.active-sido,
    html[data-theme="light"] #sidoGridList button.active-sido,
    html[data-theme="dark"] #sidoGridList button.active-sido {
      background-color: #05499F !important;
      color: #ffffff !important;
      font-weight: 800 !important;
      border: 1.5px solid #05499F !important;
      box-shadow: 0 1px 4px rgba(5, 73, 159, 0.4) !important;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important;
    }
    .sido-btn-inactive,
    #sidoGridList button.sido-btn-inactive,
    html[data-theme="light"] #sidoGridList button.sido-btn-inactive {
      background-color: #f1f5f9 !important;
      color: #0f172a !important;
      border: 1px solid #cbd5e1 !important;
      font-weight: 700 !important;
    }
    .sido-btn-inactive:hover,
    html[data-theme="light"] #sidoGridList button.sido-btn-inactive:hover {
      background-color: #e2e8f0 !important;
      color: #05499F !important;
    }
    html[data-theme="dark"] .sido-btn-inactive,
    html[data-theme="dark"] #sidoGridList button.sido-btn-inactive {
      background-color: #1e293b !important;
      color: #f1f5f9 !important;
      border-color: #334155 !important;
      font-weight: 700 !important;
    }
    html[data-theme="dark"] .sido-btn-inactive:hover,
    html[data-theme="dark"] #sidoGridList button.sido-btn-inactive:hover {
      background-color: #334155 !important;
      color: #ffffff !important;
    }

    /* 상단 헤더: 라이트/다크 테마 스위치 & 글자 크기 조절기 고대비 */
    #themeToggleBtn {
      background-color: #f1f5f9;
      border: 1px solid #cbd5e1;
      color: #0f172a !important;
      font-weight: 700;
    }
    #themeToggleBtn span {
      color: #0f172a !important;
      font-weight: 700;
    }
    #themeToggleBtn:hover {
      background-color: #e2e8f0;
    }
    html[data-theme="dark"] #themeToggleBtn {
      background-color: #1e293b;
      border-color: #334155;
      color: #f1f5f9 !important;
    }
    html[data-theme="dark"] #themeToggleBtn span {
      color: #f1f5f9 !important;
    }
    html[data-theme="dark"] #themeToggleBtn:hover {
      background-color: #334155;
    }
    #fontStepDownBtn, #fontStepUpBtn {
      color: #0f172a !important;
      font-weight: 700;
    }
    html[data-theme="dark"] #fontStepDownBtn,
    html[data-theme="dark"] #fontStepUpBtn {
      color: #f1f5f9 !important;
    }

    /* 지도 우측 세로형 미니멀 아이콘 도구 패널 & 커스텀 줌 컨트롤 + 호버 툴팁 */
    #mapFloatingTools,
    #mapZoomTools {
      background-color: rgba(255, 255, 255, 0.96);
      border: 1px solid #cbd5e1;
      box-shadow: 0 4px 16px rgba(15, 23, 42, 0.14);
    }
    #mapFloatingTools button,
    #mapZoomTools button {
      color: #1e293b !important;
      font-weight: 700;
    }
    #mapFloatingTools button:hover,
    #mapZoomTools button:hover {
      background-color: #eff6ff;
      color: #05499F !important;
    }
    .tool-btn-active,
    #mapFloatingTools button.tool-btn-active,
    html[data-theme="light"] #mapFloatingTools button.tool-btn-active {
      background-color: #05499F !important;
      color: #ffffff !important;
      font-weight: 800 !important;
    }
    html[data-theme="dark"] #mapFloatingTools,
    html[data-theme="dark"] #mapZoomTools {
      background-color: rgba(15, 23, 42, 0.94);
      border-color: #334155;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    }

    /* [TASK-UX-1] 최근 본 현장 플로팅 필 버튼 (지도 컨트롤과 동일한 깔끔한 프로스트 화이트/다크 톤) */
    #recentViewedToggleBtn {
      background-color: rgba(255, 255, 255, 0.96) !important;
      color: #1e293b !important;
      border: 1px solid #cbd5e1 !important;
      box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
    }
    #recentViewedToggleBtn:hover {
      background-color: #eff6ff !important;
      border-color: #93c5fd !important;
      color: #05499F !important;
    }
    #recentViewedCount {
      background-color: #05499F !important;
      color: #ffffff !important;
    }
    html[data-theme="dark"] #recentViewedToggleBtn {
      background-color: rgba(15, 23, 42, 0.94) !important;
      color: #f1f5f9 !important;
      border-color: #334155 !important;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    }
    html[data-theme="dark"] #recentViewedToggleBtn:hover {
      background-color: rgba(30, 41, 59, 0.98) !important;
      border-color: #475569 !important;
      color: #60a5fa !important;
    }
    html[data-theme="dark"] #recentViewedCount {
      background-color: #2563eb !important;
      color: #ffffff !important;
    }
    html[data-theme="dark"] #mapFloatingTools button,
    html[data-theme="dark"] #mapZoomTools button {
      color: #e2e8f0 !important;
    }
    html[data-theme="dark"] #mapFloatingTools button:hover,
    html[data-theme="dark"] #mapZoomTools button:hover {
      background-color: #1e293b;
      color: #38bdf8 !important;
    }
    html[data-theme="dark"] #mapFloatingTools button.tool-btn-active {
      background-color: #0284c7 !important;
      color: #ffffff !important;
      font-weight: 800 !important;
    }
    .map-tool-tip {
      position: absolute;
      right: calc(100% + 10px);
      top: 50%;
      transform: translateY(-50%) translateX(4px);
      background-color: #0f172a !important;
      color: #ffffff !important;
      font-size: 12px;
      font-weight: 700;
      padding: 4px 10px;
      border-radius: 8px;
      white-space: nowrap;
      pointer-events: none;
      opacity: 0;
      box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
      transition: opacity 0.15s ease, transform 0.15s ease;
      z-index: 40;
    }
    .map-tool-btn:hover .map-tool-tip {
      opacity: 1;
      transform: translateY(-50%) translateX(0);
    }
    @media (hover: none) {
      .map-tool-tip { display: none !important; }
    }

    /* 거리/면적 측정 안내 토스트 고대비 배지 */
    #measureGuideToast {
      background-color: #05499F !important;
      border: 1.5px solid #ffffff !important;
      box-shadow: 0 4px 16px rgba(5, 73, 159, 0.45) !important;
      pointer-events: none;
    }
    #measureGuideToast span,
    #measureGuideToast * {
      color: #ffffff !important;
      font-weight: 800 !important;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important;
    }
    html[data-theme="dark"] #measureGuideToast {
      background-color: #0f172a !important;
      border: 1.5px solid #38bdf8 !important;
      box-shadow: 0 4px 16px rgba(15, 23, 42, 0.6) !important;
    }
    html[data-theme="dark"] #measureGuideToast span,
    html[data-theme="dark"] #measureGuideToast * {
      color: #ffffff !important;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7) !important;
    }

    /* 실거래 레이더 신호 요약 및 경매 권리요약 카드 고대비 */
    .radar-signal-card {
      background-color: #f8fafc;
      border: 1.5px solid #cbd5e1;
      color: #0f172a !important;
      font-weight: 600;
    }
    html[data-theme="dark"] .radar-signal-card {
      background-color: rgba(30, 41, 59, 0.75);
      border: 1px solid #334155;
      color: #f1f5f9 !important;
      font-weight: 500;
    }

    /* 라이트 모드 시맨틱 포인트 컬러 고대비 보정 (흰 바탕에서 또렷하게 읽히도록) */
    html[data-theme="light"] .text-emerald-300,
    html[data-theme="light"] .text-emerald-400,
    html[data-theme="light"] .text-emerald-200 {
      color: #05499F !important;
    }
    html[data-theme="light"] .chip-btn[data-stage="착공"] {
      color: #047857 !important;
      background-color: #ecfdf5 !important;
      border-color: #a7f3d0 !important;
    }
    html[data-theme="light"] .chip-btn[data-stage="허가"],
    html[data-theme="light"] .text-amber-300 {
      color: #b45309 !important;
    }
    html[data-theme="light"] .chip-btn[data-stage="허가"] {
      background-color: #fffbeb !important;
      border-color: #fde68a !important;
    }
    html[data-theme="light"] .chip-btn[data-stage="법인구옥매수"],
    html[data-theme="light"] .text-rose-300,
    html[data-theme="light"] .text-rose-400 {
      color: #be123c !important;
    }
    html[data-theme="light"] .chip-btn[data-stage="법인구옥매수"] {
      background-color: #fff1f2 !important;
      border-color: #fecdd3 !important;
    }
    html[data-theme="light"] .chip-btn[data-stage="꼬마빌딩·상가"],
    html[data-theme="light"] .text-sky-300,
    html[data-theme="light"] .text-sky-400 {
      color: #0369a1 !important;
    }
    html[data-theme="light"] .chip-btn[data-stage="꼬마빌딩·상가"] {
      background-color: #f0f9ff !important;
      border-color: #bae6fd !important;
    }
    html[data-theme="light"] .chip-btn[data-stage="토지·신축부지"],
    html[data-theme="light"] .chip-btn[data-stage="토지·아파트실거래"],
    html[data-theme="light"] .text-teal-300 {
      color: #c2410c !important;
    }
    html[data-theme="light"] .chip-btn[data-stage="토지·신축부지"],
    html[data-theme="light"] .chip-btn[data-stage="토지·아파트실거래"] {
      background-color: #fff7ed !important;
      border-color: #fed7aa !important;
    }
    html[data-theme="light"] .chip-btn[data-stage="경매"],
    html[data-theme="light"] .text-indigo-300,
    html[data-theme="light"] .text-indigo-400,
    html[data-theme="light"] .text-indigo-200 {
      color: #4338ca !important;
    }
    html[data-theme="light"] .chip-btn[data-stage="경매"] {
      background-color: #eef2ff !important;
      border-color: #c7d2fe !important;
    }
    html[data-theme="light"] .chip-btn[data-stage="북마크"],
    html[data-theme="light"] .text-pink-300 {
      color: #be185d !important;
    }
    html[data-theme="light"] .chip-btn[data-stage="북마크"] {
      background-color: #fdf2f8 !important;
      border-color: #fbcfe8 !important;
    }
    /* 전체 레이더 기본 칩 & 활성 칩 스타일 */
    html[data-theme="light"] .chip-btn[data-stage="전체"] {
      background-color: #05499F !important;
      color: #ffffff !important;
    }
    html[data-theme="light"] .chip-btn.ring-2 {
      box-shadow: 0 0 0 2px #05499F !important;
    }
    /* 라이트 모드 배지 배경 톤 정돈 */
    html[data-theme="light"] .bg-emerald-500\/15,
    html[data-theme="light"] .bg-emerald-500\/20,
    html[data-theme="light"] .bg-emerald-950\/40 {
      background-color: #eff6ff !important;
      border-color: #bfdbfe !important;
    }
    html[data-theme="light"] .bg-sky-500\/15,
    html[data-theme="light"] .bg-sky-500\/20 {
      background-color: #f0f9ff !important;
      border-color: #bae6fd !important;
    }
    html[data-theme="light"] .bg-indigo-950\/20,
    html[data-theme="light"] .bg-indigo-950\/60,
    html[data-theme="light"] .bg-indigo-500\/20 {
      background-color: #eef2ff !important;
      border-color: #c7d2fe !important;
    }
    html[data-theme="light"] .bg-pink-500\/20 {
      background-color: #fdf2f8 !important;
      border-color: #fbcfe8 !important;
    }
    html[data-theme="light"] .bg-rose-500\/25 {
      background-color: #ffe4e6 !important;
      border-color: #fda4af !important;
    }
    html[data-theme="light"] .bg-amber-500\/15,
    html[data-theme="light"] .bg-amber-500\/20 {
      background-color: #fef3c7 !important;
      border-color: #fcd34d !important;
    }
    /* BDSoft 브랜드 포인트 버튼 (라이트 모드에서는 #05499F 로얄블루 + 화이트 텍스트) */
    html[data-theme="light"] .bg-emerald-500,
    html[data-theme="light"] .bg-emerald-500.text-slate-950 {
      background-color: #05499F !important;
      color: #ffffff !important;
    }
    html[data-theme="light"] .bg-sky-500.text-slate-950 {
      background-color: #0284c7 !important;
      color: #ffffff !important;
    }
    html[data-theme="light"] .bg-pink-500.text-slate-950 {
      background-color: #db2777 !important;
      color: #ffffff !important;
    }
    html[data-theme="light"] .hover\:bg-emerald-400:hover {
      background-color: #043b82 !important;
    }
    /* 로드뷰 좌측 상단 '360° 현장 로드뷰' 오버레이 배지: 라이트/다크 모두 진한 반투명 배경 + 순백색 글씨 보장 */
    .roadview-corner-badge,
    html[data-theme="light"] .roadview-corner-badge,
    html[data-theme="dark"] .roadview-corner-badge {
      background-color: rgba(15, 23, 42, 0.78) !important;
      color: #ffffff !important;
      border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .no-scrollbar::-webkit-scrollbar { display: none; }
    .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

    /* [후보 A] 현장 임장 브리핑 A4 1클릭 인쇄/PDF 저장 스타일 */
    @media print {
      body {
        background: #ffffff !important;
        color: #111827 !important;
        margin: 0 !important;
        padding: 0 !important;
      }
      header, aside, main, #detailSheet, #welcomeIntroModal, #briefingModal, #radarFilterModal, #communityModal, #inquiryModal, #noticeModal, #routeModal, #legalModal, #authModal, .fixed {
        display: none !important;
      }
      #printReportContainer {
        display: block !important;
        position: static !important;
        width: 100% !important;
        background: #ffffff !important;
        color: #111827 !important;
        font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif !important;
      }
      @page {
        size: A4 portrait;
        margin: 12mm 14mm;
      }
    }

    /* 모바일 뷰포트 & 터치 최적화 스타일 */
    @supports (padding-bottom: env(safe-area-inset-bottom)) {
      .pb-safe { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 0.75rem); }
      .bottom-safe { bottom: calc(env(safe-area-inset-bottom, 0px) + 1.25rem); }
    }
    @media (max-width: 640px) {
      /* 아이폰 사파리 검색창 포커스 시 강제 확대 방지 (최소 16px) */
      #searchInput { font-size: 16px !important; }
    }

    /* 모바일 햄버거 메뉴 로그인 버튼 초고대비 보장 (라이트/다크 공통) */
    #mobileMenuAuthArea button {
      background-color: #05499F !important;
      color: #ffffff !important;
    }
    #mobileMenuAuthArea button * {
      color: #ffffff !important;
    }
