/* Copyright © 2026 HDenc(해안항만기술연구소). All Rights Reserved. 무단 복제·수정·배포를 금지합니다. LICENSE 파일 참고. */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.css');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* 100vh/height:100%는 모바일 브라우저의 주소창이 접혔다 펴졌다 하는 동안 실제 보이는
   화면보다 크게 잡혀서, 하단에 붙여둔 요소(메테오그램 등)가 화면 밖으로 밀려 잘려 보이는
   문제가 흔하다. 지원 브라우저에서는 실제 보이는 높이를 따라가는 100dvh로 덮어써서 막는다. */
html, body {
  margin: 0; padding: 0; width: 100%; overflow: hidden;
  height: 100%; height: 100dvh;
  font-family: 'Pretendard Variable', -apple-system, "Segoe UI", "Malgun Gothic", sans-serif;
}
/* body를 포지셔닝 컨텍스트로 만들어서, 하단에 붙는 절대배치 요소들(메테오그램 등)의
   bottom:0 기준이 body의 실제 높이(100dvh)를 따르게 한다. 이게 없으면 position:absolute
   요소의 containing block이 뷰포트 전체(주소창이 접혔을 때 기준의 큰 뷰포트)가 되어,
   모바일에서 주소창/하단 툴바가 떠 있을 때 메테오그램이 화면 아래로 밀려 안 보이게 된다. */
html, body { position: relative; }
#map { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100dvh; background: #030a12; }

:root {
  /* --- Signal palette: sonar / bioluminescent depth-scan --- */
  --abyss-950: #030a12;      /* map / deepest bg */
  --abyss-900: #06111c;      /* topbar bg */
  --panel-900: #0a1622;      /* base panel bg (opaque fallback) */
  --panel-glass: rgba(10, 22, 34, 0.72);  /* glass panel bg */
  --panel-glass-strong: rgba(10, 22, 34, 0.9);
  --line: rgba(148, 209, 224, 0.14);
  --line-strong: rgba(148, 209, 224, 0.24);

  --signal: #23e5cf;         /* primary cyan-teal accent (sonar ping) */
  --signal-dim: rgba(35, 229, 207, 0.35);
  --signal-glow: rgba(35, 229, 207, 0.45);
  --amber: #ffb020;         /* buoy / secondary accent */
  --coral: #ff5d5d;         /* route / alert */

  --text: #eaf4fb;
  --text-dim: rgba(234, 244, 251, 0.60);
  --text-faint: rgba(234, 244, 251, 0.34);

  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* kept for any legacy reference */
  --navy-900: var(--abyss-900);
  --navy-800: var(--panel-900);
  --navy-700: #16273f;
  --accent: var(--signal);
}

/* --- 상단 헤더 --- */
#topbar {
  position: absolute; top: 0; left: 0; right: 0; height: 52px; z-index: 1100;
  background: linear-gradient(180deg, var(--abyss-900) 0%, rgba(6,17,28,0.96) 100%);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
  padding: 0 20px; box-shadow: 0 1px 0 rgba(35,229,207,0.08), 0 4px 20px rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
}
#topbar-title {
  color: var(--text); font-size: 15px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; font-family: var(--mono);
  position: relative; padding-left: 16px;
  cursor: pointer; transition: color 0.15s;
}
#topbar-title:hover { color: var(--signal); }
#topbar-title::before {
  content: ""; position: absolute; left: 0; top: 50%; translate: 0 -50%;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--signal); box-shadow: 0 0 8px 2px var(--signal-glow);
  animation: ping-pulse 2.2s ease-in-out infinite;
}
@keyframes ping-pulse {
  0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
  50% { opacity: 0.45; transform: translateY(-50%) scale(0.75); }
}
.topbar-spacer { flex: 1; }

#topbar-regions { display: flex; gap: 6px; }
.region-btn {
  background: transparent; border: 1px solid var(--line-strong); color: var(--text-dim);
  padding: 7px 18px; border-radius: 999px; font-size: 13px; font-weight: 500; cursor: pointer;
  white-space: nowrap; transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.region-btn:hover { color: var(--text); border-color: var(--line-strong); }
.region-btn.active {
  background: rgba(35,229,207,0.10); color: var(--signal); font-weight: 700;
  border-color: var(--signal-dim); box-shadow: inset 0 0 12px rgba(35,229,207,0.12);
}
#topbar-logo { height: 24px; filter: brightness(1) saturate(1); opacity: 0.92; }

/* 햄버거 메뉴 버튼 — 데스크톱에서는 숨김, 모바일 브레이크포인트에서만 표시 */
#sidebar-toggle {
  display: none; width: 34px; height: 34px; margin-right: 4px; padding: 0; flex-shrink: 0;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 8px;
  cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
#sidebar-toggle span { display: block; width: 16px; height: 2px; background: var(--text-dim); border-radius: 1px; }
#sidebar-toggle:hover span { background: var(--text); }

/* 사이드바가 오버레이 드로어로 뜰 때 뒤를 덮는 반투명 배경(모바일 전용) */
#sidebar-backdrop { display: none; position: fixed; inset: 0; z-index: 1400; background: rgba(0,0,0,0.5); }
#sidebar-backdrop.visible { display: block; }

/* --- 좌측 사이드바 --- */
#sidebar {
  position: absolute; top: 52px; left: 0; bottom: 0; width: 330px; z-index: 1000;
  background: var(--panel-glass); color: var(--text); overflow-y: auto;
  border-right: 1px solid var(--line);
  box-shadow: 4px 0 24px rgba(0,0,0,0.4);
  backdrop-filter: blur(14px) saturate(140%);
  padding: 16px 0; display: flex; flex-direction: column;
}
.sidebar-bottom { margin-top: auto; padding-bottom: 8px; }
#sidebar-copyright {
  margin: 20px 18px 0; font-size: 9px; color: var(--text-faint);
  opacity: 0.55; text-align: center; letter-spacing: 0.01em;
}
#sidebar-datacredit {
  margin: 16px 18px 0; padding: 8px 10px; font-size: 10.5px; line-height: 1.5;
  color: var(--text-dim); border: 1px solid var(--line); border-radius: 8px;
}
#sidebar-datacredit b { color: var(--text); font-size: 11px; }
#sidebar-datacredit ul { margin: 4px 0 4px; padding-left: 14px; }
#sidebar-datacredit a { color: inherit; text-decoration: underline; }
#sidebar-datacredit span { opacity: 0.75; }
#sidebar-datacredit li { margin-bottom: 5px; }
#sidebar-datacredit .credit-legal {
  margin: 2px 0 0; padding-left: 6px; border-left: 2px solid var(--line);
  font-size: 9.5px; line-height: 1.45; opacity: 0.85;
}
#credit-detail-btn {
  display: block; width: 100%; margin-top: 6px; padding: 5px 8px;
  font-size: 10.5px; color: var(--text); cursor: pointer;
  background: rgba(35,229,207,0.08); border: 1px solid var(--line-strong); border-radius: 6px;
}
#credit-detail-btn:hover { background: rgba(35,229,207,0.16); }
/* 자료 출처·이용 조건 상세 창 (CCTV 확대 창과 같은 방식: 바깥 클릭/ESC/× 로 닫음) */
#credit-modal {
  position: fixed; inset: 0; z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(4,8,14,0.72); backdrop-filter: blur(3px);
}
#credit-modal.hidden { display: none; }
#credit-modal-box {
  position: relative; width: min(640px, 92vw);
  background: var(--panel-glass-strong); border: 1px solid var(--line-strong);
  border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
#credit-modal-body {
  max-height: 84vh; overflow-y: auto; box-sizing: border-box; padding: 20px 24px;
  color: var(--text); font-size: 12.5px; line-height: 1.6;
}
#credit-modal-body h2 { margin: 0 0 8px; font-size: 15px; }
#credit-modal-body h3 { margin: 14px 0 4px; font-size: 12.5px; color: var(--signal); }
#credit-modal-body p { margin: 0 0 4px; color: var(--text-dim); }
#credit-modal-body a { color: inherit; text-decoration: underline; }
#credit-modal-body .credit-note { margin-top: 14px; opacity: 0.8; }
#credit-modal-close {
  position: absolute; top: -14px; right: -14px; z-index: 1;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--panel-glass-strong); border: 1px solid var(--line-strong);
  color: var(--text); font-size: 18px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}
#credit-modal-close:hover { background: rgba(255,255,255,0.12); }

.sidebar-nav-link {
  display: flex; align-items: center; gap: 8px;
  margin: 8px 18px 0; padding: 8px 12px;
  background: rgba(255,159,67,0.08); border: 1px solid rgba(255,159,67,0.35);
  border-radius: 8px; color: var(--text); font-size: 12.5px; font-weight: 700;
  text-decoration: none; cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.sidebar-nav-link:first-of-type { margin-top: 14px; }
.sidebar-nav-link:hover { background: rgba(255,159,67,0.18); border-color: rgba(255,159,67,0.55); }
/* 아이콘을 고정 너비 슬롯에 두어, 제목 글자수가 달라도 두 버튼의 아이콘 x좌표가 항상 같게 한다. */
.sidebar-nav-link .nwb-icon { font-size: 13px; color: #ff9f43; flex-shrink: 0; width: 16px; text-align: center; }
.sidebar-nav-link-text { flex: 1; display: flex; flex-direction: column; align-items: center; line-height: 1.35; }
.sidebar-nav-link-source { font-size: 9px; font-weight: 500; color: var(--text-faint); }
.sidebar-section-title {
  font-size: 11px; font-weight: 700; color: var(--text-faint);
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 8px 18px; display: flex; align-items: center; justify-content: space-between;
}
.sidebar-divider { height: 1px; background: var(--line); margin: 10px 0; }

.layer-toggle {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 18px; font-size: 13.5px; font-weight: 500;
  transition: background 0.15s ease;
}
.layer-toggle:hover { background: rgba(255,255,255,0.03); }
.layer-label { flex: 1; color: var(--text-dim); }

.switch { position: relative; display: inline-block; width: 34px; height: 19px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider {
  position: absolute; cursor: pointer; inset: 0; background: rgba(255,255,255,0.12);
  border: 1px solid var(--line);
  border-radius: 20px; transition: 0.15s;
}
.switch-slider::before {
  content: ""; position: absolute; width: 13px; height: 13px; left: 2px; top: 2px;
  background: #cfe9f0; border-radius: 50%; transition: 0.15s;
}
.switch input:checked + .switch-slider {
  background: rgba(35,229,207,0.18); border-color: var(--signal-dim);
  box-shadow: 0 0 10px rgba(35,229,207,0.25);
}
.switch input:checked + .switch-slider::before { background: var(--signal); transform: translateX(15px); box-shadow: 0 0 6px rgba(35,229,207,0.8); }

/* 파랑/바람 하위 레이어를 세로 목록 대신 가로 세그먼트 버튼으로 묶어서 보여준다 */
.layer-seg-group { display: flex; gap: 6px; padding: 4px 18px 12px; }
.layer-seg-btn {
  flex: 1; position: relative; display: flex; align-items: center; justify-content: center;
  padding: 8px 4px; border-radius: 8px; cursor: pointer; user-select: none;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line);
  font-size: 12px; font-weight: 600; color: var(--text-dim); text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.layer-seg-btn:hover { background: rgba(255,255,255,0.08); color: var(--text); }
.layer-seg-btn input { position: absolute; opacity: 0; width: 0; height: 0; }
.layer-seg-btn.active {
  background: rgba(35,229,207,0.16); border-color: var(--signal-dim); color: var(--signal);
  box-shadow: 0 0 10px rgba(35,229,207,0.18);
}

/* 출처 안내 "i" 버튼 + 팝오버 */
.info-btn {
  flex-shrink: 0; width: 15px; height: 15px; border-radius: 50%;
  background: transparent; border: 1px solid var(--text-faint); color: var(--text-faint);
  font-size: 10px; font-style: italic; font-family: Georgia, serif; font-weight: 700;
  line-height: 1; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.info-btn:hover, .info-btn.active {
  color: var(--signal); border-color: var(--signal-dim); background: rgba(35,229,207,0.10);
}

#info-popover {
  position: absolute; z-index: 1300; max-width: 260px;
  background: rgba(10,20,30,0.96); border: 1px solid var(--line-strong); border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
  padding: 10px 12px; font-size: 12px; line-height: 1.5;
}
#info-popover.hidden { display: none; }
#info-popover-title { font-size: 12.5px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
#info-popover-body { color: var(--text-dim); }
#info-popover-body a { color: var(--signal); text-decoration: none; }
#info-popover-body a:hover { text-decoration: underline; }

/* 해무관측소 CCTV 확대보기 — 지도가 차지하는 영역 정도 크기로, 가운데 크게 띄운다 */
#cctv-modal {
  position: fixed; inset: 0; z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(4,8,14,0.72); backdrop-filter: blur(3px);
}
#cctv-modal.hidden { display: none; }
#cctv-modal-box {
  position: relative;
  width: min(1200px, 88vw); height: min(760px, 84vh);
  background: var(--panel-glass-strong); border: 1px solid var(--line-strong);
  border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  padding: 14px;
}
#cctv-modal-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
#cctv-modal-caption {
  position: absolute; left: 20px; bottom: 12px;
  font-size: 11px; font-family: var(--mono); color: var(--text-faint);
}
#cctv-modal-close {
  position: absolute; top: -14px; right: -14px; z-index: 1;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--panel-glass-strong); border: 1px solid var(--line-strong);
  color: var(--text); font-size: 18px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}
#cctv-modal-close:hover { background: rgba(255,255,255,0.12); }

/* --- 하단 메테오그램 (윈디 스타일 시간/기상 테이블) --- */
#meteogram {
  position: absolute; left: 330px; right: 0; bottom: 0; height: 214px; z-index: 1000;
  background: var(--panel-glass-strong); border-top: 1px solid var(--line);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.45);
  backdrop-filter: blur(14px) saturate(140%);
  display: flex; flex-direction: column; align-items: stretch;
}
/* 탭/테이블/차트를 담는 내부 래퍼. 접혔을 때 넘치는 내용을 잘라내는 overflow:hidden은
   이 래퍼에만 걸어서, #meteogram 바깥으로 튀어나와 있는 접기 버튼(top:-17px)이
   부모의 overflow:hidden 때문에 함께 잘려서 안 보이는 일이 없게 한다. */
#meteogram-body { position: relative; display: flex; flex-direction: column; align-items: stretch; flex: 1; min-height: 0; }
#meteogram-tabs {
  display: flex; gap: 4px; padding: 6px 12px 0;
  border-bottom: 1px solid var(--line); flex-shrink: 0; height: 30px; box-sizing: border-box;
}
.meteo-tab {
  background: transparent; border: none; color: var(--text-faint);
  font-size: 12px; font-weight: 600; padding: 5px 14px; cursor: pointer; border-radius: 6px 6px 0 0;
  border-bottom: 2px solid transparent; transition: color 0.15s ease;
}
.meteo-tab:hover { color: var(--text-dim); }
.meteo-tab.active { color: var(--signal); border-bottom: 2px solid var(--signal); font-weight: 700; }
/* 세로 스크롤은 막고 가로(시간축) 스크롤만 허용한다. 표 행 개수가 늘어나 실제로
   넘치더라도 세로 스크롤바 대신 그냥 잘리는 편이 자연스럽다는 판단. */
#meteogram-scroll { position: relative; flex: 1; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
/* 지점을 새로 클릭했을 때 예전 지점 데이터가 잠깐 그대로 남아있으면 멈춘 것처럼 보이므로,
   새 데이터가 도착할 때까지 즉시 이 오버레이로 덮어서 "불러오는 중"임을 바로 알려준다.
   테이블(#meteogram-scroll)뿐 아니라 차트(#meteo-chart) 탭에서도 항상 보이도록
   #meteogram-body 기준으로 탭 바(30px) 아래 전체를 덮는다. */
#meteogram-loading {
  position: absolute; top: 30px; left: 0; right: 0; bottom: 0; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6,17,28,0.72); backdrop-filter: blur(2px);
  color: var(--text-dim); font-size: 12px; font-weight: 600;
  animation: meteogram-loading-fade 1.4s ease-in-out infinite;
}
#meteogram-loading.hidden { display: none; }
@keyframes meteogram-loading-fade { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
#meteo-chart { flex: 1; display: block; overflow: hidden; cursor: pointer; }
#play-btn {
  background: rgba(35,229,207,0.14); border: 1px solid var(--signal-dim); color: var(--signal);
  width: 26px; height: 26px;
  border-radius: 50%; cursor: pointer; font-size: 11px; flex-shrink: 0;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
#play-btn:hover { background: rgba(35,229,207,0.24); box-shadow: 0 0 12px rgba(35,229,207,0.35); }
#play-btn.playing { background: var(--coral); border-color: var(--coral); color: #fff; }

#now-btn {
  background: rgba(35,229,207,0.14); border: 1px solid var(--signal-dim); color: var(--signal);
  width: 26px; height: 26px;
  border-radius: 50%; cursor: pointer; font-size: 12px; flex-shrink: 0;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
#now-btn:hover { background: rgba(35,229,207,0.24); box-shadow: 0 0 12px rgba(35,229,207,0.35); }

#meteogram-scroll::-webkit-scrollbar { height: 10px; width: 10px; }
#meteogram-scroll::-webkit-scrollbar-thumb { background: rgba(148,209,224,0.22); border-radius: 5px; }
#meteogram-scroll::-webkit-scrollbar-thumb:hover { background: rgba(148,209,224,0.34); }
#meteogram-table { border-collapse: collapse; font-size: 11px; font-family: var(--mono); color: var(--text); white-space: nowrap; }
#meteogram-table th, #meteogram-table td {
  padding: 4px 5px; text-align: center; min-width: 28px;
  border-right: 1px solid rgba(148,209,224,0.06);
}
#meteogram-table thead th {
  position: sticky; top: 0; background: var(--panel-900); font-family: 'Pretendard Variable', sans-serif;
}
#meteogram-table tbody th, #meteogram-table thead th.meteo-corner {
  position: sticky; left: 0; background: var(--panel-900); z-index: 3;
  text-align: left; color: var(--text-faint); font-weight: 600; font-family: 'Pretendard Variable', sans-serif;
  box-shadow: 2px 0 6px rgba(0,0,0,0.35);
}
#meteo-day-row th { font-weight: 700; border-bottom: 1px solid var(--line); font-family: 'Pretendard Variable', sans-serif; }
#meteo-day-row th.meteo-corner { background: var(--panel-900); }
.meteo-col { cursor: pointer; transition: background 0.12s ease; }
.meteo-col:hover { background: rgba(35,229,207,0.08); }
.meteo-col.active-col { background: rgba(35,229,207,0.16) !important; color: var(--signal); font-weight: 700; box-shadow: inset 0 0 0 1px var(--signal-dim); }
.meteo-col.meteo-past { background: rgba(255,255,255,0.02); color: rgba(234,244,251,0.28); }
.meteo-arrow { display: inline-block; }
.meteo-empty { opacity: 0.3; }

/* --- 상단 베이스맵 전환 (사이드바 바로 옆, 왼쪽) --- */
#basemap-switch {
  position: absolute; top: 66px; left: 346px; z-index: 1000; width: 80px;
  background: var(--panel-glass); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.45); display: flex; flex-direction: column;
  backdrop-filter: blur(14px) saturate(140%);
}
.basemap-btn {
  background: transparent; border: none; color: var(--text-dim);
  padding: 9px 16px; font-size: 12.5px; font-weight: 500; cursor: pointer; text-align: left;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease, color 0.15s ease;
}
.basemap-btn:last-child { border-bottom: none; }
.basemap-btn:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.basemap-btn.active { color: var(--signal); background: rgba(35,229,207,0.10); font-weight: 700; }

/* 확대/축소(+/-) 버튼을 일반지도/위성지도 전환 박스와 같은 줄, 같은 크기·스타일로 그 오른쪽에 살짝 띄워서 배치 */
.leaflet-control-zoom {
  position: absolute !important; top: 66px !important; left: 394px !important; margin: 0 !important;
  border: 1px solid var(--line) !important; border-radius: 10px !important; overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.45);
}
.leaflet-control-zoom a {
  background: var(--panel-glass) !important; color: var(--text-dim) !important;
  border-color: var(--line) !important;
  width: 34px !important; height: 38px !important; line-height: 38px !important;
  font-size: 16px !important; border-radius: 0 !important;
}
.leaflet-control-zoom a:first-child { border-bottom: 1px solid var(--line) !important; }
.leaflet-control-attribution {
  background: rgba(6,17,28,0.7) !important; color: var(--text-faint) !important;
}

/* --- 거리/면적/반경 측정 도구 (일반지도/위성지도 버튼 아래, 살짝 띄워서 배치) --- */
#measure-toolbox {
  position: absolute; top: 154px; left: 346px; z-index: 1000; width: 80px;
  background: var(--panel-glass); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.45); display: flex; flex-direction: column;
  backdrop-filter: blur(14px) saturate(140%);
}
/* 일반지도/위성지도 버튼(.basemap-btn)과 같은 너비·높이·글자 크기로 맞추고,
   아이콘은 텍스트 왼쪽에 나란히(세로로 쌓지 않고) 배치한다. */
.measure-btn {
  background: transparent; border: none; color: var(--text-dim);
  padding: 9px 14px; font-size: 12.5px; font-weight: 500; cursor: pointer; text-align: left;
  display: flex; flex-direction: row; align-items: center; gap: 7px;
  border-bottom: 1px solid var(--line);
  box-sizing: border-box;
  transition: background 0.15s ease, color 0.15s ease;
}
.measure-btn svg { flex-shrink: 0; width: 14px; height: 14px; }
.measure-btn:last-child { border-bottom: none; }
.measure-btn:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.measure-btn.active { color: var(--signal); background: rgba(35,229,207,0.14); font-weight: 700; }

#measure-result-panel {
  position: absolute; z-index: 1300;
  background: var(--panel-glass-strong); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.55);
  backdrop-filter: blur(16px) saturate(150%);
  padding: 10px 12px; font-size: 12px; min-width: 150px;
}
#measure-result-panel.hidden { display: none; }
#measure-result-content .measure-row { display: flex; justify-content: space-between; gap: 14px; padding: 2px 0; white-space: nowrap; }
#measure-result-content .measure-row .label { color: var(--text-dim); }
#measure-result-content .measure-row .value { font-weight: 700; font-family: var(--mono); color: #ff3b6b; }
#measure-clear-btn {
  margin-top: 8px; width: 100%; padding: 5px 0; font-size: 11px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--line); border-radius: 6px;
  color: var(--text-dim); cursor: pointer;
}
#measure-clear-btn:hover { background: rgba(255,255,255,0.1); color: var(--text); }
.measure-hint {
  margin-top: 6px; font-size: 9.5px; text-align: center;
  color: var(--text-faint); letter-spacing: 0.01em;
}

/* 거리 측정 시 각 구간마다 뜨는 작은 거리 라벨 */
.measure-seg-label {
  background: rgba(11,23,38,0.88); color: #fff; font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 4px; border: 1px solid rgba(255,59,107,0.5);
  white-space: nowrap; transform: translate(-50%, -50%);
}

/* --- 범례 (우하단) --- */
#legend {
  position: absolute; right: 16px; bottom: calc(var(--meteogram-h, 214px) + 4px); z-index: 1000;
  background: var(--panel-glass); color: var(--text); padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px; font-size: 12px; box-shadow: 0 6px 24px rgba(0,0,0,0.45);
  backdrop-filter: blur(14px) saturate(140%);
}
#legend-title { font-weight: 700; margin-bottom: 8px; letter-spacing: 0.02em; }
#legend-bar {
  width: 180px; height: 8px; border-radius: 4px;
  background: linear-gradient(to right, #3aa0ff 0%, #2ecc71 35%, #f1c40f 55%, #e67e22 75%, #d32f2f 90%, #9c27b0 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
#legend-labels { display: flex; justify-content: space-between; margin-top: 6px; color: var(--text-faint); font-family: var(--mono); font-size: 10.5px; }
#legend.hidden { display: none; }

/* --- 범례 (풍속, 파고 범례 왼쪽에 나란히) --- */
#wind-legend {
  position: absolute; right: 240px; bottom: calc(var(--meteogram-h, 214px) + 4px); z-index: 1000;
  background: var(--panel-glass); color: var(--text); padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px; font-size: 12px; box-shadow: 0 6px 24px rgba(0,0,0,0.45);
  backdrop-filter: blur(14px) saturate(140%);
}
#wind-legend.hidden { display: none; }
/* 파고 범례가 꺼져 있을 때는, 풍속 범례를 파고 범례 자리(오른쪽)로 옮겨서 빈 자리 없이 채운다. */
#wind-legend.solo { right: 16px; }
#wind-legend-title { font-weight: 700; margin-bottom: 8px; letter-spacing: 0.02em; }
#wind-legend-bar {
  width: 180px; height: 8px; border-radius: 4px;
  background: linear-gradient(to right, #3aa0ff 0%, #2ecc71 35%, #f1c40f 55%, #e67e22 75%, #d32f2f 90%, #9c27b0 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
#wind-legend-labels { display: flex; justify-content: space-between; margin-top: 6px; color: var(--text-faint); font-family: var(--mono); font-size: 10.5px; }

/* --- 면책 고지 바 (클릭 정보 패널과 같은 왼쪽 기준선, 화면 폭에 맞춰 늘어남) --- 항상 고정 노출.
   높이는 화면 폭과 무관하게 항상 일정(한 줄 고정). 바가 글자보다 훨씬 넓다 보니 글자 하나만
   흘러가면 앞뒤로 빈 공간이 길게 보여서 어색했다. 같은 문구를 간격을 두고 두 벌 나란히
   놓고, 그 "한 벌 너비 + 간격"만큼만 이동한 뒤 되감으면 두 번째 사본이 곧바로 첫 번째가
   있던 자리를 채우면서 끊김 없이 계속 흘러가는 것처럼 보인다(고전적인 marquee 트릭).
   이동 거리(--disclaimer-unit)는 JS가 실제 글자 폭 + 간격을 재서 정확히 넣어준다. */
#disclaimer-bar {
  position: absolute; left: 440px; right: 16px;
  top: 66px; z-index: 1000;
  height: 30px; box-sizing: border-box; overflow: hidden;
  background: var(--panel-glass); border: 1px solid var(--line); border-radius: 8px;
  backdrop-filter: blur(14px) saturate(140%);
}
#disclaimer-track {
  display: flex; align-items: center; height: 100%; gap: 80px;
  width: max-content;
  animation-name: disclaimer-scroll;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-duration: var(--disclaimer-duration, 40s);
}
.disclaimer-copy {
  white-space: nowrap; font-size: 10.5px; color: var(--text-dim); flex-shrink: 0;
}
@keyframes disclaimer-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-1 * var(--disclaimer-unit, 800px))); }
}

/* --- 클릭 정보 패널 --- */
/* 지도 클릭 시 뜨는 파랑정보 패널: 관측부이 패널(#obs-info-panel)과 같은 세로 카드
   스타일로, 우상단 같은 자리에 띄운다. 관측소 마커를 클릭하면 두 패널이 동시에 뜨는
   경우가 있는데, 이때는 JS(positionObsPanelBelowClickInfo)가 관측소 카드를 이 카드
   바로 아래로 내려서 세로로 쌓는다(JS가 넣어주는 인라인 left/top은 !important로 덮어씀). */
#click-info-panel {
  position: absolute; z-index: 1200;
  right: 16px !important; top: 66px !important; left: auto !important; bottom: auto !important;
  width: 214px; box-sizing: border-box;
  height: auto;
  background: var(--panel-glass-strong); color: var(--text); border-radius: 10px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 8px 28px rgba(0,0,0,0.55), 0 0 0 1px rgba(35,229,207,0.06);
  backdrop-filter: blur(16px) saturate(150%);
  padding: 14px 16px; font-size: 13px;
}
#click-info-panel.hidden { display: none; }
#click-info-close {
  position: absolute; top: 0; right: 0;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; padding: 0; margin: 0;
  color: var(--text-faint); font-size: 18px; line-height: 1;
  cursor: pointer; border-radius: 0 10px 0 4px;
  box-sizing: border-box; transition: color 0.15s ease;
}
#click-info-close:hover { color: var(--text); background: rgba(255,255,255,0.08); }
/* #obs-info-panel의 .obs-panel-row와 동일한 라벨-값 가로 배치를 세로로 쌓는다. */
#click-info-content { display: block; }
.wave-popup-coords {
  font-size: 10.5px; font-family: var(--mono); color: var(--text-faint);
  padding-right: 20px; /* 우상단 닫기(x) 버튼과 겹치지 않게 */
}
.wave-popup-time {
  font-size: 10.5px; font-family: var(--mono); color: var(--text-faint); margin-bottom: 10px;
}
.wave-popup-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 0; border-bottom: 1px solid var(--line); gap: 12px;
}
.wave-popup-row:last-child { border-bottom: none; }
.wave-popup-row .label { color: var(--text-dim); font-size: 12px; }
.wave-popup-row .value { font-weight: 700; font-family: var(--mono); color: var(--text); font-size: 13px; }

.dir-arrow { pointer-events: none; }

/* 조위 관측소 마커 툴팁 */
.tidal-station-tooltip {
  background: rgba(10, 20, 30, 0.94); border: 1px solid var(--amber);
  color: var(--amber); font-size: 12px; font-weight: 700; font-family: var(--mono);
  padding: 3px 9px; border-radius: 6px; white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5), 0 0 8px rgba(255,176,32,0.15);
}
.tidal-station-tooltip::before { border-top-color: var(--amber) !important; }

/* --- 추가정보 사이드바 그룹 --- */
.sidebar-group-header {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px 6px 12px; cursor: default;
}
.grp-collapse-btn {
  background: rgba(255,255,255,0.08); border: 1px solid var(--line); color: var(--text-dim);
  width: 18px; height: 18px; border-radius: 5px; font-size: 13px; line-height: 1;
  cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  padding: 0; transition: background 0.15s ease;
}
.grp-collapse-btn:hover { background: rgba(255,255,255,0.16); color: var(--text); }
.grp-label { flex: 1; font-size: 12.5px; font-weight: 700; color: var(--text-dim); letter-spacing: 0.02em; }
.sidebar-group-items { overflow: hidden; transition: max-height 0.2s ease; max-height: 200px; }
.sidebar-group-items.collapsed { max-height: 0 !important; }
.layer-seg-btn.grp-disabled { opacity: 0.4; pointer-events: none; }

/* --- 관측소 정보 패널 (마커 클릭 시 우측) — HUD 코너 브래킷 시그니처 --- */
#obs-info-panel {
  position: absolute; z-index: 1200;
  top: 66px; right: 16px;
  background: var(--panel-glass-strong); color: var(--text); border-radius: 10px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 8px 28px rgba(0,0,0,0.55);
  backdrop-filter: blur(16px) saturate(150%);
  padding: 10px 14px; font-size: 13px; width: 214px; box-sizing: border-box;
}
#obs-info-panel.hidden { display: none; }

/* HUD corner brackets — shared signature on both info panels */
#obs-info-panel::before, #obs-info-panel::after,
#click-info-panel::before, #click-info-panel::after {
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none;
  border-color: var(--signal); opacity: 0.85;
}
#obs-info-panel::before, #click-info-panel::before {
  top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; border-radius: 10px 0 0 0;
}
#obs-info-panel::after, #click-info-panel::after {
  bottom: -1px; right: -1px; border-bottom: 2px solid; border-right: 2px solid; border-radius: 0 0 10px 0;
}

#obs-info-close {
  position: absolute; top: 0; right: 0;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; padding: 0; margin: 0;
  color: var(--text-faint); font-size: 18px; line-height: 1;
  cursor: pointer; border-radius: 0 10px 0 4px; box-sizing: border-box;
  transition: color 0.15s ease;
}
#obs-info-close:hover { color: var(--text); background: rgba(255,255,255,0.08); }
.obs-panel-title {
  font-size: 10.5px; font-weight: 700; color: var(--text-faint); font-family: var(--mono);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 5px; padding-right: 20px; display: flex; align-items: center; gap: 6px;
}
.obs-panel-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 6px 1px currentColor; }
.obs-panel-name { font-size: 13.5px; font-weight: 700; color: var(--text); margin-bottom: 2px; padding-right: 20px; }
.obs-panel-coords { font-size: 10px; font-family: var(--mono); color: var(--text-faint); margin-bottom: 6px; }
.obs-panel-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 2.5px 0; border-bottom: 1px solid var(--line); gap: 12px;
}
.obs-panel-row:last-child { border-bottom: none; }
.obs-panel-row .label { color: var(--text-dim); font-size: 11px; }
.obs-panel-row .value { font-weight: 700; font-size: 12px; font-family: var(--mono); color: var(--text); }
.obs-panel-pending {
  font-size: 12px; color: var(--text-faint);
  text-align: center; padding: 12px 0;
  border: 1px dashed var(--line-strong); border-radius: 8px; margin-top: 6px;
}
#tide-mini-chart { display: block; width: 100%; margin: 6px 0; }
/* 해무관측소 CCTV 스냅샷 (obs-panel-row 목록 아래에 이어 붙는다) */
.seafog-cctv-box { margin-top: 8px; }
.seafog-cctv-label {
  font-size: 10.5px; color: var(--text-faint); font-family: var(--mono);
  margin-bottom: 4px;
}
.seafog-cctv-img {
  display: block; width: 100%; border-radius: 8px;
  border: 1px solid var(--line-strong);
}
/* 만조/간조 행: 날짜/시각은 라벨 바로 옆에 왼쪽 정렬로 나란히, 조위(cm)만 오른쪽 끝으로 민다. */
.tide-extrema-row { justify-content: flex-start; gap: 8px; }
.tide-extrema-row .tide-dt {
  font-family: var(--mono); font-size: 11px; color: var(--text-dim); white-space: nowrap;
}
.tide-extrema-row .value { margin-left: auto; }

/* 관측소/부이 마커 팝업 */
.obs-marker-tooltip {
  background: rgba(10,20,30,0.94); border: 1px solid var(--line-strong);
  color: var(--text); font-size: 11px; font-weight: 700; font-family: var(--mono);
  padding: 2px 8px; border-radius: 5px; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* 태풍 추적 마커 팝업 */
.typhoon-leaflet-popup .leaflet-popup-content-wrapper {
  background: rgba(10,20,30,0.95); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.55);
}
.typhoon-leaflet-popup .leaflet-popup-tip { background: rgba(10,20,30,0.95); border: 1px solid var(--line-strong); }
.typhoon-leaflet-popup .leaflet-popup-content { margin: 10px 12px; }
.typhoon-leaflet-popup a.leaflet-popup-close-button { color: var(--text-dim); }
.typhoon-popup-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.typhoon-popup-row {
  display: flex; justify-content: space-between; gap: 14px;
  font-size: 11.5px; padding: 3px 0; border-bottom: 1px solid var(--line);
}
.typhoon-popup-row:last-child { border-bottom: none; }
.typhoon-popup-row span:first-child { color: var(--text-dim); }
.typhoon-popup-row span:last-child { font-family: var(--mono); font-weight: 700; color: var(--text); }
.typhoon-popup-note {
  margin-top: 8px; padding-top: 7px; border-top: 1px dashed var(--line-strong);
  font-size: 10px; line-height: 1.4; color: var(--text-faint); max-width: 220px;
}

/* --- 선택 지점 마커 (우클릭 시) --- */
.selection-marker {
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.6)) drop-shadow(0 0 10px rgba(35,229,207,0.8));
  animation: selection-pulse 1.4s ease-in-out infinite;
}
@keyframes selection-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* ================= 모바일 레이아웃 ================= */
@media (max-width: 768px) {
  /* CCTV 확대보기는 데스크톱 전용 — 모바일에선 패널 안 썸네일 그대로만 보여준다 */
  #cctv-modal { display: none !important; }

  #sidebar-toggle { display: flex; }

  #topbar { padding: 0 8px; gap: 6px; }
  /* 워드마크 텍스트는 공간이 없어 숨기고, 햄버거+로고만으로 브랜드를 표시한다.
     그렇게 비운 자리를 지역 버튼 3개가 스크롤 없이 다 보이는 데 쓴다. */
  #topbar-title { display: none; }
  .topbar-spacer { flex: 0 0 6px; }
  #topbar-regions { display: flex; gap: 4px; overflow-x: visible; max-width: none; flex: 1; justify-content: center; }
  .region-btn { padding: 5px 9px; font-size: 11px; }
  #topbar-logo { height: 15px; }

  /* 사이드바: 평소엔 화면 밖에 숨어있다가 햄버거를 누르면 슬라이드로 들어오는 오버레이 드로어 */
  #sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: min(82vw, 300px); z-index: 1500;
    padding-top: 62px;
    transform: translateX(-100%); transition: transform 0.25s ease;
    box-shadow: 8px 0 32px rgba(0,0,0,0.6);
    /* 하위 메뉴가 많아 내용이 화면보다 길어질 수 있어 세로 스크롤 필요 — 터치 관성
       스크롤을 부드럽게 하고, 끝까지 스크롤했을 때 뒤의 지도로 스크롤이 새는(overscroll) 것도 막는다. */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  #sidebar.open { transform: translateX(0); }

  /* 메테오그램: 항상 화면 전체 너비로, 접힘 없이 항상 펼쳐진 상태로 표시.
     높이는 테이블 전체 행(탭 30px + 헤더 2행 + 데이터 6행)이 한 번에 다 보이도록 넉넉히 잡는다.
     bottom을 safe-area-inset만큼 띄워서 홈 인디케이터/제스처 바에 가려지지 않게 한다
     (index.html의 viewport-fit=cover와 같이 있어야 동작함). */
  #meteogram { left: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); height: 232px; }

  /* 범례: 사이드바가 오버레이로 바뀌면서 비게 된 좌상단 공간에 나란히 배치.
     면책 고지 바를 그 위에 얹으므로 범례는 한 줄 더 아래로 내린다. */
  #legend, #wind-legend {
    top: 92px; bottom: auto; padding: 8px 10px; font-size: 10px;
  }
  #legend { left: 10px; right: auto; }
  #wind-legend { left: 120px; right: auto; }
  /* 파고 범례가 꺼져 있으면 그 자리(모바일)로 이동. desktop용 .solo 규칙이 right:16px를
     같이 걸어둬서 left와 right가 동시에 걸리면 박스가 그 사이 폭 전체로 늘어나
     버렸다(풍속 컬러바가 화면을 꽉 채우는 것처럼 보이던 원인) — right를 명시적으로
     풀어줘서 원래 크기(패딩+막대 폭)만큼만 차지하게 한다. */
  #wind-legend.solo { left: 10px; right: auto; }
  #legend-bar, #wind-legend-bar { width: 80px; }
  #legend-title, #wind-legend-title { font-size: 10.5px; margin-bottom: 6px; }

  /* 위성지도/일반지도 전환 버튼도 같은 top:60 줄에 있어서, 고지 바가 전체 폭을 차지하면
     그 버튼을 그대로 덮어버린다. 버튼 앞까지만 오도록 오른쪽 여백을 넉넉히 둔다. */
  #disclaimer-bar { top: 60px; bottom: auto; left: 10px; right: 150px; width: auto; }

  /* 클릭 정보 패널: 화면을 다 덮는 카드 대신, 메테오그램 바로 위에 붙는 얇은 가로 스크롤 바로 전환.
     --meteogram-h는 JS가 메테오그램 실제 높이(접힘/펼침에 따라 다름)를 재서 넣어준다.
     meteogram 자체가 safe-area만큼 떠 있으므로 여기도 같은 만큼 더해서 간격을 맞춘다. */
  #click-info-panel {
    left: 6px !important; right: 6px !important; top: auto !important;
    bottom: calc(var(--meteogram-h, 232px) + 8px + env(safe-area-inset-bottom, 0px) + 22px) !important;
    width: auto; max-width: none; min-width: 0;
    height: auto !important; /* 데스크톱의 76px 고정 높이는 모바일에는 너무 커서 내용 크기에 맞춘다 */
    padding: 6px 34px 6px 10px !important;
  }
  #click-info-panel::before, #click-info-panel::after { display: none; } /* 얇은 바에는 HUD 코너 브래킷 생략 */
  .wave-popup-coords, .wave-popup-time { display: none; } /* 좌표/시각 텍스트는 공간이 없어 생략 */
  #click-info-content { display: flex; align-items: stretch; gap: 12px; overflow-x: auto; }
  .wave-popup-row {
    display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
    flex-shrink: 0; gap: 1px; padding: 0; border-bottom: none; white-space: nowrap;
  }
  .wave-popup-row .label { font-size: 9.5px; color: var(--text-faint); }
  .wave-popup-row .value { font-size: 12.5px; }
  #click-info-close { width: 26px; height: 26px; }

  /* 관측소 패널(마커 클릭)은 항목이 많아 얇은 바로는 안 담기니, 화면 안에 고정된 카드로만 전환 */
  #obs-info-panel {
    left: 10px !important; right: 10px !important; top: 118px !important; bottom: auto !important;
    width: auto; max-width: none; max-height: 50vh; overflow-y: auto;
  }

  /* 일반지도/위성지도 전환: 세로로 쌓인 큰 박스 대신 작은 가로 알약 한 쌍으로 줄여서 상단에 배치 */
  #basemap-switch {
    top: 60px; bottom: auto; left: auto; right: 10px;
    flex-direction: row; border-radius: 8px;
  }
  .basemap-btn { padding: 6px 10px; font-size: 10.5px; border-bottom: none; border-right: 1px solid var(--line); }
  .basemap-btn:last-child { border-right: none; }
  .leaflet-control-zoom { display: none !important; } /* 모바일은 터치 핀치줌으로 충분해서 버튼 자체를 없앤다 */

  /* 측정 도구도 일반지도/위성지도 알약 바로 밑에, 같은 크기·스타일(가로 알약)로 배치.
     모바일에서는 화면이 좁아 반경은 빼고 면적/거리 2개만 보여준다. */
  #measure-toolbox {
    top: 114px; bottom: auto; left: auto; right: 10px;
    flex-direction: row; border-radius: 8px; width: auto;
  }
  .measure-btn[data-mode="radius"] { display: none; }
  /* 일반지도/위성지도처럼(스크린샷 참고) 아이콘을 위, 글자를 아래에 두 줄로 쌓아서
     같은 구조·높이가 되게 한다(빈 여백으로 키만 맞추는 대신). */
  .measure-btn {
    padding: 6px 10px; font-size: 10.5px; border-bottom: none; border-right: 1px solid var(--line);
    flex-direction: column; gap: 2px;
  }
  .measure-btn:last-child { border-right: none; }
  .measure-btn svg { width: 15px; height: 15px; }

  /* 터치 히트 영역 확대 */
  .info-btn { width: 20px; height: 20px; font-size: 12px; }
  .grp-collapse-btn { width: 26px; height: 26px; font-size: 15px; }
  .switch { width: 40px; height: 23px; }
  .switch-slider::before { width: 17px; height: 17px; }
  .switch input:checked + .switch-slider::before { transform: translateX(17px); }
}

/* 메테오그램 재생 중 다음 프레임(9.3MB)을 아직 못 받아왔을 때, 벡터 화살표가 이전
   프레임 값 그대로 멈춰 있는 것처럼 보이지 않도록 깜빡여서 "로딩 중"임을 알려준다. */
@keyframes vector-loading-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.vector-loading-pulse {
  animation: vector-loading-pulse 0.9s ease-in-out infinite;
}
