/* ============================================================
   패파로그 고객 콘솔 v2 — 다크 대시보드 스킨
   ============================================================
   docs/ui/dashboard/admin-dashboard-improvement.md의 구성(상태 요약 → KPI →
   분석 차트 → 최근 탐지 → 우측 패널)을 그대로 따르되, 비주얼은 사용자가 지정한
   다크 레퍼런스(네이비 배경 + 그라디언트 KPI 카드)를 따른다.

   기존 콘솔(../index.html, ../styles/*)은 건드리지 않는다 — 이 파일은 v2 전용이고
   토큰 이름도 전부 --v2- 접두사를 붙여 섞이지 않게 한다.
   ============================================================ */

/* 2026-11-11: 색상 모드는 네이비(기본)·라이트 둘이다(color-mode.js). 아래 :root 값은 두 모드가 덮어쓰지 않은 토큰의 바탕값이다.
   2026-10-29 모노톤 스킨(디자인 시스템 표준 모드) — 네이비·그라디언트·빛 번짐이 "AI가 만든 화면"처럼 보인다는 피드백으로
   회색 단계 중심으로 바꿨다. 유채색은 위험(빨강), 주의(주황), 링크·포커스(파랑)에만 쓴다. 변수 이름은 그대로 두어 화면 코드는 고치지 않는다. */
/* 다크 모드 소프트 차콜(2026-11-10, 사용자 요청): 검정에 가까운 회색을 푸른 기가 도는 차콜로 바꿨다. 면은 사이드바 < 배경 < 카드 < 카드 안쪽 순으로
   한 단계씩 밝아지고(선 없이도 구분되게), 브랜드 블루(#3989F7)는 주 버튼·링크·선택 메뉴에만 쓴다. 판정·차트 색의 뜻은 그대로다.
   색은 모두 이 토큰으로 관리한다 — 화면 코드는 값을 직접 적지 않는다. */
:root {
  --v2-bg: #161A20;
  --v2-bg-glow: #161A20;
  --v2-sidebar: #11151B;
  --v2-surface: #242A32;
  --v2-surface-2: #2B323B;
  --v2-surface-3: #353D48;
  /* 선택된 메뉴 배경 — 본문 표 행·탭의 "선택"(surface-3)과 따로 둔다. 다른 색상 모드는 surface-3을 그대로 쓴다. */
  --v2-nav-active: #27394F;
  /* 카드·구분선은 면의 밝기 차이를 돕는 정도로만 — 카드(#242A32) 위 1.2:1 안팎. */
  --v2-border: #3A424D;
  --v2-border-soft: #2F3640;
  --v2-border-hover: #4D5865;
  /* 위험·주의 상자의 테두리 — 면을 칠하지 않고 선만 어둡게 물들인다. */
  --v2-line-danger: #5C3238;
  --v2-line-warn: #5C4524;

  --v2-text: #ECEFF3;
  /* 카드(#242A32) 위 보조 글자 7.0:1, 가장 작은 보조 글자(faint)도 5.3:1 — 예전 값(#9B9BA1·#808086)보다 밝다. */
  --v2-text-muted: #ABB5C1;
  --v2-text-faint: #939EAC;

  /* 주 버튼은 브랜드 블루 면 + 흰 글자. 누르면(hover) 한 단계 어둡게. */
  --v2-accent: #3989F7;
  --v2-accent-pressed: #2D74DB;
  --v2-on-accent: #FFFFFF;
  --v2-accent-soft: rgba(57, 137, 247, 0.10);
  /* 링크·키보드 포커스 — 브랜드 블루보다 한 단계 밝게 잡아 카드 위에서 5.8:1(브랜드 색 그대로면 4.2:1이라 작은 글자 대비가 모자란다). */
  --v2-link: #6BA5FA;

  /* 판정 3색 — 정상은 회색, 의심만 빨강, 차단은 어두운 회색. 차트·도넛·배지가 모두 같은 값을 쓴다. */
  --v2-normal: #A1A1A6;
  --v2-suspect: #EF4444;
  --v2-blocked: #74747A;

  --v2-red: #F96B7F;
  --v2-blue: #6BA5FA;
  /* 정상·해결 상태는 색 없이 회색으로 보인다(이름은 화면 코드 호환용). */
  --v2-green: #A1A1A6;
  --v2-purple: #A1A1A6;
  --v2-orange: #FB923C;
  /* 분석 그래프 색(charts.js). 정상(회색)·이상(빨강)은 밝기와 색상이 함께 달라 색약에도 구분된다.
     광고비(파랑)·매출(흰색)은 밝기로 구분한다. 확인중 회색은 일부러 무채색(상태 "보류"). */
  --v2-chart-normal: #A1A1A6;
  --v2-chart-pending: #64646A;
  --v2-chart-suspect: #EF4444;
  --v2-chart-cost: #7AA2FF;
  --v2-chart-revenue: #EDEDED;
  --v2-chart-muted: #323A45;
  /* 방문 추이 "이번 주" 선 — 예전에는 주 버튼 색(accent)을 빌려 썼다. 주 버튼이 파랑이 되어도 그래프 색은 그대로이도록 따로 둔다. */
  --v2-chart-cur: #ECEFF3;

  --v2-font: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  --v2-font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  /* 환급 장부 네 칸 — 다크 모드에서는 "얼마나 확실한 금액인가"를 밝기로 구분한다(확정이 가장 밝다). */
  --v2-ledger-estimated: #808086;
  --v2-ledger-judged: #B4B4B8;
  --v2-ledger-confirmed: #EDEDED;
  --v2-ledger-assumed: #5F5F66;
  /* 가정 장부 라벨 글자 — 선 색(#5F5F66)은 글자로 쓰기엔 어두워 한 단계 밝게. */
  --v2-ledger-assumed-text: #8A8A90;

  --v2-radius: 8px;
  --v2-radius-sm: 6px;
  color-scheme: dark;
}

/* 색상 모드 "네이비"(2026-10-29) — 사이드바 아래 [다크 | 네이비]으로 고른다(color-mode.js, localStorage pv2.color).
   모노톤으로 바꾸기 전의 네이비 색을 그대로 돌려놓는다. 모양(면 없는 카드, 아이콘 상태 표시, 4px 라벨)은 두 모드가 같고 색만 바뀐다.
   차트도 var(--v2-chart-*)를 읽으므로 함께 바뀐다. */
html[data-color="navy"] {
  /* 2026-11-11 네이비 정리(사용자 요청): 남색은 남기되 채도를 낮춘 블루그레이로. 사이드바 #0C1220 < 배경 #0F1420 < 섹션(카드 안쪽) #131B29 < 카드 #182232.
     선택 메뉴 #273B59, 테두리 #293548, 주 버튼 #3989F7. 글자 대비는 카드 위 기준 본문 14.6 · 보조 7.6 · 작은 보조 5.5 : 1. */
  --v2-nav-active: #273B59;
  --v2-bg: #0F1420;
  --v2-bg-glow: #0F1420;
  --v2-sidebar: #0C1220;
  --v2-surface: #182232;
  --v2-surface-2: #131B29;
  --v2-surface-3: #22304A;
  --v2-border: #293548;
  --v2-border-soft: #212C3D;
  --v2-border-hover: #3A4A63;
  --v2-line-danger: rgba(242, 85, 107, 0.4);
  --v2-line-warn: rgba(251, 146, 60, 0.35);
  --v2-text: #F2F5FA;
  --v2-text-muted: #A9B4C4;
  /* 예전 값(#6B739B)은 카드 위 3.5:1로 AA에 못 미쳤다. */
  --v2-text-faint: #8C99AD;
  --v2-accent: #3989F7;
  --v2-accent-pressed: #2D74DB;
  --v2-on-accent: #FFFFFF;
  --v2-accent-soft: rgba(57, 137, 247, 0.10);
  /* 링크는 주 버튼 색보다 한 단계 밝게 — 카드 위 6.4:1 */
  --v2-link: #6BA5FA;
  --v2-normal: #3B82F6;
  --v2-suspect: #EF4444;
  --v2-blocked: #94A3B8;
  --v2-red: #F2556B;
  --v2-blue: #6BA5FA;
  --v2-green: #2DD4A7;
  --v2-purple: #A78BFA;
  --v2-orange: #FB923C;
  --v2-chart-normal: #3B82F6;
  --v2-chart-pending: #64748B;
  --v2-chart-suspect: #EF4444;
  --v2-chart-cost: #3B82F6;
  --v2-chart-revenue: #1BAF7A;
  --v2-chart-muted: #263247;
  /* "이번 주" 선은 흰색 — 파란 "지난주" 선과 같은 계열이라 구분되지 않았다. */
  --v2-chart-cur: #F2F5FA;
  --v2-ledger-estimated: #F5B942;
  --v2-ledger-judged: #FB923C;
  --v2-ledger-confirmed: #2DD4A7;
  --v2-ledger-assumed: #A78BFA;
  --v2-ledger-assumed-text: #A78BFA;
}

/* 색상 모드 "라이트"(2026-10-30) — 사이드바 아래 [다크 | 네이비 | 라이트]로 고른다(color-mode.js).
   다크와 같은 모노톤 원칙: 면은 흰색·밝은 회색 단계, 유채색은 위험(빨강)·주의(주황)·링크(파랑)에만.
   흰 바탕에서 작은 글자로도 읽히게 빨강·주황·보조 글자는 다크보다 한 단계 어둡게 잡았다(흰 면 위 4.5:1 이상). */
html[data-color="light"] {
  --v2-nav-active: var(--v2-surface-3);
  /* 2026-11-11 라이트 정리: 페이지 #F5F6F8 위에 흰 카드(#FFFFFF), 카드 선은 #E4E7EC — 면 차이와 아주 옅은 선으로만 구분한다. */
  --v2-bg: #F5F6F8;
  --v2-bg-glow: #F5F6F8;
  --v2-sidebar: #FFFFFF;
  --v2-surface: #FFFFFF;
  --v2-surface-2: #F5F6F8;
  --v2-surface-3: #EBEDF1;
  --v2-border: #D5D9E0;
  --v2-border-soft: #E4E7EC;
  --v2-border-hover: #B8BEC8;
  --v2-line-danger: #F0C2C9;
  --v2-line-warn: #EED6B4;
  --v2-text: #151A22;
  /* 보조 글자 — 흰 카드 위 8.0:1, 가장 작은 보조 글자(faint)도 5.9:1(예전 #52525B·#6B6B73은 7.7:1·5.0:1). 회색 바탕(#F5F6F8) 위에서도 5.5:1 이상. */
  --v2-text-muted: #444C59;
  --v2-text-faint: #5A6472;
  /* 주 버튼은 다크의 반대 — 검은 면 + 흰 글자. */
  --v2-accent: #18181B;
  --v2-accent-pressed: #3F3F46;
  --v2-on-accent: #FFFFFF;
  --v2-accent-soft: rgba(24, 24, 27, 0.04);
  --v2-link: #2952CC;
  --v2-normal: #71717A;
  --v2-suspect: #DC2626;
  --v2-blocked: #A1A1AA;
  --v2-red: #D92D45;
  --v2-blue: #2952CC;
  --v2-green: #71717A;
  --v2-purple: #71717A;
  --v2-orange: #B45309;
  --v2-chart-normal: #A1A1AA;
  --v2-chart-pending: #C8C8CE;
  --v2-chart-suspect: #DC2626;
  --v2-chart-cost: #2952CC;
  --v2-chart-revenue: #18181B;
  --v2-chart-muted: #E6E6E9;
  --v2-chart-cur: #18181B;
  /* 환급 장부 네 칸 — 라이트에서는 확정이 가장 진하다(다크와 같은 "확실할수록 눈에 띈다"). */
  --v2-ledger-estimated: #8A8A92;
  --v2-ledger-judged: #52525B;
  --v2-ledger-confirmed: #18181B;
  --v2-ledger-assumed: #BDBDC4;
  --v2-ledger-assumed-text: #71717A;
  color-scheme: light;
}
/* 다크 바탕을 전제로 값을 직접 적은 곳만 라이트에서 다시 맞춘다. */
/* 카드는 다른 모드에서 선만 있는 상자지만 라이트에서는 흰 면으로 채운다(바탕이 회색이라 면 차이로 구분된다). */
/* 네이비도 카드를 면으로 채운다(라이트와 같은 구조, 색만 다르다). */
html[data-color="navy"] .v2-card { background: var(--v2-surface); }
html[data-color="light"] .v2-card { background: var(--v2-surface); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04); }
html[data-color="light"] .v2-kpi.ov-kpi { box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04); }
html[data-color="light"] .dt-cell.is-live { border-color: rgba(0, 0, 0, .35); }
html[data-color="light"] .v2-cm-split { background: var(--v2-surface-3); }
html[data-color="light"] .v2-code { background: var(--v2-surface-2); color: var(--v2-text); }

* { box-sizing: border-box; }

/* 작성자 스타일(display:grid·flex 등)이 브라우저 기본 [hidden] 규칙을 이기므로
   여기서 다시 못박는다 — 이게 없으면 el.hidden = true로 숨긴 요소가 그대로 보인다. */
[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--v2-font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--v2-text);
  background: var(--v2-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; }
/* 키보드 포커스는 어디서나 같은 파란 링으로 보인다. */
:focus-visible { outline: 2px solid var(--v2-link); outline-offset: 2px; }
button { font-family: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ---------------- 레이아웃 ---------------- */

.v2-shell { display: flex; min-height: 100vh; }

/* 사이드바 가독성(2026-11-10, 사용자 요청): 너비 260~280px(화면 너비를 따라간다), 메뉴 15px · 아이콘 19px · 항목 높이 44px · 간격 4px · 좌우 여백 14px.
   무조건 키우는 게 아니라 본문(제목 26px · 카드 제목 18px)과 무게를 맞춘 값이다. 1180px 이하 화면에서는 본문이 좁아지지 않게 너비만 236px로 되돌린다. */
.v2-sidebar {
  width: clamp(260px, 18.5vw, 280px);
  flex: none;
  background: var(--v2-sidebar);
  border-right: 1px solid var(--v2-border-soft);
  padding: 24px 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: sticky;
  top: 0;
  height: 100vh;
}

/* 공통 밀도(2026-11-10, 콘솔 UI/UX 공통 개편 요청서): 본문 여백 28·32px, 섹션 간격 28px, 카드 내부 24px, 페이지 제목 26px, 카드 제목 18px,
   KPI 숫자 32px, 표 본문 14px, 주요 버튼·입력 40px. 정보를 없애지 않고 간격·크기로 우선순위를 준다. 값은 데스크톱 기준이고 760px 이하에서 줄인다. */
.v2-main {
  flex: 1;
  min-width: 0;
  padding: 28px 32px 56px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* 화면(<div data-view>)은 .v2-main의 직접 자식이 아니라 gap을 물려받지 못한다 — 그 안의 블록 간격을
   여기서 다시 준다. 이게 없으면 상태 띠·KPI·차트가 서로 붙는다. */
[data-view] { display: flex; flex-direction: column; gap: 28px; }
[data-view][hidden] { display: none !important; }

/* ---------------- 사이드바 ---------------- */

.v2-brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px; }
/* 패파로그 로고(브랜드 확정본) — 기울어진 P 마크 + 패파(흰색)로그(시안) / P A F A L O G */
.v2-brand-mark { display: block; flex: none; }
.v2-brand-name { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--v2-text); line-height: 1.15; }
.v2-brand-accent { color: inherit; }
.v2-brand-sub { margin-top: 3px; font-size: 10px; font-weight: 700; color: var(--v2-text-faint); letter-spacing: 0.34em; }

.v2-nav { display: flex; flex-direction: column; gap: 4px; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
/* 관리자 콘솔 메뉴 묶음 제목(사이트 · 요금·결제 · 연동·알림 · 계정) — 메뉴가 8개라 성격별로 끊어 읽히게 한다. */
.v2-nav-group {
  margin: 14px 13px 2px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--v2-text-faint);
}
.v2-nav-group.is-first { margin-top: 0; }
.v2-nav-item {
  display: flex; align-items: center; gap: 12px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--v2-radius-sm);
  color: var(--v2-text-muted);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.3;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.v2-nav-item:hover { background: var(--v2-surface-2); color: var(--v2-text); }
.v2-nav-item.is-active { background: var(--v2-nav-active); color: var(--v2-text); font-weight: 500; }
.v2-nav-item .v2-ic { width: 19px; height: 19px; flex: none; }

.v2-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.v2-side-foot .v2-user, .v2-side-foot .v2-color-mode { margin-top: 6px; }
.v2-side-foot > .v2-btn { margin-top: 6px; font-size: 14px; }
.v2-user {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: var(--v2-radius-sm);
  background: var(--v2-surface);
  border: 1px solid var(--v2-border-soft);
}
.v2-user-avatar {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  background: var(--v2-surface-3); color: var(--v2-text);
  display: grid; place-items: center; font-size: 14px; font-weight: 700;
}
.v2-user-name { font-size: 14.5px; font-weight: 600; }
.v2-user-meta { font-size: 12.5px; color: var(--v2-text-faint); }

/* ---------------- 상단 바 ---------------- */

.v2-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.v2-page-title { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
/* 콘솔 v4: 제목 아래 명사형 부제 한 줄 */
.v2-page-head { min-width: 0; }
.v2-page-sub { margin: 6px 0 0; color: var(--v2-text-muted); font-size: 15px; }
/* 화면 안의 "관련 화면" 버튼 줄 — 메뉴에서 뺀 대응·KPI·리포트로 가는 길 */
/* 수집·갱신 상태 줄 — 판정은 서버 값. 색은 중립에 상태만: 초록 정상 · 노랑 지연 · 빨강 장애/불일치 */
.v2-fresh { margin-top: 6px; font-size: 12px; color: var(--v2-text-faint); line-height: 1.9; }
.v2-fresh b { color: var(--v2-text-muted); font-weight: 600; }
.v2-fresh-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--v2-text-muted); }
/* 콘솔 v4 대시보드 상단(overview.js) — 숫자 카드는 중립색, 색은 뜻에만 */
/* 알림 자리(#v2Alert)가 비어 있어도 flex 칸으로 남아 화면 제목과 첫 줄 사이에 간격이 한 번 더 생겼다(2026-11-11). */
#v2Alert:empty { display: none; }
#ovRoot { display: flex; flex-direction: column; gap: 24px; margin-bottom: 12px; }
.v2-kpis.ov-kpis3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.v2-kpis.ov-kpis2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* 첫 화면 머리 줄 — "내 쇼핑몰 광고 현황 · 기간 | 상태"(단순화 개선안 §6). 상태 색은 뜻에만: 이상 없음 초록, 확인 필요 주황, 수집 지연 빨강 */
.ov-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 0 2px; }
.ov-head-title { margin: 0; font-size: 17px; font-weight: 700; }
.ov-head-meta { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--v2-text-muted); }
.ov-head-sep { color: var(--v2-text-faint); }
/* 좁은 화면에서 기간 이름이 두 줄로 꺾이지 않게, 줄바꿈은 기간과 점검 시각 사이에서만 한다(2026-10-30). */
#ovHeadRange { white-space: nowrap; }
.ov-head-meta { flex-wrap: wrap; }
/* 시간대별 차트를 첫 화면 방문 추이로 합쳐 운영 상세의 차트 줄에는 판정 비율 하나만 남는다 — 빈 열을 두지 않는다. */
#v2DashMore .v2-charts { grid-template-columns: minmax(0, 1fr); }
.ov-head-check { font-size: 12.5px; color: var(--v2-text-faint); } .ov-head-check b { font-weight: 600; color: var(--v2-text-muted); }
.ov-head-check b.is-warn { color: var(--v2-orange); }
/* 돌려받은 광고비(확정) 한 줄 — 큰 숫자 셋 아래(개편안 4쪽: 홈의 광고비는 "의심 방문 관련 비용 추정"이다) */
.ov-refund-line { margin: -6px 0 0; font-size: 13px; color: var(--v2-text-muted); } .ov-refund-line b { color: var(--v2-text); }
.ov-badge-est { color: var(--v2-text-muted) !important; }
/* 상태 문구(연결 필요·갱신 대기·자료 없음·확인 불가)는 숫자가 아니므로 작게 — 줄 높이는 숫자 줄(32px × 1.15)과 맞춰 카드끼리 제목·값·설명 위치가 같다(2026-11-11). */
.ov-kpi .v2-kpi-value.is-unknown, .ov-kpi .v2-kpi-value.is-waiting, .ov-kpi .v2-kpi-value.is-empty { font-size: 19px; line-height: 37px; letter-spacing: -0.01em; }
.ov-kpi .v2-kpi-value.is-unknown { color: var(--v2-orange); }
.ov-kpi .v2-kpi-value.is-empty { color: var(--v2-text-muted); }
/* 갱신 대기(수집 지연) — 오류가 아니므로 주황 대신 보조 글자색. */
.ov-kpi .v2-kpi-value.is-waiting { color: var(--v2-text-muted); }
.ov-kpi .ov-meta .v2-btn { margin-top: 6px; }
/* 광고비 점검 "자세히 보기" 둘째 줄 탭 */
.ana-more { margin: -8px 0 14px; } .ana-more > summary { cursor: pointer; font-size: 13px; color: var(--v2-text-muted); padding: 4px 0; }
.ana-more[open] > summary { margin-bottom: 8px; } .ana-more .v2-tabs { display: flex; flex-wrap: wrap; }
.ov-state { font-weight: 700; font-size: 15px; color: var(--v2-text-muted); }
.ov-state.is-wait { color: var(--v2-text-muted); }
.ov-state.is-ok { color: var(--v2-green); } .ov-state.is-warn { color: var(--v2-orange); } .ov-state.is-danger { color: var(--v2-red); }
.ov-period { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--v2-text-muted); padding: 1px 7px; border-radius: 4px; border: 1px solid var(--v2-border-soft); white-space: nowrap; }
.ov-todo { display: grid; gap: 10px; }
.ov-todo-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 16px; border-radius: 10px; background: var(--v2-surface-2, rgba(255,255,255,.03)); }
.ov-todo-no { font-size: 16px; color: var(--v2-text-muted); } .ov-todo-no.is-crit { color: var(--v2-red); }
.ov-todo-text { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; }
.ov-todo-row .v2-btn { flex: none; }
.ov-todo-more { margin-top: 10px; font-size: 13.5px; }
/* 기간 전체 요약 막대 — 아래 추이 그래프의 합계라 더 누를 것이 없다(2026-10-30, 펼침 토글에서 요약 줄로). */
/* 2026-11-10: 비율 막대는 옅은 상자에 담아 아래 추이 그래프와 다른 덩어리로 보이게 한다(막대와 그래프가 한 그림처럼 붙어 보였다). */
.ov-visit { display: block; width: 100%; padding: 16px 18px; border-radius: var(--v2-radius); background: var(--v2-surface-2); margin-bottom: 24px; }
/* 주간 비교 범례 — 평균선은 골라 켜는 버튼 */
.ov-wk-legend { flex-wrap: wrap; row-gap: 8px; font-size: 12.5px; }
#ovTrendTabs { padding: 3px; }
#ovTrendTabs .v2-tab { padding: 5px 12px; font-size: 13px; }
.v2-legend i.ov-wk-open { background: none; border: 2px solid var(--v2-chart-cur); border-radius: 50%; box-sizing: border-box; }
.v2-legend .ov-wk-opt { gap: 6px; padding-left: 14px; border-left: 1px solid var(--v2-border-soft); }
/* 평균선 버튼은 덜 눈에 띄게(옅은 선 · 보조 글자) — 그래프가 주인공이다(2026-11-11). */
.ov-wk-chip { height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--v2-border-soft); background: none; color: var(--v2-text-faint); font: inherit; font-size: 12.5px; cursor: pointer; }
.ov-wk-chip:hover { border-color: var(--v2-border-hover); color: var(--v2-text); }
.ov-wk-chip[aria-pressed="true"] { background: var(--v2-surface-3); border-color: var(--v2-border-hover); color: var(--v2-text); }
.ov-wk-col { fill: transparent; } .ov-wk-col:hover { fill: rgba(255, 255, 255, .04); }
#ovWeekly { cursor: default; }
.ov-visit-bar { display: flex; height: 16px; border-radius: 6px; overflow: hidden; gap: 2px; background: var(--v2-surface-3, rgba(255,255,255,.08)); }
.ov-visit-bar i { display: block; height: 100%; } .ov-visit-bar i.is-normal { background: var(--v2-chart-normal); } .ov-visit-bar i.is-review { background: var(--v2-chart-suspect); }
.ov-visit-lbl { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; font-size: 14px; color: var(--v2-text-muted); }
.ov-visit-lbl i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.ov-visit-lbl i.is-normal { background: var(--v2-chart-normal); } .ov-visit-lbl i.is-review { background: var(--v2-chart-suspect); }
/* ③ 확인 대기가 0보다 크면 주황 숫자 — 처리할 일이 남았다는 뜻. */
.ov-kpi .v2-kpi-value.is-pending { color: var(--v2-orange); }
.ov-visit-lbl b { color: var(--v2-text); }
.ov-daily-more { margin-top: 12px; } .ov-daily-more > summary { cursor: pointer; font-size: 13px; color: var(--v2-text-muted); }
.ov-daily-more .v2-legend { margin: 10px 0 4px; }
.v2-kpi.ov-kpi { background: var(--v2-surface); border-color: var(--v2-border-soft); cursor: pointer; }
.v2-kpi.ov-kpi:hover { border-color: var(--v2-border); }
.v2-kpi.ov-kpi .v2-kpi-label { color: var(--v2-text-muted); }
.v2-kpi.ov-kpi .v2-kpi-sub { color: var(--v2-text-faint); margin-top: 0; }
.ov-val-conf { color: var(--v2-text); }
.ov-badge-conf { color: var(--v2-text) !important; }
.ov-q { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--v2-text-faint); color: var(--v2-text-faint); font-size: 10px; margin-left: 4px; cursor: help; }
.ov-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--v2-surface-3, rgba(255,255,255,.08)); margin-top: 8px; }
.ov-bar i { display: block; height: 100%; }
.ov-bar i.is-normal { background: var(--v2-chart-normal); } .ov-bar i.is-review { background: #F2556B; } .ov-bar i.is-est { background: var(--v2-text-faint); }
.ov-bar i.is-conf { background: var(--v2-text); } .ov-bar i.is-pending { background: var(--v2-text-faint); } .ov-bar i.is-rest { background: var(--v2-chart-muted); }
.ov-bar-lbl { display: flex; gap: 10px; flex-wrap: wrap; font-size: 11.5px; color: var(--v2-text-faint); }
.ov-bar-lbl b { font-weight: 600; color: var(--v2-text-muted); }
.ov-meta { font-size: 12.5px; color: var(--v2-text-faint); border-top: 1px dashed var(--v2-border-soft); padding-top: 8px; margin-top: 4px; line-height: 1.5; }
/* 대시보드 KPI 셋의 조회 시각 줄만 숨긴다 — 머리 줄(마지막 점검 · 광고비 수신)에 같은 정보가 있다. 다른 화면의 .ov-meta는 광고비 수신 시각·사용량 설명 같은 실제 정보라 그대로. */
#ovKpis .ov-meta { display: none; }
/* 조치 필요 알림 띠(2026-11-10) — 빨간 전체 테두리를 걷고 왼쪽 주황 포인트 바 + 아주 옅은 주황 바탕으로 낮췄다.
   색 기준: 안내 회색 · 사용자 조치 필요 주황 · 심각한 장애 빨강 · 정상 초록. 광고 연결 확인은 사용자가 다시 연결하면 풀리는 일이라 주황이다.
   주황은 아이콘과 제목에만 쓰고 설명은 본문 색으로 둔다. color-mix를 모르는 브라우저는 중립 회색 바탕(--v2-surface-2)으로 보인다. */
/* 왼쪽 굵은 강조선은 쓰지 않는다(2026-11-10, 사용자 요청 — AI가 만든 화면처럼 보인다). 옅은 주황 바탕과 테두리, 아이콘·제목 색으로 구분한다. */
.ov-warn { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 14px 20px 14px 18px; border-radius: var(--v2-radius); border: 1px solid color-mix(in srgb, var(--v2-orange) 22%, transparent); background: var(--v2-surface-2); background: color-mix(in srgb, var(--v2-orange) 7%, transparent); color: var(--v2-text); font-size: 14px; line-height: 1.5; }
.ov-warn > span:first-child { flex: none; color: var(--v2-orange); }
.ov-warn > div { flex: 1 1 220px; min-width: 0; }
.ov-warn b { color: var(--v2-orange); margin-right: 6px; } .ov-warn .v2-btn { margin-left: auto; flex: none; }
.ov-daily { cursor: pointer; } .ov-sub { font-size: 12px; font-weight: 400; }
.v2-dash-more { border: 1px solid var(--v2-border-soft); border-radius: var(--v2-radius); padding: 0 16px; }
.v2-dash-more > summary { cursor: pointer; padding: 16px 6px; color: var(--v2-text-muted); font-weight: 600; font-size: 14px; }
.v2-dash-more[open] { padding-bottom: 16px; }
.v2-dash-more[open] > summary { margin-bottom: 8px; }
/* 운영 상세 안에서 한 번 더 접는 묶음(위쪽 "지금 확인할 일"과 겹치는 목록) — 표준모드 v3 검토 P1 */
.v2-sub-more { margin: 12px 0; } .v2-sub-more > summary { font-weight: 600; }
.v2-glossary { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 4px 0 0; font-size: 13px; }
.v2-glossary dt { font-weight: 600; } .v2-glossary dd { margin: 0; color: var(--v2-text-muted); }
@media (max-width: 800px) { .v2-glossary { grid-template-columns: 1fr; } }
@media (max-width: 800px) { .v2-kpis.ov-kpis3, .v2-kpis.ov-kpis2 { grid-template-columns: 1fr; } .ov-head-meta { margin-left: 0; } }
/* 콘솔 v4 이상 유입 상단(detections-top.js) — 상태 배지 셋과 히트맵. 칸 색은 서버가 준 단계(data-level)로만 칠한다. */
#dtRoot { display: flex; flex-direction: column; gap: 18px; margin-bottom: 18px; }
.dt-st-todo { color: var(--v2-red); }
.dt-st-doing { color: var(--v2-orange); }
.dt-st-done { color: var(--v2-text-muted); }
.dt-kpi { cursor: default; } .dt-val-todo { color: var(--v2-red); }
.dt-heat { display: grid; gap: 6px; align-items: center; }
.dt-heat .h { font-size: 12px; color: var(--v2-text-muted); text-align: center; }
.dt-heat .r { font-size: 12px; color: var(--v2-text-faint); font-variant-numeric: tabular-nums; }
.dt-cell { height: 40px; border: 1px solid transparent; border-radius: 8px; background: var(--v2-surface-3); color: var(--v2-text); font: inherit; font-size: 12.5px; font-variant-numeric: tabular-nums; cursor: pointer; }
.dt-cell small { font-size: 9.5px; opacity: .8; }
.dt-cell[data-level="0"] { color: var(--v2-text-faint); }
.dt-cell[data-level="1"], .dt-sw[data-level="1"] { background: rgba(242, 85, 107, .18); }
.dt-cell[data-level="2"], .dt-sw[data-level="2"] { background: rgba(242, 85, 107, .34); }
.dt-cell[data-level="3"], .dt-sw[data-level="3"] { background: rgba(242, 85, 107, .55); }
.dt-cell[data-level="4"], .dt-sw[data-level="4"] { background: rgba(242, 85, 107, .8); color: #fff; }
.dt-cell[data-level="-1"] { background: repeating-linear-gradient(135deg, var(--v2-surface-2) 0 4px, var(--v2-surface-3) 4px 8px); color: var(--v2-text-faint); cursor: default; font-size: 11px; }
.dt-cell.is-live { border-style: dashed; border-color: rgba(255, 255, 255, .45); }
.dt-cell:hover:not([disabled]), .dt-cell.is-on { border-color: #fff; border-style: solid; }
.dt-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11.5px; color: var(--v2-text-faint); margin-top: 12px; align-items: center; }
.dt-sw { display: inline-block; width: 14px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: middle; background: var(--v2-surface-3); }
.dt-legend-note { margin-left: auto; }
.dt-window { font-size: 12px; font-weight: 400; color: var(--v2-text-muted); margin-left: 8px; }
.dt-heat-m { display: none; }
.dt-days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
.dt-days .v2-tab { flex: none; }
.dt-slots { display: grid; gap: 8px; margin-top: 8px; }
.dt-slots .dt-cell { display: flex; justify-content: space-between; align-items: center; height: auto; min-height: 48px; padding: 0 14px; font-size: 14px; }
.dt-slots .dt-cell span { font-size: 12px; color: var(--v2-text-muted); margin-left: 6px; }
@media (max-width: 800px) { #dtHeat { display: none; } .dt-heat-m { display: block; } .dt-legend-note { margin-left: 0; } }
.v2-related { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.v2-topbar-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* 사건 목록 필터 묶음 — 묶음 상자는 줄 배치에 끼지 않는다(display: contents). 쉬운 모드는 [필터 더 보기]로 연다.
   표준 모드는 묶음을 늘 펼치고 순서를 예전(검색 · 의심 여부 · 상태 · …)대로 둔다. */
.v2-det-more { display: contents; }
.v2-det-more[hidden] { display: none; }
html[data-pv2-mode="standard"] #detKeyword { order: -2; }
html[data-pv2-mode="standard"] #detSev { order: -1; }

.v2-select, .v2-btn {
  height: 40px;
  padding: 0 14px;
  border-radius: var(--v2-radius-sm);
  background: var(--v2-surface-2);
  border: 1px solid var(--v2-border);
  color: var(--v2-text);
  font-size: 14px;
  cursor: pointer;
}
.v2-select { min-width: 150px; appearance: none; padding-right: 32px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239B9BA1' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }
.v2-select:hover, .v2-btn:hover { border-color: var(--v2-border-hover); }
.v2-btn.is-primary { background: var(--v2-accent); border-color: var(--v2-accent); color: var(--v2-on-accent); font-weight: 500; }
.v2-btn.is-primary:hover { background: var(--v2-accent-pressed); border-color: var(--v2-accent-pressed); }
.v2-btn:disabled { opacity: 0.5; cursor: default; }
a.v2-btn { display: inline-flex; align-items: center; text-decoration: none; }

/* ---------------- 상태 띠 ---------------- */

.v2-status {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 0 2px;
}
.v2-status-title { font-weight: 700; }
.v2-status-text { color: var(--v2-text-muted); }
.v2-status-as-of { margin-left: auto; font-size: 12px; color: var(--v2-text-faint); }

/* ---------------- KPI 카드 ---------------- */

.v2-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

.v2-kpi {
  position: relative;
  padding: 24px;
  border-radius: var(--v2-radius);
  border: 1px solid var(--v2-border-soft);
  overflow: hidden;
  min-height: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.v2-kpi-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.v2-kpi-label { font-size: 14px; color: var(--v2-text-muted); font-weight: 400; }
.v2-kpi-value { font-size: 32px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1.15; }
.v2-kpi-sub { font-size: 13.5px; color: var(--v2-text-muted); margin-top: auto; }
/* 선 색은 글자색을 따른다 — 예전 흰색 고정값은 라이트 모드 흰 카드에서 사라졌다. */
.v2-kpi-ic { width: 30px; height: 30px; flex: none; opacity: 0.92; color: var(--v2-text); }

/* 색 카드(is-red·blue·green·purple)도 모노톤에서는 중립 — 숫자의 뜻은 라벨이 말한다. */
.v2-kpi.is-red, .v2-kpi.is-blue, .v2-kpi.is-green, .v2-kpi.is-purple { background: none; }

.v2-delta-up { color: var(--v2-text); font-weight: 500; }
.v2-delta-down { color: var(--v2-text); font-weight: 500; }
.v2-delta-flat { color: var(--v2-text-faint); }

/* ---------------- 카드 공통 ---------------- */

.v2-card {
  background: none;
  border: 1px solid var(--v2-border-soft);
  border-radius: var(--v2-radius);
  padding: 24px;
}
.v2-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.v2-card-title { font-size: 18px; }
.v2-legend { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--v2-text-muted); }
.v2-legend span { display: inline-flex; align-items: center; gap: 6px; }
.v2-legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }

/* ---------------- 차트 ---------------- */

.v2-charts { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 20px; }
.v2-chart-box { width: 100%; overflow-x: auto; }
.v2-chart-box svg { display: block; width: 100%; height: auto; min-width: 460px; }

.v2-donut-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.v2-donut { width: 168px; height: 168px; flex: none; }
.v2-donut-legend { display: flex; flex-direction: column; gap: 12px; font-size: 13px; min-width: 0; }
.v2-donut-legend .v2-dl-row { display: flex; align-items: center; gap: 9px; }
.v2-donut-legend i { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.v2-donut-legend b { font-variant-numeric: tabular-nums; }

/* ---------------- 하단 2단 ---------------- */

.v2-bottom { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.v2-rail { display: flex; flex-direction: column; gap: 16px; }

/* 상점 성과(최근 주요 탐지 아래) — 방문자 · 방문 세션 · 구매·매출 */
.v2-commerce { margin-top: 20px; }
.v2-commerce-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.v2-commerce-head .v2-muted { font-size: 12.5px; }
.v2-commerce-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr); gap: 16px; align-items: stretch; }
.v2-cm-hint { font-size: 12px; }
/* 구매 퍼널: 단계 이름 | 막대(방문 세션 대비) | 세션 수, 단계 사이에 다음 단계 전환율 */
.v2-funnel { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.v2-funnel-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) 56px; align-items: center; gap: 10px; font-size: 13px; }
.v2-funnel-row .name { color: var(--v2-text-muted); }
.v2-funnel-row .bar { height: 14px; border-radius: 4px; background: var(--v2-surface-2); overflow: hidden; }
.v2-funnel-row .bar i { display: block; height: 100%; border-radius: 4px; background: var(--v2-chart-cost); min-width: 2px; }
.v2-funnel-row.is-last .bar i { background: var(--v2-text); }
.v2-funnel-row .cnt { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.v2-funnel-step { padding-left: 84px; font-size: 11.5px; color: var(--v2-text-faint); line-height: 1.6; }
.v2-funnel-step.is-drop { color: var(--v2-orange); }
/* 신규/재방문 */
.v2-cm-visitors { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--v2-border-soft); font-size: 12.5px; color: var(--v2-text-muted); }
.v2-cm-split { display: flex; height: 8px; margin: 8px 0 6px; border-radius: 4px; overflow: hidden; background: rgba(255, 255, 255, 0.05); }
.v2-cm-split .new { background: var(--v2-chart-cost); }
.v2-cm-split .ret { background: var(--v2-text-muted); }
.v2-cm-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.v2-cm-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.v2-commerce-sales .v2-card-head { margin-bottom: 6px; }
.v2-cm-state { font-size: 12.5px; color: var(--v2-text-faint); margin: 0 0 10px; }
.v2-cm-state.is-warn { color: var(--v2-orange); }
.v2-cm-big { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.v2-cm-big small { margin-left: 6px; font-size: 13px; font-weight: 500; color: var(--v2-text-muted); }
.v2-cm-fin { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 12px 0 0; font-size: 13px; }
.v2-cm-fin dt { color: var(--v2-text-muted); }
.v2-cm-fin dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.v2-cm-guide { margin: 8px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--v2-text-muted); }

.v2-insights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.v2-subcard { border: 1px solid var(--v2-border-soft); border-radius: 12px; padding: 16px; min-width: 0; }
.v2-subcard-title { font-size: 14.5px; }
.v2-subcard .v2-table { min-width: 0; }
.v2-visits-box { overflow-x: auto; }
.v2-visits-box svg { display: block; width: 100%; height: auto; min-width: 420px; }

/* ---------------- 표 ---------------- */

.v2-table-scroll { overflow-x: auto; }
.v2-table { font-size: 14px; min-width: 720px; }
.v2-table thead th {
  text-align: left;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--v2-text-faint);
  padding: 0 12px 10px;
  border-bottom: 1px solid var(--v2-border-soft);
  white-space: nowrap;
}
.v2-table tbody td { padding: 13px 12px; border-bottom: 1px solid var(--v2-border-soft); vertical-align: middle; }
.v2-table tbody tr:last-child td { border-bottom: none; }
.v2-table tbody tr:hover td { background: var(--v2-accent-soft); }
.v2-mono { font-family: var(--v2-font-mono); font-variant-numeric: tabular-nums; }
.v2-ellipsis { display: inline-block; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

.v2-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 1px 7px; border-radius: 4px;
  font-size: 12.5px; font-weight: 500; white-space: nowrap;
  border: 1px solid var(--v2-border); color: var(--v2-text-muted);
}
.v2-badge i { width: 6px; height: 6px; display: inline-block; }

/* ---------------- 우측 패널 ---------------- */

.v2-sum-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.v2-sum-cell {
  padding: 12px 14px; border-radius: var(--v2-radius-sm);
  background: var(--v2-surface-2); border: 1px solid var(--v2-border-soft);
}
.v2-sum-cell .k { font-size: 12px; color: var(--v2-text-faint); }
.v2-sum-cell .v { font-size: 20px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }

.v2-list { display: flex; flex-direction: column; gap: 10px; }
.v2-list-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px;
  padding: 10px 12px; border-radius: var(--v2-radius-sm);
  background: var(--v2-surface-2); border: 1px solid var(--v2-border-soft);
  font-size: 13px;
}
/* 값이 길면(예: 내 계정 "등록된 번호가 없습니다 — …") 이름을 한 글자 폭까지 밀어 세로로 꺾던 문제가 있었다 —
   이름은 줄이지 않고, 값이 한 줄에 안 들어가면 값을 다음 줄로 내린 뒤 그 안에서 줄바꿈한다. */
.v2-list-row .k { color: var(--v2-text-muted); flex: none; max-width: 100%; }
.v2-list-row .v { font-weight: 600; margin-left: auto; max-width: 100%; text-align: right; word-break: keep-all; overflow-wrap: anywhere; }
.v2-ok { color: var(--v2-green); }
.v2-warn { color: var(--v2-orange); }
.v2-danger { color: var(--v2-red); }
.v2-muted { color: var(--v2-text-faint); }
.v2-subtabs { margin-bottom: 4px; }
.v2-abp-label { width: 92px; flex: none; font-size: 13px; color: var(--v2-text-muted); }
.v2-form-row .v2-input.v2-input-sm { flex: none; width: 90px; }
#abpSimResult .v2-table { min-width: 0; }

.v2-hi-row {
  display: flex; flex-direction: column; gap: 4px;
  padding: 11px 12px; border-radius: var(--v2-radius-sm);
  background: var(--v2-surface-2); border: 1px solid var(--v2-border-soft);
}
.v2-hi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.v2-hi-kw { font-size: 13px; font-weight: 600; min-width: 0; }
.v2-hi-meta { font-size: 11.5px; color: var(--v2-text-faint); }

/* ---------------- 상태 메시지 ---------------- */

.v2-empty, .v2-loading { padding: 26px 0; text-align: center; color: var(--v2-text-faint); font-size: 13px; }
/* 대시보드 카드 안의 빈 상태는 한 줄로 — 가운데 큰 빈 칸이 "고장"처럼 보였다(2026-11-11). */
#ovTodoBody .v2-empty, #ovDaily .v2-empty, #ovWeekly .v2-empty, #ovVisit .v2-empty { padding: 4px 0; text-align: left; color: var(--v2-text-muted); font-size: 14px; }
.v2-error {
  padding: 12px 14px; border-radius: var(--v2-radius-sm); font-size: 13px;
  background: none; border: 1px solid var(--v2-line-danger); color: var(--v2-text);
}
.v2-note { font-size: 13px; color: var(--v2-text-faint); margin-top: 10px; line-height: 1.6; }

/* ---------------- 입력 필드 ---------------- */

.v2-field { display: flex; flex-direction: column; gap: 6px; }
.v2-field label { font-size: 13px; color: var(--v2-text-muted); }
.v2-input {
  height: 40px; padding: 0 12px; border-radius: var(--v2-radius-sm);
  background: var(--v2-surface-2); border: 1px solid var(--v2-border);
  color: var(--v2-text); font-size: 14px; font-family: inherit;
}
.v2-input:focus { outline: 2px solid var(--v2-link); outline-offset: 1px; border-color: var(--v2-border-hover); }

/* ---------------- 탭 · 페이저 · 폼 (v2 공통 컴포넌트) ---------------- */

.v2-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--v2-radius-sm); background: var(--v2-surface-2); border: 1px solid var(--v2-border-soft); }
.v2-tab {
  padding: 8px 16px; border-radius: 8px; border: none; background: none;
  color: var(--v2-text-muted); font-size: 14px; cursor: pointer;
}
.v2-tab:hover { color: var(--v2-text); }
.v2-tab.is-active { background: var(--v2-surface-3); color: var(--v2-text); font-weight: 500; }

.v2-det-tabs { display: flex; width: fit-content; max-width: 100%; overflow-x: auto; margin-bottom: 16px; }
#rtBody .v2-week-summary { margin-bottom: 8px; }
.v2-live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 1px; background: var(--v2-text); margin-left: 4px; vertical-align: middle; animation: v2-pulse 1.6s ease-in-out infinite; }
@keyframes v2-pulse { 50% { opacity: 0.3; } }
.v2-table tbody tr.v2-risk-row td { background: none; }
.v2-table tbody tr.v2-new-row td { animation: v2-flash 2.4s ease-out; }
@keyframes v2-flash { from { background: rgba(122, 162, 255, 0.16); } }

.v2-count { font-size: 13px; font-weight: 500; color: var(--v2-text-faint); margin-left: 6px; }

.v2-pager { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 16px; }
.v2-pager-label { font-size: 13px; color: var(--v2-text-muted); font-variant-numeric: tabular-nums; }

.v2-btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.v2-btn.is-danger { color: var(--v2-red); }
.v2-btn.is-danger:hover { border-color: var(--v2-red); }
.v2-link { background: none; border: none; padding: 0; color: var(--v2-link); cursor: pointer; font: inherit; text-decoration: underline; }

.v2-input-sm { width: 90px; }
.v2-form-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.v2-form-col { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.v2-form-add { margin-top: 0; margin-bottom: 4px; }
.v2-form-row .v2-input { flex: 1 1 160px; min-width: 0; }
.v2-field-hint { font-size: 12.5px; color: var(--v2-text-faint); }

.v2-check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--v2-text); cursor: pointer; }
.v2-check input { width: 15px; height: 15px; accent-color: var(--v2-accent); }
.v2-chips { display: flex; gap: 12px; flex-wrap: wrap; flex: 1 1 auto; }

.v2-two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.v2-sum-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.v2-sum-v-sm { font-size: 14px; }
.v2-detail-h { font-size: 13px; color: var(--v2-text-faint); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px; }

.v2-info {
  margin: 12px 0; padding: 11px 14px; border-radius: var(--v2-radius-sm); font-size: 13px;
  background: none; border: 1px solid var(--v2-border); color: var(--v2-text);
}
.v2-info.is-warn { border-color: var(--v2-line-warn); }
.v2-info.is-danger { border-color: var(--v2-line-danger); }
/* 분석 화면: 탭이 무엇을 보는지 한 줄 설명, 맨 위 한 줄 판정, 접히는 집계 기준(2026-10-27) */
.v2-tab-desc { margin: -8px 0 14px; font-size: 13px; color: var(--v2-text-muted); }
.v2-subtabs + .v2-tab-desc { margin: 10px 0 14px; }
.v2-verdict { font-size: 14px; line-height: 1.6; margin-top: 0; }
.v2-verdict > b:first-child { margin-right: 6px; }
.v2-meta-more summary { cursor: pointer; }
.v2-meta-more ul { margin: 6px 0 0; padding-left: 18px; line-height: 1.7; }

/* 분석 그래프(charts.js) — 이름 · 막대 · 값 한 줄. 조각 사이 2px 틈, 끝은 4px 둥글게. */
.v2-tone-normal { background: var(--v2-chart-normal); }
.v2-tone-pending { background: var(--v2-chart-pending); }
.v2-tone-suspect { background: var(--v2-chart-suspect); }
.v2-tone-cost { background: var(--v2-chart-cost); }
.v2-tone-revenue { background: var(--v2-chart-revenue); }
.v2-tone-muted { background: var(--v2-chart-muted); }
.v2-clegend { display: flex; flex-wrap: wrap; gap: 14px; margin: 4px 0 10px; font-size: 12px; color: var(--v2-text-muted); }
.v2-clegend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.v2-cbars { display: flex; flex-direction: column; gap: 8px; }
.v2-cbar { display: flex; align-items: center; gap: 12px; font-size: 13px; padding: 2px 4px; border-radius: 6px; }
.v2-cbar:hover { background: var(--v2-surface-2); }
.v2-cbar-k { width: 160px; flex: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.v2-cbar-track { flex: 1; min-width: 0; height: 12px; }
.v2-cbar-fill { display: flex; gap: 2px; height: 100%; min-width: 2px; }
.v2-cbar-fill i { display: block; height: 100%; min-width: 2px; }
.v2-cbar-fill i:first-child { border-top-left-radius: 4px; border-bottom-left-radius: 4px; }
.v2-cbar-fill i:last-child { border-top-right-radius: 4px; border-bottom-right-radius: 4px; }
.v2-cbar-v { width: 190px; flex: none; text-align: right; color: var(--v2-text-muted); font-family: var(--v2-font-mono); font-size: 12.5px; }
.v2-cbars.is-compact .v2-cbar-k { width: 130px; }
.v2-cbars.is-compact .v2-cbar-v { width: 120px; }
.v2-cpair { align-items: flex-start; }
.v2-cpair-lines { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.v2-cpair-line { display: flex; align-items: center; gap: 12px; }
.v2-cpair-line .v2-cbar-track { height: 9px; }
.v2-cshare { margin-bottom: 14px; }
.v2-cshare-k { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.v2-cshare-flag { font-size: 11px; font-weight: 600; color: var(--v2-red); border: 1px solid var(--v2-line-danger); border-radius: 4px; padding: 1px 6px; margin-left: 4px; }
.v2-cshare-track { display: flex; gap: 2px; height: 22px; }
.v2-cshare-track i { display: flex; align-items: center; min-width: 2px; overflow: hidden; font-style: normal; }
.v2-cshare-track i:first-child { border-top-left-radius: 4px; border-bottom-left-radius: 4px; }
.v2-cshare-track i:last-child { border-top-right-radius: 4px; border-bottom-right-radius: 4px; }
.v2-cshare-track b { padding: 0 8px; font-size: 12px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-cshare-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 12px; color: var(--v2-text-muted); }
.v2-cshare-legend b { color: var(--v2-text); font-weight: 600; }
.v2-ckpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 6px; }
.v2-ckpi { background: var(--v2-surface-2); border: 1px solid var(--v2-border-soft); border-radius: var(--v2-radius-sm); padding: 14px 16px; min-width: 0; }
.v2-ckpi .k { font-size: 12.5px; color: var(--v2-text-muted); }
.v2-ckpi .v { font-size: 24px; font-weight: 700; margin-top: 4px; font-family: var(--v2-font-mono); overflow-wrap: anywhere; }
.v2-ckpi .s { font-size: 12px; color: var(--v2-text-faint); margin-top: 2px; }
.v2-more { margin-top: 14px; }
.v2-more > summary { cursor: pointer; font-size: 13px; color: var(--v2-text-muted); padding: 6px 0; }
.v2-more > summary:hover { color: var(--v2-text); }
.v2-more[open] > summary { margin-bottom: 8px; }
.v2-ana-card { margin-bottom: 16px; }
/* 광고 캠페인 블록: 매체별 합계 표의 소제목과 캠페인 표의 매체 필터 */
.v2-ad-sub { margin: 18px 0 8px; font-size: 13px; font-weight: 700; color: var(--v2-text-muted); }
.v2-ad-filter { margin: 16px 0 8px; font-size: 13px; color: var(--v2-text-muted); }
.v2-ad-filter .v2-select { margin-left: 8px; }

/* ---------------- 탐지 상세 ---------------- */

.v2-row-click { cursor: pointer; }
.v2-detail-row > td { padding: 0 !important; background: var(--v2-surface-2); }
.v2-detail { padding: 18px 20px; }
.v2-detail-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 26px; }

/* 이상 유입 사건 상세(2026-10-28, detections.js renderDetail) — 무엇이 문제인지 → 무엇을 할지 → 접힌 추가 작업·상세 기록.
   카드·상자를 겹치지 않고, 오른쪽에 핵심 정보를 붙여 펼쳤을 때 절반이 비지 않게 한다. */
.v2-case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 28px; align-items: start; }
.v2-case-q { margin: 0 0 6px; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--v2-text-faint); }
.v2-case-q + .v2-case-lead { margin-top: 0; } .v2-case-why + .v2-case-q, .v2-case-lead + .v2-case-q, .v2-case-because + .v2-case-q { margin-top: 16px; }
.v2-case-because { margin: 0 0 8px; font-size: 14.5px; line-height: 1.65; color: var(--v2-text); }
.v3-case-when { display: flex; flex-direction: column; gap: 2px; } .v3-case-when .v2-mono { font-size: 12.5px; color: var(--v2-text-muted); }
.v3-case-what { font-size: 14px; line-height: 1.5; } .v3-case-what .v2-badge { margin-left: 4px; vertical-align: 1px; }
.dt-heat-card { padding: 4px 0 8px; }
/* 표준 모드: 히트맵은 상태 카드 아래 카드처럼(접힘 없음) */
.v2-dash-more.is-standard { padding: 0 20px; } .v2-dash-more.is-standard > summary { display: none; }
.v2-dash-more.is-standard .dt-heat-card { padding: 16px 0; }
.v2-mode-switch .v2-tab { font-size: 12.5px; }
/* 광고비 점검 — 가장 큰 수치와 금액 네 줄(개편안 6쪽) */
.ads-hero-top { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.ads-hero-big { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; } .ads-hero-big.is-unknown { color: var(--v2-orange); }
.ads-hero-why { font-size: 13px; color: var(--v2-text-muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ads-amounts { width: 100%; border-collapse: collapse; font-size: 13px; }
.ads-amounts th, .ads-amounts td { padding: 7px 8px; text-align: left; border-top: 1px solid var(--v2-border-soft); vertical-align: top; }
.ads-amounts thead th { border-top: 0; font-size: 12px; color: var(--v2-text-faint); font-weight: 600; }
.ads-amounts tbody th { font-weight: 600; white-space: nowrap; }
@media (max-width: 760px) { .ads-amounts thead { display: none; } .ads-amounts tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 0; border-top: 1px solid var(--v2-border-soft); }
  .ads-amounts th, .ads-amounts td { border: 0; padding: 0; } .ads-amounts td:nth-child(2), .ads-amounts td:nth-child(4) { grid-column: 1 / -1; font-size: 12px; } }
/* 조치·환급 권장 조치 카드 · 진행 흐름 · 환급 5단계(개편안 7쪽) */
.rf-action { margin: 0; display: grid; gap: 8px; } .rf-action > div { display: flex; gap: 12px; align-items: baseline; font-size: 14px; }
.rf-action dt { flex: none; width: 64px; color: var(--v2-text-muted); } .rf-action dd { margin: 0; min-width: 0; }
.rf-action-none { margin: 0; font-size: 14px; color: var(--v2-text); font-weight: 600; }
.rf-flow-head { margin-top: 14px; font-size: 12.5px; color: var(--v2-text-faint); }
.rf-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; color: var(--v2-text-muted); }
.rf-flow b { color: var(--v2-text); } .rf-flow i { font-style: normal; color: var(--v2-text-faint); }
/* 5단계는 좁은 카드 안이라 세로 목록 — 번호 · 단계 이름 · 실제 상태를 한 줄에 */
.rf-steps { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 4px; }
.rf-steps li { display: grid; grid-template-columns: 20px 118px minmax(0, 1fr); align-items: baseline; gap: 8px; padding: 6px 10px; border-radius: 8px; background: var(--v2-surface-2, rgba(255,255,255,.03)); font-size: 12.5px; min-width: 0; }
.rf-steps li b { font-size: 13px; } .rf-step-no { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--v2-surface-3, rgba(255,255,255,.08)); font-size: 11px; color: var(--v2-text-muted); align-self: center; }
.rf-step-sub { color: var(--v2-text-faint); line-height: 1.4; overflow-wrap: anywhere; }
@media (max-width: 800px) { .rf-steps li { grid-template-columns: 20px minmax(0, 1fr); } .rf-steps .rf-step-sub { grid-column: 2; } }
.v2-case-lead { margin: 0 0 10px; font-size: 17px; font-weight: 700; line-height: 1.5; color: var(--v2-text); }
.v2-case-why { margin: 0 0 18px; padding-left: 20px; font-size: 15px; line-height: 1.75; color: var(--v2-text); }
.v2-case-decide { display: flex; gap: 10px; flex-wrap: wrap; }
.v2-case-decide .v2-btn { min-height: 44px; padding: 0 22px; font-size: 15px; font-weight: 600; }
.v2-case-guide { margin: 10px 0 0; font-size: 14px; line-height: 1.6; color: var(--v2-text-muted); }
.v2-case-next-h { margin: 0 0 10px; font-size: 15px; font-weight: 700; }
.v2-case-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 1.6; }
.v2-case-steps li > span { display: block; margin-bottom: 6px; color: var(--v2-text-muted); }
.v2-case-steps .v2-btn[disabled] { opacity: .5; cursor: not-allowed; }
.v2-case-facts { margin: 0; padding: 4px 0 4px 20px; border-left: 1px solid var(--v2-border-soft); display: flex; flex-direction: column; gap: 11px; }
.v2-case-facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; }
.v2-case-facts dt { color: var(--v2-text-muted); flex: none; }
.v2-case-facts dd { margin: 0; min-width: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.v2-case-fold { margin-top: 16px; border-top: 1px solid var(--v2-border-soft); padding-top: 8px; }
.v2-case-fold > summary { cursor: pointer; padding: 6px 0; font-size: 14px; font-weight: 600; color: var(--v2-text-muted); }
.v2-case-fold > summary:hover { color: var(--v2-text); }
.v2-case-fold-body { padding-top: 6px; }
.v2-case-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 10px 0; border-bottom: 1px dashed var(--v2-border-soft); }
.v2-case-row .k { width: 120px; flex: none; font-size: 13.5px; font-weight: 600; }
.v2-case-row .v { flex: 1 1 200px; min-width: 0; font-size: 13.5px; color: var(--v2-text-muted); }
.v2-case-row .v2-btn[disabled] { opacity: .5; cursor: not-allowed; }
.v2-case-row-form .v2-form-row { flex: 1 1 320px; margin: 0; }
.v2-kpi-nodata { font-size: 15px; font-weight: 600; color: var(--v2-text-muted); }
.v2-case-log { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.v2-case-meta { margin-top: 8px; font-size: 13px; color: var(--v2-text-muted); }
.v2-case + .v2-ai-panel { margin-top: 16px; }
.v2-reasons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.v2-reason-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.v2-reason-pts { font-family: var(--v2-font-mono); font-size: 12px; color: var(--v2-blue); }
.v2-reason-pts.is-minus { color: var(--v2-green); }
.v2-reason-detail { font-size: 13px; color: var(--v2-text-secondary, var(--v2-text-muted)); }

/* 위험 점수 게이지 — 등급 배지 옆에 0~100 막대와 등급 경계(40·55·70) 눈금. 색은 위험도 배지(.sev-*)와 같은 계열이고,
   색만으로 구분하지 않도록 배지 글자와 아래 기준 문구를 함께 둔다. */

/* AI 참고 의견 — 판정 결과와 섞여 보이지 않게 탐지 사유 그리드 위에 띠 하나로 둔다(참고용 문구 필수). */
.v2-ai-panel {
  margin-bottom: 16px; padding: 12px 14px; border-radius: var(--v2-radius-sm);
  background: none; border: 1px solid var(--v2-border);
}
.v2-ai-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.v2-ai-title { font-size: 12px; font-weight: 600; color: var(--v2-text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.v2-ai-conf { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--v2-text); }
.v2-ai-factors { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.v2-ai-factors li { display: flex; align-items: baseline; gap: 8px; }
.v2-ai-arrow { font-size: 10px; flex: none; }
.v2-ai-factors .is-up .v2-ai-arrow { color: var(--v2-red); }
.v2-ai-factors .is-down .v2-ai-arrow { color: var(--v2-green); }
.v2-ai-disclaimer { margin: 10px 0 0; font-size: 12px; color: var(--v2-text-faint); }
/* 신뢰도 배지 — 목록·상세 공용. 확정 가능성이 높으면 경고색, 낮으면 정상색, 그 사이는 중립. */
.v2-ai-badge { font-family: var(--v2-font-mono); }
.v2-ai-badge.is-high { color: var(--v2-red); }
.v2-ai-badge.is-low { color: var(--v2-text-muted); }
.v2-ai-none { font-size: 12px; color: var(--v2-text-faint); white-space: nowrap; }

.v2-timeline { display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow-y: auto; }
.v2-tl-row { display: flex; gap: 10px; font-size: 12.5px; align-items: baseline; color: var(--v2-text-muted); }
.v2-tl-row .t { color: var(--v2-text-faint); flex: none; }

/* ---------------- 알림 채널 ---------------- */

.v2-chan-list { display: flex; flex-direction: column; gap: 12px; }
.v2-chan { padding: 13px 15px; border-radius: var(--v2-radius-sm); background: var(--v2-surface-2); border: 1px solid var(--v2-border-soft); }
.v2-chan-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.v2-chan .v2-form-row { margin-top: 10px; }

/* ---------------- 기간 선택(사용자 지정) ---------------- */

.v2-range-custom { display: inline-flex; align-items: center; gap: 8px; }
.v2-input-date { height: 40px; width: 148px; }
.v2-range-sep { color: var(--v2-text-faint); }

/* ---------------- 빈 상태(§7 · §10) ---------------- */

.v2-empty-rich { padding: 30px 16px; text-align: center; }
.v2-empty-title { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--v2-text); }
.v2-empty-help { margin: 7px 0 0; font-size: 13px; color: var(--v2-text-faint); }
.v2-empty-actions { display: flex; justify-content: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

.v2-week-summary {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 12px 16px; border-radius: var(--v2-radius-sm);
  background: var(--v2-surface-2); border: 1px solid var(--v2-border-soft);
  font-size: 13px; color: var(--v2-text-muted);
}
.v2-week-summary .v2-week-title { font-weight: 700; color: var(--v2-text); }
.v2-week-summary b { color: var(--v2-text); font-variant-numeric: tabular-nums; }

.v2-btn-block { width: 100%; margin-top: 12px; }

/* ---------------- 토스트 ---------------- */

.v2-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 60;
  max-width: min(560px, calc(100vw - 32px));
  padding: 12px 18px; border-radius: var(--v2-radius-sm);
  background: var(--v2-surface-3); border: 1px solid var(--v2-border);
  color: var(--v2-text); font-size: 13.5px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.v2-toast.is-error { border-color: var(--v2-line-danger); color: var(--v2-text); }

/* ---------------- 모달 ---------------- */

.v2-modal-backdrop {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(2px);
}
.v2-modal {
  width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  padding: 22px 24px; border-radius: var(--v2-radius);
  background: var(--v2-surface); border: 1px solid var(--v2-border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}
.v2-modal-h { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.v2-modal-h .ok {
  width: 26px; height: 26px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: var(--v2-surface-3); color: var(--v2-text); font-size: 15px;
}
.v2-modal-sub { margin: 0 0 14px; font-size: 13px; color: var(--v2-text-muted); line-height: 1.5; }
.v2-modal-amount { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; margin: 4px 0 14px; }
.v2-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; flex-wrap: wrap; }

/* 아래쪽 보조 링크 — 메뉴와 같은 좌우 여백, 한 단계 작은 글자·높이(메뉴보다 앞서 보이지 않게). */
.v2-nav-sub { min-height: 38px; font-size: 14px; color: var(--v2-text-faint); text-decoration: none; }
/* 색상 모드 고르기(사이드바 아래) — 탭 모양을 그대로 쓰고 두 칸을 반씩 나눈다. */
/* 색상 모드 둘(네이비·라이트, 2026-11-11) — 한 줄에 반씩. */
.v2-color-mode { display: grid; grid-template-columns: 1fr 1fr; }
.v2-color-mode .v2-tab { padding: 7px 8px; font-size: 13.5px; white-space: nowrap; }

/* ---------------- 분석 · KPI · 설정·요금 (기존 콘솔에서 옮긴 화면) ---------------- */

.v2-sum-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.v2-sum-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.v2-sum-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* 서비스 상태 카드(결제 내역 탭 맨 위) — 상태는 안의 배지가 말한다. 왼쪽 테두리 색은 뺐다(2026-10-30, 가장자리 색 띠 제거). */
.v2-svc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.v2-svc-plan { font-size: 12.5px; color: var(--v2-text-muted); margin-top: 4px; }
.v2-svc-badge { font-size: 13px; padding: 5px 12px; }
.v2-svc-badge i { background: currentColor; }
.v2-sum-sub { font-size: 12px; color: var(--v2-text-faint); margin-top: 6px; line-height: 1.5; }
.v2-table.v2-table-fit { min-width: 0; }
.v2-ana-sec { margin-top: 22px; min-width: 0; }
.v2-ana-h { font-size: 14.5px; font-weight: 700; margin: 0 0 8px; }
.v2-tips { margin: 14px 0 0; padding-left: 18px; font-size: 13px; color: var(--v2-text-muted); line-height: 1.7; }
.v2-tips b { color: var(--v2-text); }

.v2-hbar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 13px; }
.v2-hbar-k { width: 110px; flex: none; font-weight: 600; }
.v2-hbar-track { flex: 1; height: 10px; border-radius: 6px; background: var(--v2-surface-3); overflow: hidden; }
.v2-hbar-track i { display: block; height: 100%; background: var(--v2-normal); border-radius: 6px; }
.v2-hbar-v { width: 170px; flex: none; text-align: right; color: var(--v2-text-muted); }
.v2-mini-bar { display: inline-block; width: 60px; height: 7px; border-radius: 4px; background: var(--v2-surface-3); overflow: hidden; vertical-align: middle; }
.v2-mini-bar i { display: block; height: 100%; background: var(--v2-normal); }

.v2-acc-card {
  padding: 20px 22px; margin-bottom: 16px; border-radius: var(--v2-radius);
  background: var(--v2-surface); border: 1px solid var(--v2-border);
}
#accBody > .v2-sum-grid { margin-bottom: 16px; }
#accBody > .v2-error { margin-bottom: 12px; }
.v2-two-col > .v2-acc-card { margin-bottom: 16px; }
.v2-site-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.v2-site-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px; border-radius: var(--v2-radius-sm); background: var(--v2-surface-2); border: 1px solid var(--v2-border-soft);
}
.v2-site-name { font-weight: 700; font-size: 14px; }
.v2-site-sub { font-size: 12.5px; color: var(--v2-text-faint); margin-top: 3px; }
.v2-site-actions { display: flex; align-items: center; gap: 8px; }
/* 광고 계정 연동(adaccount.js): 매체 카드 → 연결 → 광고계정 */
.v2-ad-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.v2-ad-soon { opacity: 0.72; }
.v2-ad-sync-error { color: var(--v2-red); }
.v2-ad-conn { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--v2-border-soft); }
.v2-ad-conn-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.v2-ad-form { margin-top: 10px; padding: 12px 14px; border-radius: var(--v2-radius-sm); background: var(--v2-surface-2); border: 1px solid var(--v2-border-soft); }
.v2-field-label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--v2-text-muted); max-width: 520px; }
.v2-input-md { width: 140px; flex: none !important; }
.v2-row-actions { display: flex; gap: 6px; }

.v2-snip { border: 1px solid var(--v2-border-soft); border-radius: var(--v2-radius-sm); margin-top: 10px; background: var(--v2-surface-2); }
.v2-snip summary { padding: 11px 14px; cursor: pointer; font-weight: 600; font-size: 13.5px; }
.v2-snip-body { padding: 4px 14px 14px; }
.v2-snip h5 { font-size: 13px; margin: 14px 0 4px; }
.v2-snip .v2-tips { padding: 0 14px 14px 32px; }
.v2-code {
  margin: 8px 0; padding: 12px 14px; border-radius: 8px; background: #080809; border: 1px solid var(--v2-border-soft);
  font-family: var(--v2-font-mono); font-size: 12px; line-height: 1.55; color: #C8C8CC; white-space: pre-wrap; word-break: break-all;
  max-height: 320px; overflow: auto;
}
.v2-code mark, .v2-acc-card mark { background: var(--v2-surface-3); color: var(--v2-text); padding: 0 2px; border-radius: 3px; }
.v2-collect { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.v2-collect i { width: 9px; height: 9px; border-radius: 2px; flex: none; background: var(--v2-text-faint); }
.v2-collect i.is-ok { background: var(--v2-green); }

.v2-usage-bar { display: block; height: 12px; border-radius: 7px; background: var(--v2-surface-3); overflow: hidden; }
.v2-usage-bar i { display: block; height: 100%; background: var(--v2-accent); border-radius: 7px; }
.v2-usage-bar.is-warn i { background: var(--v2-orange); }
.v2-usage-bar.is-over i { background: var(--v2-red); }
.v2-usage-inline { display: inline-block; width: 120px; height: 8px; vertical-align: middle; }
.v2-plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.v2-plan { padding: 16px; border-radius: var(--v2-radius-sm); background: var(--v2-surface-2); border: 1px solid var(--v2-border-soft); }
.v2-plan.is-current { border-color: var(--v2-accent); }
/* 기간제(2주) 요금제 카드 — 월 구독과 구분되게 점선 */
.v2-plan.is-term { border-style: dashed; border-color: var(--v2-accent); }
.v2-plan-name { font-weight: 700; margin-bottom: 6px; }
.v2-plan-price { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.v2-plan-price small { font-size: 13px; font-weight: 400; color: var(--v2-text-muted); }

.v2-billing-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-bottom: 16px; padding: 12px 16px; border-radius: var(--v2-radius-sm); font-size: 13px;
}
.v2-billing-banner b { display: block; margin-bottom: 2px; }
.v2-billing-banner.is-alert { border: 1px solid var(--v2-line-danger); color: var(--v2-text); }
.v2-billing-banner.is-watch { border: 1px solid var(--v2-line-warn); color: var(--v2-text); }
.v2-billing-banner.is-info { border: 1px solid var(--v2-border); color: var(--v2-text); }
/* 구간 초과 안내 — 숫자와 세 가지 선택지(그대로 두기 / 다음 달부터 / 이번 달부터). 배너와 사용량 탭이 같은 모양을 쓴다 */
.v2-advice { margin: 12px 0 16px; padding: 14px 16px; border-radius: var(--v2-radius-sm); background: none; border: 1px solid var(--v2-line-warn); font-size: 13px; }
.v2-advice > b { display: block; margin-bottom: 6px; }
.v2-advice p { margin: 4px 0; }
.v2-advice-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.v2-advice-banner > div { flex: 1 1 auto; }
.v2-advice-banner .v2-advice-actions { margin-top: 8px; }
.v2-event-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.v2-event-list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.v2-event-form { align-items: end; flex-wrap: wrap; gap: 10px; }
.v2-event-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--v2-text-muted); }

/* 대시보드 — 제목 바로 아래 "조치가 필요한 항목" 줄은 카드 제목과 겹치고, 방문 추이의 위 범례 색 표시는 막대 아래 숫자 라벨과 겹친다(요청서 "반복 설명 제거"). */
[data-ov-todo-basis] { display: none; }
#ovBarLegend > span:not(.v2-muted) { display: none; }

/* ---------------- 반응형 ---------------- */

@media (max-width: 1320px) {
  .v2-two-col, .v2-detail-grid { grid-template-columns: minmax(0, 1fr); }
  .v2-bottom { grid-template-columns: minmax(0, 1fr); }
  .v2-rail { flex-direction: row; flex-wrap: wrap; }
  .v2-rail > * { flex: 1 1 280px; }
}
@media (max-width: 1100px) {
  .v2-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-charts { grid-template-columns: minmax(0, 1fr); }
  .v2-insights { grid-template-columns: minmax(0, 1fr); }
  .v2-commerce-grid { grid-template-columns: minmax(0, 1fr); }
  .v2-sum-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-sum-3 { grid-template-columns: minmax(0, 1fr); }
}
/* 좁은 데스크톱·태블릿(≤1180px): 사이드바가 본문을 밀지 않게 너비를 236px로 — 글자·아이콘 크기는 그대로 둔다. */
@media (max-width: 1180px) {
  .v2-sidebar { width: 236px; padding-left: 12px; padding-right: 12px; }
}
/* 세로가 짧은 화면: 메뉴가 가장 많은 관리자 콘솔(7개 + 묶음 제목 4개)과 아래 계정 영역이 스크롤 없이 한 화면에 들어오도록
   세로 여백부터 줄이고, 그래도 모자라면 항목 높이를 줄인다. 글자·아이콘 크기는 그대로 둔다. */
@media (max-height: 920px) and (min-width: 761px) {
  .v2-sidebar { gap: 22px; padding-top: 18px; padding-bottom: 14px; }
  .v2-nav-item { min-height: 42px; }
  .v2-nav-group { margin-top: 10px; }
  .v2-nav-sub { min-height: 34px; padding-top: 4px; padding-bottom: 4px; }
  .v2-side-foot { gap: 2px; }
  .v2-user { padding: 7px 12px; }
  .v2-color-mode .v2-tab { padding: 5px 8px; }
}
@media (max-height: 820px) and (min-width: 761px) {
  .v2-sidebar { gap: 16px; }
  .v2-nav-item { min-height: 40px; }
  .v2-nav-sub { min-height: 30px; }
}
@media (max-height: 760px) and (min-width: 761px) {
  .v2-nav-item { min-height: 38px; }
}
/* 모바일(≤760px): 사이드바를 상단 바로 — 1행 로고+로그아웃, 2행 아이콘+짧은 라벨 메뉴(가로 스크롤). 화면 위에 붙여 둔다.
   표는 열이 5개 넘으면 카드형(core.js가 td에 data-label을 붙인다)으로, 적으면 그대로 표. 12px 미만 글자는 12px로 올린다. */
@media (max-width: 760px) {
  .v2-shell { flex-direction: column; }
  .v2-sidebar {
    width: auto; height: auto; position: sticky; top: 0; z-index: 30;
    flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 10px;
    padding: 10px 12px 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  }
  .v2-brand { order: 1; padding: 0; gap: 8px; }
  .v2-brand-mark { width: 30px; height: 30px; }
  .v2-brand-name { font-size: 17px; white-space: nowrap; }
  .v2-brand-sub { display: none; }
  .v2-side-foot { order: 2; margin: 0 0 0 auto; flex-direction: row; align-items: center; gap: 8px; }
  /* 모바일 위쪽 가로 막대에는 자리가 없어 색상 모드 고르기도 숨긴다(고른 값은 그대로 남는다). */
  .v2-side-foot .v2-user, .v2-side-foot .v2-nav-sub, .v2-side-foot .v2-color-mode { display: none; }
  .v2-side-foot .v2-btn { height: 36px; margin-top: 0; padding: 0 12px; font-size: 13px; }
  .v2-nav {
    order: 3; flex: 1 1 100%; flex-direction: row; gap: 4px;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin: 0 -12px; padding: 0 12px;
  }
  .v2-nav::-webkit-scrollbar { display: none; }
  /* 가로 한 줄 메뉴에서는 묶음 제목이 자리만 차지한다 — 메뉴 이름만으로 충분하다. */
  .v2-nav-group { display: none; }
  .v2-nav-item { flex: none; width: auto; min-height: 42px; padding: 8px 12px; gap: 7px; font-size: 13px; white-space: nowrap; }
  .v2-nav-item .v2-ic { width: 17px; height: 17px; }

  .v2-main { padding: 20px 16px 40px; gap: 20px; }
  [data-view] { gap: 20px; }
  .v2-kpis { gap: 14px; }
  .v2-kpi { padding: 20px; }
  .v2-kpi-value { font-size: 28px; }
  .v2-card { padding: 20px 18px; }
  .v2-topbar { gap: 10px; }
  .v2-page-title { font-size: 22px; }
  .v2-topbar-controls { width: 100%; gap: 8px; }
  .v2-topbar-controls .v2-select { flex: 1 1 130px; min-width: 0; }
  .v2-topbar-controls .v2-btn { flex: 1 1 100%; }
  /* 콘솔 전환은 한 줄을 다 쓰고 두 버튼을 반씩 나눈다 — 손가락으로 누르기 쉬운 크기. */
  .v2-range-custom { flex: 1 1 100%; }
  .v2-input-date { flex: 1 1 0; width: auto; min-width: 0; }

  .v2-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .v2-kpi { padding: 14px 14px; min-height: 108px; }
  .v2-kpi-value { font-size: 26px; }
  .v2-kpi-label { font-size: 12.5px; }
  .v2-card { padding: 16px 14px; }
  .v2-status { padding: 12px 14px; }
  .v2-status-as-of { margin-left: 0; flex: 1 1 100%; }
  .v2-chart-box svg, .v2-visits-box svg { min-width: 0; }
  .v2-donut { width: 140px; height: 140px; }
  .v2-sum-grid, .v2-sum-6, .v2-sum-4, .v2-sum-3, .v2-sum-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .v2-hbar-k { width: 84px; }
  .v2-hbar-v { width: auto; min-width: 90px; }
  .v2-cbar { flex-wrap: wrap; gap: 4px 10px; }
  .v2-case { grid-template-columns: 1fr; gap: 16px; }
  .v2-case-facts { padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--v2-border-soft); }
  .v2-case-decide .v2-btn { flex: 1 1 100%; }
  .v2-case-log { grid-template-columns: 1fr; }
  .v2-case-row .k { width: 100%; }
  .v2-cbar-k { width: 100%; }
  .v2-cbar-v { width: auto; min-width: 84px; }
  .v2-ckpi .v { font-size: 20px; }
  .v2-funnel-row { grid-template-columns: 64px minmax(0, 1fr) 52px; }
  .v2-funnel-step { padding-left: 74px; }
  .v2-tabs { display: flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .v2-tabs::-webkit-scrollbar { display: none; }
  .v2-tab { flex: none; padding: 10px 14px; min-height: 40px; white-space: nowrap; }
  .v2-btn-sm { height: 36px; }

  /* 글자 크기 하한 12px */
  .v2-badge, .v2-funnel-step, .v2-hi-meta, .v2-user-meta, .v2-note, .v2-sum-cell .k, .v2-cm-hint, .v2-sum-sub, .v2-reason-pts,
  .v2-table thead th, .v2-status-as-of, .v2-code { font-size: 12px; }

  /* 열이 많은 표(core.js가 .v2-table-cards를 붙인다): 행을 카드로, 셀은 2열 격자, 머리글은 셀 위에 작게 */
  .v2-table-cards { min-width: 0; }
  .v2-table-cards thead { display: none; }
  .v2-table-cards tbody tr {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px;
    padding: 12px 12px; margin-bottom: 10px; border-radius: var(--v2-radius-sm);
    background: var(--v2-surface-2); border: 1px solid var(--v2-border-soft);
  }
  .v2-table-cards tbody tr:hover td { background: none; }
  .v2-table-cards tbody td { display: block; padding: 0; border: none; min-width: 0; overflow-wrap: anywhere; }
  .v2-table-cards tbody td[data-label]::before { content: attr(data-label); display: block; font-size: 11.5px; color: var(--v2-text-faint); margin-bottom: 1px; }
  .v2-table-cards tbody td.is-wide, .v2-table-cards tbody td[colspan] { grid-column: 1 / -1; }
  .v2-table-cards tbody td:empty { display: none; }
  .v2-table-cards tbody tr.v2-detail-row { display: block; padding: 0; background: none; border: none; }
  .v2-table-cards tbody tr.v2-detail-row > td { padding: 0 !important; }
  .v2-table-cards .v2-ellipsis { max-width: 100%; }
  .v2-detail { padding: 14px 12px; }
  .v2-table:not(.v2-table-cards) { min-width: 0; font-size: 13px; }
  .v2-table:not(.v2-table-cards) tbody td, .v2-table:not(.v2-table-cards) thead th { padding-left: 8px; padding-right: 8px; }

  .v2-toast { bottom: 16px; }
  .v2-modal { padding: 18px 16px; }
}

/* 요금 이의(결제 내역) */
.v2-dispute-form { border: 1px solid var(--v2-border); border-radius: 10px; padding: 14px; margin-bottom: 14px; }
.v2-textarea { width: 100%; height: auto; padding: 10px 13px; margin-top: 10px; resize: vertical; line-height: 1.5; }
.v2-input-md { flex: 0 1 240px !important; }
.v2-dispute-result { max-width: 360px; white-space: normal; }

.v2-dispute-target { font-size: 13px; font-weight: 600; color: var(--v2-text); }

/* ============================================================
   콘솔 v3(.kiro/specs/console-v3-mission-control) 공통 조각 — 시안(docs/mockups/콘솔_v3_미리보기.html)의 CSS를
   v2 토큰(--v2-*)으로 옮겼다. 접두사 .v3-는 "화면 구성 세대"를 뜻할 뿐 디렉터리는 v2 그대로다(R0-5).
   ============================================================ */

/* ---- 홈 미션 컨트롤 3단(home-tasks.js) ---- */
.v3-home { display: flex; flex-direction: column; gap: 16px; }
.v3-home:empty { display: none; }
.v3-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.v3-panel { min-width: 0; display: flex; flex-direction: column; }
.v3-panel-body { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.v3-degraded {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 14px; border-radius: var(--v2-radius-sm); font-size: 13px;
  background: none; border: 1px solid var(--v2-line-warn); color: var(--v2-text);
}
.v3-badge-cyan { color: var(--v2-text-muted); }
.v3-badge-gray { color: var(--v2-text-muted); }
.v3-tasks, .v3-recs { display: flex; flex-direction: column; gap: 8px; }
.v3-task, .v3-rec {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; cursor: pointer;
  border-radius: var(--v2-radius-sm); background: var(--v2-surface-2); border: 1px solid var(--v2-border-soft);
  color: var(--v2-text); font: inherit; font-size: 13.5px;
}
.v3-task:hover, .v3-rec:hover { border-color: var(--v2-border); background: var(--v2-surface-3); }
.v3-task-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.v3-task-text b { font-size: 14px; overflow-wrap: anywhere; }
.v3-task-text span { color: var(--v2-text-muted); font-size: 12px; margin-top: 2px; }
.v3-task-arrow { color: var(--v2-text-faint); flex: none; }
.v3-dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; flex: none; background: var(--v2-text-faint); }
.v3-dot.is-crit { background: var(--v2-red); }
.v3-dot.is-high { background: var(--v2-orange); }
.v3-dot.is-med { background: var(--v2-text-muted); }
.v3-dot.is-low { background: var(--v2-text-faint); }
/* 기한 칩 — 지남 빨강 / 12시간 안 주황 / 여유 회색(R2-4). 할 일과 케이스 표가 함께 쓴다. */
.v3-due { font-size: 11.5px; padding: 1px 7px; border-radius: 4px; font-weight: 700; white-space: nowrap; flex: none; }
.v3-due.is-over { background: var(--v2-red); color: #fff; }
.v3-due.is-soon { border: 1px solid var(--v2-line-warn); color: var(--v2-orange); }
.v3-due.is-ok { background: var(--v2-surface-3); color: var(--v2-text-muted); }
.v3-rec { flex-direction: column; align-items: stretch; gap: 4px; }
.v3-rec-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.v3-rec-head b { overflow-wrap: anywhere; }
.v3-prio-HIGH { color: var(--v2-red); }
.v3-prio-MEDIUM { color: var(--v2-orange); }
.v3-prio-LOW { background: var(--v2-surface-3); color: var(--v2-text-muted); }
.v3-rec-impact { color: var(--v2-text-muted); font-size: 12.5px; }
.v3-evidence { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.v3-evidence span { font-size: 11px; background: var(--v2-surface-3); border-radius: 6px; padding: 2px 7px; color: var(--v2-text-muted); }
.v3-activity { display: flex; flex-direction: column; }
.v3-act {
  display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--v2-border-soft); font-size: 13px;
  width: 100%; text-align: left; background: none; border-left: 0; border-right: 0; border-top: 0; color: var(--v2-text); font-family: inherit;
}
.v3-act:last-child { border-bottom: 0; }
button.v3-act { cursor: pointer; }
button.v3-act:hover .v3-act-text { color: #fff; }
.v3-act time { color: var(--v2-text-faint); font-size: 12px; flex: none; width: 86px; }
.v3-act-text { min-width: 0; overflow-wrap: anywhere; }
.v3-act-who { color: var(--v2-text-muted); }
/* 숫자 카드의 "추정" 배지 — 분류한 의심 방문 비용은 확정 환급액이 아니라는 표시(R1-5, R4-7) */
.v3-kpi-badge {
  display: inline-block; vertical-align: middle; margin-left: 4px; padding: 0 6px; border-radius: 4px;
  font-size: 11px; font-weight: 500; border: 1px solid var(--v2-border); color: var(--v2-text-muted);
}

/* ---- 케이스 표(detections.js) ---- */
.v3-views { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.v3-views-note { margin-top: 0; }
.v3-case-kw { font-weight: 700; max-width: 220px; }
.v3-case-sub { font-size: 11.5px; color: var(--v2-text-faint); margin-top: 2px; }
.v3-case-sub .v2-ellipsis { max-width: 140px; vertical-align: baseline; }
.v3-status-cell { white-space: nowrap; }
.v3-avatars { display: inline-flex; vertical-align: middle; margin-left: 6px; }
.v3-av {
  width: 24px; height: 24px; border-radius: 50%; background: var(--v2-surface-3); border: 2px solid var(--v2-surface);
  display: inline-grid; place-items: center; font-size: 9.5px; font-weight: 700; color: var(--v2-text); margin-left: -6px;
}
.v3-av:first-child { margin-left: 0; }
.v3-av.c1 { background: #3F3F45; } .v3-av.c2 { background: #4A4A50; } .v3-av.c3 { background: #55555B; }
.v3-av.c4 { background: #36363B; } .v3-av.c5 { background: #5F5F66; }
.v3-av.is-ghost { border-style: dashed; border-color: var(--v2-text-faint); background: transparent; color: var(--v2-text-faint); }
.v3-stage { font-size: 12.5px; white-space: nowrap; }
.v3-stage-APPLY_HELD, .v3-stage-APPLY_FAILED { color: var(--v2-orange); }
.v3-stage-APPLIED { color: var(--v2-green); }
.v3-stage-CLOSED { color: var(--v2-text-faint); }
.v3-score { font-size: 12px; color: var(--v2-text-muted); }
.v3-unassigned { color: var(--v2-text-faint); font-size: 12.5px; white-space: nowrap; }
.v3-unassigned .v2-link:disabled { color: var(--v2-text-faint); cursor: not-allowed; text-decoration: none; }

/* ---- 키워드 수익성(keywords.js) ---- */
.v3-kw-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.v3-kw-target { font-size: 12.5px; margin-left: auto; }
.v3-reasons { display: flex; gap: 5px; flex-wrap: wrap; max-width: 420px; }
.v3-reasons span { font-size: 11px; padding: 2px 7px; border-radius: 6px; background: var(--v2-surface-3); color: var(--v2-text-muted); white-space: normal; }
.v3-reasons span.is-warn { color: var(--v2-orange); }
.v3-reasons span.is-bad { color: var(--v2-red); }
.v3-reasons span.is-good { color: var(--v2-text-muted); }
.v3-kwrec { white-space: nowrap; }
b.v3-kwrec, button.v3-kwrec { display: inline; padding: 0; border: 0; background: none; font: inherit; font-weight: 700; width: auto; }
.v3-kwrec-INCREASE { color: var(--v2-green); }
.v3-kwrec-REDUCE, .v3-kwrec-EXCLUDE { color: var(--v2-orange); }
.v3-kwrec-KEEP { color: var(--v2-text-muted); }
.v3-kwrec-NOT_ENOUGH_DATA { color: var(--v2-text-faint); }
.v3-kwrec-REVIEW_DETECTIONS { color: var(--v2-red); }
button.v3-kwrec-link { cursor: pointer; text-decoration: underline dotted; }
.v3-kwrec-sub { font-size: 11px; color: var(--v2-text-faint); font-weight: 400; }
.v3-kw-table tr.is-marked td { background: var(--v2-accent-soft); }

@media (max-width: 1320px) { .v3-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .v3-panels { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .v3-act time { width: 72px; }
  .v3-reasons { max-width: 100%; }
  .v3-case-kw, .v3-case-sub .v2-ellipsis { max-width: 100%; }
  .v3-status-cell, .v3-unassigned { white-space: normal; }
  .v3-due, .v3-evidence span, .v3-reasons span, .v3-case-sub, .v3-task-text span, .v3-kwrec-sub { font-size: 12px; }
}

/* ---- 콘솔 v3 단계 B: 케이스 담당자 배정(detections.js) · ROI 장부(roi.js) · 홈 ROI 요약(home-tasks.js) ---- */
/* 화면에는 숨기고 보조기기·모바일 카드형 data-label에만 남기는 글자(체크박스 열 머리글 등) */
.v3-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.v3-sel { width: 34px; }
/* 같은 IP·검색어 묶기(2026-11-08) */
.v3-group-toggle { margin-left: auto; }
.v3-visitor { font-size: 12.5px; color: var(--v2-text-muted); white-space: nowrap; }
.v3-group-members > td { padding: 0 0 12px 34px; background: var(--v2-surface-2); }
.v3-members { min-width: 0; }
.v3-members thead th { font-size: 12px; }
.v3-sel input { width: 15px; height: 15px; accent-color: var(--v2-accent); cursor: pointer; vertical-align: middle; }
.v3-assignee-cell { position: relative; white-space: nowrap; }
.v3-assignee-name { max-width: 120px; vertical-align: middle; }
.v3-assign-btn { font-size: 12px; margin-left: 4px; }
.v3-bulk {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; padding: 10px 14px;
  border-radius: var(--v2-radius-sm); background: var(--v2-accent-soft); border: 1px solid var(--v2-border); font-size: 13px;
  position: relative;
}
.v3-bulk .v2-danger { font-size: 12.5px; }
/* 담당자 선택 팝오버 — 누른 버튼 바로 아래. 셀 안이라 position:relative인 칸(.v3-assignee-cell·.v3-bulk)을 기준으로 뜬다. */
.v3-assign-pop {
  position: absolute; left: 0; top: calc(100% - 4px); z-index: 20; min-width: 240px; max-width: 320px;
  background: var(--v2-surface-2); border: 1px solid var(--v2-border); border-radius: var(--v2-radius-sm);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45); padding: 8px; white-space: normal; text-align: left;
}
.v3-bulk .v3-assign-pop { top: calc(100% + 2px); }
.v3-assign-title { font-size: 11.5px; font-weight: 700; color: var(--v2-text-faint); padding: 4px 8px 6px; letter-spacing: 0.04em; }
.v3-assign-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: 8px; background: none;
  color: var(--v2-text); font: inherit; font-size: 13px; text-align: left; cursor: pointer;
}
.v3-assign-item:hover { background: var(--v2-surface-3); }
.v3-assign-item.is-current { background: var(--v2-accent-soft); }
.v3-assign-item.is-me { font-weight: 600; }
.v3-assign-item.is-clear { color: var(--v2-text-muted); border-top: 1px solid var(--v2-border-soft); border-radius: 0; margin-top: 4px; padding-top: 10px; }
.v3-assign-item .v3-av { margin-left: 0; flex: none; }
.v3-assign-item .v2-ellipsis { max-width: 100%; }

/* 검토 SLA 카드(settings.js) */
.v3-sla { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--v2-border-soft); }

/* ROI 장부 — 상태 배지 4색: 추정(노랑) / 사용자 판정(주황) / 확정(초록) / 시나리오 추정(보라). 시안 .b-est/.b-user/.b-conf/.b-model. */
.v3-badge-est { color: var(--v2-ledger-estimated); }
.v3-badge-user { color: var(--v2-ledger-judged); }
.v3-badge-conf { color: var(--v2-ledger-confirmed); }
.v3-badge-model { color: var(--v2-ledger-assumed-text); }
.v3-badge-red { color: var(--v2-red); }
.v3-roi-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.v3-roi-spacer { flex: 1 1 auto; }
/* ROI 장부는 블록을 전부 #roiBody 하나에 그려서 [data-view]의 블록 간격이 닿지 않았다 — 띠·카드가 맞붙어 보인다는
   지적(2026-10-27). 부모와 같은 간격(PC 20px, 모바일 16px)을 물려받는다. */
#roiBody { display: flex; flex-direction: column; gap: inherit; }
/* ROI 장부 맨 위 "이 화면이 무엇인지" 안내, 참고 띠는 사유를 줄마다 왼쪽부터 읽게 한다(2026-10-27) */
.v3-roi-intro { margin: 0; line-height: 1.7; }
.v3-degraded[data-roi-degraded] { justify-content: flex-start; align-items: flex-start; }
.v3-degraded[data-roi-degraded] ul { margin: 0; padding-left: 18px; }
.v3-month-nav .v2-tab { min-width: 36px; justify-content: center; }
.v3-month-nav .v2-tab.is-active { cursor: default; }
.v3-ledgers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.v3-ledger { min-width: 0; display: flex; flex-direction: column; }
/* 네 장부는 서로 다른 숫자라 카드도 배지와 같은 색으로 구분한다(R4-1) — 위쪽 선 + 위에서 옅어지는 배경. 글자색은 그대로 둔다. */
/* 네 장부는 "얼마나 확실한 금액인가"를 밝기로 구분한다 — 확정이 가장 밝고 가정이 가장 어둡다. */
/* 위쪽 색 선은 뺐다(2026-10-30 — 칸 가장자리 색 띠가 "AI가 만든 화면" 같다는 피드백). 구분은 배지 색과 금액 밝기가 맡는다. */
.v3-ledger { background: none; }
.v3-ledger[data-ledger="estimatedSuspiciousCostKrw"] { --ledger-c: var(--v2-ledger-estimated); }
.v3-ledger[data-ledger="judgedSuspiciousCostKrw"] { --ledger-c: var(--v2-ledger-judged); }
.v3-ledger[data-ledger="confirmedRefundKrw"] { --ledger-c: var(--v2-ledger-confirmed); }
.v3-ledger[data-ledger="estimatedPreventedKrw"] { --ledger-c: var(--v2-ledger-assumed); }
.v3-ledger-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.v3-ledger-head b { font-size: 14px; }
.v3-ledger-val { font-size: 28px; font-weight: 800; margin: 10px 0 2px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.v3-ledger.is-empty .v3-ledger-val { font-size: 20px; }
.v3-ledger-none { color: var(--v2-text-faint); }
.v3-ledger-def { color: var(--v2-text-muted); font-size: 12.5px; min-height: 36px; flex: 1; }
.v3-ledger-why { margin-top: 10px; }
.v3-roi-two { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; }

/* 고객 여정(journey.js) — 시안 .sankey/.node/.kv를 v2 토큰으로. 왼쪽 큰 산키 카드 + 오른쪽 요약·상위 경로·인사이트. */
.v3-journey-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.v3-journey-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.v3-journey-limits { font-size: 12.5px; margin-left: auto; }
.v3-journey { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; }
.v3-journey-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
/* 쉬운 모드 방문·구매 경로 — 요약 · 상위 경로 · 인사이트를 한 줄에, 흐름도는 접힘 안에서 한 칸 폭으로 */
.v3-journey-easy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.v3-journey.v3-journey-flow { grid-template-columns: minmax(0, 1fr); margin-bottom: 16px; }
@media (max-width: 1100px) { .v3-journey-easy { grid-template-columns: minmax(0, 1fr); } }
.v3-jcard { min-width: 0; background: var(--v2-surface-2); border: 1px solid var(--v2-border-soft); border-radius: var(--v2-radius-sm); padding: 14px 16px; }
.v3-jcard .v2-ana-h { margin-top: 0; }
.v3-sankey-cols { display: flex; justify-content: space-between; color: var(--v2-text-muted); font-size: 12px; font-weight: 700; letter-spacing: 0.05em; }
.v3-sankey { position: relative; min-height: 160px; overflow: hidden; }
.v3-sankey-svg { position: absolute; left: 0; top: 0; }
.v3-sankey-svg path:hover { opacity: 0.9; }
.v3-sankey-note { margin: 8px 0 0; }
.v3-snode {
  position: absolute; box-sizing: border-box; overflow: hidden; background: var(--v2-surface-3); border: 1px solid var(--v2-border);
  border-radius: 12px; padding: 12px 14px;
}
.v3-snode b { display: block; font-size: 14px; max-width: 100%; }
.v3-snode small { display: block; color: var(--v2-text-muted); font-size: 12px; }
.v3-snode-pb { height: 4px; border-radius: 2px; background: var(--v2-surface); margin: 8px 0 6px; }
.v3-snode-pb i { display: block; height: 100%; border-radius: 2px; }
.v3-snode-tag { font-size: 11px; padding: 2px 8px; border-radius: 6px; display: inline-block; }
.v3-kv { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--v2-border-soft); font-size: 13px; }
.v3-kv:last-child { border-bottom: 0; }
.v3-kv span:first-child { color: var(--v2-text-muted); }
.v3-path { padding: 10px 0; border-bottom: 1px solid var(--v2-border-soft); }
.v3-path:last-child { border-bottom: 0; padding-bottom: 0; }
.v3-path-head { display: flex; justify-content: space-between; gap: 8px; }
.v3-path-head b { overflow-wrap: anywhere; }
.v3-path-to, .v3-path-rev { font-size: 12.5px; margin-top: 2px; }
.v3-path-to { color: var(--v2-text-muted); }
.v3-insights { margin: 0; padding-left: 18px; color: var(--v2-text-muted); font-size: 13px; }
.v3-insights li + li { margin-top: 6px; }
.v3-limits { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.55; color: var(--v2-text-muted); }
.v3-limits li + li { margin-top: 10px; }
.v3-limits b { color: var(--v2-text); }
@media (max-width: 1100px) { .v3-journey { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  /* 좁은 화면에서는 산키 대신 상위 경로 목록만 — 노드 두 줄(230px×2)이 들어갈 폭이 없다. */
  .v3-sankey-card { display: none; }
  .v3-journey-limits { margin-left: 0; }
}
.v3-kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--v2-border-soft); font-size: 13px; }
.v3-kv:last-child { border-bottom: 0; }
.v3-kv > span:first-child { color: var(--v2-text-muted); min-width: 0; }
.v3-kv > b { text-align: right; overflow-wrap: anywhere; }
.v3-kv-result b { font-size: 16px; }
/* 차단 적용 상태 — 전송 모드 noop이면 빨간 띠로 "매체에 전송하지 않음"을 숨기지 않는다(R4-3) */
.v3-excl-noop {
  padding: 10px 14px; margin-bottom: 8px; border-radius: var(--v2-radius-sm); font-size: 13px;
  background: none; border: 1px solid var(--v2-line-danger); color: var(--v2-text);
}
/* 월별 회수 추이 — 회색 막대(분류한 의심 방문 비용 기준선) 위에 초록 막대(확정 환급액)를 겹친다 */
.v3-bars { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding: 10px 6px 0; border-bottom: 1px solid var(--v2-border); margin-bottom: 24px; }
.v3-bar-col { flex: 1 1 0; min-width: 0; height: 100%; position: relative; }
.v3-bar-col i { position: absolute; bottom: 0; display: block; border-radius: 4px 4px 0 0; }
.v3-bar-col .v3-bar-base { left: 15%; width: 70%; background: var(--v2-surface-3); border: 1px solid var(--v2-border); border-bottom: 0; }
.v3-bar-col .v3-bar-ref { left: 30%; width: 40%; background: var(--v2-green); }
.v3-bar-col small { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-size: 10.5px; color: var(--v2-text-faint); white-space: nowrap; }
.v3-bars-legend { margin-top: 4px; }
.v3-refund-by { font-size: 12px; color: var(--v2-text-muted); }
.v3-refund-by .v2-ellipsis { max-width: 140px; vertical-align: baseline; }
.v3-refund-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.v3-refund-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--v2-text-muted); min-width: 0; }
.v3-refund-form label.is-wide { grid-column: 1 / -1; }
.v3-refund-form .v2-input, .v3-refund-form .v2-select { width: 100%; min-width: 0; }
.v3-refund-form textarea.v2-input { height: auto; padding: 8px 12px; resize: vertical; font-family: var(--v2-font-mono); font-size: 12.5px; }
/* 산정 근거 서랍 — 오른쪽에서 밀려 나오는 고정 패널 + 어두운 배경 */
.v3-drawer-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 45; }
.v3-drawer {
  position: fixed; top: 0; right: 0; width: 440px; max-width: 100%; height: 100vh; z-index: 50; overflow: auto;
  background: var(--v2-surface); border-left: 1px solid var(--v2-border); box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5); padding: 22px;
}
.v3-drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.v3-drawer-head h3 { margin: 0; font-size: 17px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.v3-drawer-def { margin: 4px 0 0; font-size: 13px; }
.v3-formula {
  background: var(--v2-surface-2); border: 1px solid var(--v2-border-soft); border-radius: var(--v2-radius-sm); padding: 12px; margin: 12px 0;
  font-family: var(--v2-font-mono); font-size: 12.5px; overflow-wrap: anywhere;
}
.v3-drawer-sub { font-size: 12px; color: var(--v2-text-muted); font-weight: 700; margin-bottom: 4px; }
.v3-drawer-note { margin-top: 12px; }
/* 홈 ROI 장부 요약 · KPI 카드의 ROI 링크 */
.v3-roi-mini .v3-kv { padding: 7px 0; }
.v3-roi-mini .v3-kv > span:first-child { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.v3-roi-link { display: inline-block; margin-top: 6px; font-size: 12px; }
@media (min-width: 1700px) { .v3-panels { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1100px) {
  .v3-ledgers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v3-roi-two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .v3-ledgers { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .v3-ledger-val { font-size: 24px; }
  .v3-bars { gap: 4px; height: 140px; }
  .v3-bar-col small { font-size: 9.5px; }
  .v3-bar-col:nth-child(even) small { display: none; }   /* 12칸 라벨이 겹치므로 하나씩 건너뛴다 */
  .v3-drawer { width: 100%; padding: 16px 14px; }
  .v3-refund-form { grid-template-columns: minmax(0, 1fr); }
  .v3-assign-pop { position: fixed; left: 14px; right: 14px; top: auto; bottom: 14px; max-width: none; }
  .v3-assignee-cell { white-space: normal; }
  .v3-assignee-name, .v3-refund-by .v2-ellipsis { max-width: 100%; }
  .v3-roi-head .v2-btn.is-primary { flex: 1 1 100%; }
  .v3-sla .v2-input-sm { width: 110px; }
}
/* 콘솔 v4 환급·증빙 관리 상단(roi.js topHtml) — 시안처럼 숫자 카드 셋, 환급 기록 | 진행 현황, 증빙 파일. 초록은 확정 환급에만 쓴다. */
.rf-kpi { cursor: default; }
.rf-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }
.rf-num { text-align: right; }
.rf-bars { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.rf-bar-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 12.5px; }
.rf-bar-lbl { color: var(--v2-text-muted); }
.rf-bar-track { height: 22px; border-radius: 6px; background: var(--v2-surface-2, rgba(255,255,255,.04)); overflow: hidden; }
.rf-bar-track i { display: block; height: 100%; border-radius: 6px; }
.rf-bar-est { background: var(--v2-surface-3); border: 1px solid var(--v2-border); } .rf-bar-claimed { background: #3F3F45; }
.rf-bar-conf { background: var(--v2-text); } .rf-bar-pending { background: var(--v2-text-faint); opacity: .8; }
.rf-bar-row[data-rf-bar="conf"] b { color: var(--v2-text); }
.rf-rest { margin: 12px 0 0; font-size: 12px; color: var(--v2-text-muted); }
.rf-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
@media (max-width: 1000px) { .rf-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .rf-bar-row { grid-template-columns: 84px minmax(0, 1fr) auto; } }
#roiMore > :not(summary) + :not(summary) { margin-top: 16px; }
/* 콘솔 v4 광고 성과 상단(ads-top.js). 숫자 카드는 중립색, 목표 CPA 넘음만 빨강. */
#adsTop { display: flex; flex-direction: column; gap: 18px; margin-bottom: 18px; }
#adsTop[hidden] { display: none; }
.ads-kpi { cursor: default; }
.ads-over { color: var(--v2-red); } .ads-ok { color: var(--v2-text-muted); }
/* 콘솔 v4 키워드 분석 상단(keywords.js chartHtml) — 구매당 광고비 가로 막대와 기준 CPA 점선, 제안 칩. */
.kw-chart { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--v2-border-soft); }
[data-kw-hold] { margin-bottom: 16px; }
.kw-bars { display: flex; flex-direction: column; gap: 10px; }
.kw-bar-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 84px; gap: 10px; align-items: center; font-size: 12.5px; }
.kw-bar-row b { text-align: right; color: var(--v2-text-muted); }
.kw-bar-track { position: relative; height: 18px; }
.kw-bar-track i { display: block; height: 100%; border-radius: 5px; }
.kw-ref { position: absolute; top: -4px; bottom: -4px; width: 0; border-left: 2px dashed var(--v2-orange); }
.kw-g-INCREASE { background: var(--v2-text); } .kw-g-KEEP { background: var(--v2-text-muted); } .kw-g-REDUCE { background: var(--v2-red); }
.kw-g-WATCH { background: #5F5F66; } .kw-g-REVIEW { background: var(--v2-orange); }
.kw-legend { margin-top: 12px; }
.kw-ref-key { width: 14px !important; height: 0 !important; border-top: 2px dashed var(--v2-orange); background: none !important; border-radius: 0 !important; }
.kw-chips { margin: 12px 0; flex-wrap: wrap; }
@media (max-width: 560px) { .kw-bar-row { grid-template-columns: 96px minmax(0, 1fr) 72px; } }
/* 콘솔 v4 유입·구매 흐름 — 교차 집계표(journey.js crossHtml). */
.jr-cross-card { margin-top: 16px; } .jr-cross-card .v2-table { font-size: 12.5px; min-width: 0; }
.jr-num { text-align: right; } .jr-sum td { border-top: 1px solid var(--v2-border); }
/* 콘솔 v4 사용량·요금제 상단 카드(account.js usageKpisHtml). */
.acc-kpis { margin-bottom: 16px; } .acc-kpi { cursor: default; }

/* ---------------- 상태 아이콘(모노톤, 2026-10-29) ----------------
   상태 점·심각도·처리 상태를 색 면 대신 작은 선 아이콘 + 글자로 보인다. 아이콘은 마스크로 그려 글자색(currentColor)을 따른다 —
   마크업은 그대로(<span class="v2-dot">, <span class="v2-badge sev-HIGH">)라 화면 코드는 고치지 않는다.
   색은 위험(빨강)·주의(주황)에만 쓰고, 뜻은 늘 옆 글자가 말한다. */
.v2-dot, .v2-badge.sev-CRITICAL::before, .v2-badge.sev-HIGH::before, .v2-badge.sev-MEDIUM::before, .v2-badge.sev-LOW::before, .v2-badge.st-SUSPECTED::before, .v2-badge.st-REVIEWING::before, .v2-badge.st-CONFIRMED::before, .v2-badge.st-FALSE_POSITIVE::before, .v2-badge.st-RESOLVED::before, .v2-fresh-badge::before {
  content: ""; display: inline-block; width: 15px; height: 15px; flex: none;
  background: currentColor; -webkit-mask: var(--v2-ic) center / contain no-repeat; mask: var(--v2-ic) center / contain no-repeat;
}
.v2-dot { --v2-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.4'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='M5.5 8.2 7.2 10l3.3-3.6'/%3E%3C/svg%3E"); color: var(--v2-text-muted); }
.v2-dot.is-warn { --v2-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.4' stroke-linejoin='round'%3E%3Cpath d='M8 2 14.5 13.5h-13z'/%3E%3Cpath d='M8 6.5v3M8 11.4v.2'/%3E%3C/svg%3E"); color: var(--v2-orange); }
.v2-dot.is-danger { --v2-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.4'%3E%3Cpath d='M5.5 1.8h5l3.7 3.7v5l-3.7 3.7h-5l-3.7-3.7v-5z'/%3E%3Cpath d='M8 4.8v4M8 11v.2'/%3E%3C/svg%3E"); color: var(--v2-red); }
/* 심각도·처리 상태 배지는 틀 없이 아이콘 + 글자 */
.v2-badge.sev-CRITICAL, .v2-badge.sev-HIGH, .v2-badge.sev-MEDIUM, .v2-badge.sev-LOW, .v2-badge.st-SUSPECTED, .v2-badge.st-REVIEWING, .v2-badge.st-CONFIRMED, .v2-badge.st-FALSE_POSITIVE, .v2-badge.st-RESOLVED { border-color: transparent; padding-left: 0; padding-right: 0; gap: 6px; }
.sev-CRITICAL { --v2-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='2' y='9' width='2.6' height='5'/%3E%3Crect x='6.7' y='5.5' width='2.6' height='8.5'/%3E%3Crect x='11.4' y='2' width='2.6' height='12'/%3E%3C/svg%3E"); color: var(--v2-red); }
.sev-HIGH     { --v2-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='2' y='9' width='2.6' height='5'/%3E%3Crect x='6.7' y='5.5' width='2.6' height='8.5'/%3E%3Crect x='11.4' y='2' width='2.6' height='12' opacity='.25'/%3E%3C/svg%3E"); }
.sev-MEDIUM   { --v2-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='2' y='9' width='2.6' height='5'/%3E%3Crect x='6.7' y='5.5' width='2.6' height='8.5' opacity='.25'/%3E%3Crect x='11.4' y='2' width='2.6' height='12' opacity='.25'/%3E%3C/svg%3E"); }
.sev-LOW      { --v2-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' opacity='.25'%3E%3Crect x='2' y='9' width='2.6' height='5'/%3E%3Crect x='6.7' y='5.5' width='2.6' height='8.5'/%3E%3Crect x='11.4' y='2' width='2.6' height='12'/%3E%3C/svg%3E"); }
.st-SUSPECTED { --v2-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.4'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Ccircle cx='8' cy='8' r='1.6' fill='black' stroke='none'/%3E%3C/svg%3E"); }
.st-REVIEWING { --v2-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.4' stroke-dasharray='2.2 2'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3C/svg%3E"); }
.st-CONFIRMED { --v2-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.4'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='M5.5 8.2 7.2 10l3.3-3.6'/%3E%3C/svg%3E"); }
.st-FALSE_POSITIVE { --v2-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.4'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='M5.6 5.6l4.8 4.8M10.4 5.6l-4.8 4.8'/%3E%3C/svg%3E"); }
.st-RESOLVED  { --v2-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.7' fill='black'/%3E%3Cpath d='M5.4 8.2 7.2 10l3.4-3.7' fill='none' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E"); }
.v2-fresh-badge.is-ok   { --v2-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.4'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='M5.5 8.2 7.2 10l3.3-3.6'/%3E%3C/svg%3E"); }
.v2-fresh-badge.is-warn { --v2-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.4' stroke-linejoin='round'%3E%3Cpath d='M8 2 14.5 13.5h-13z'/%3E%3Cpath d='M8 6.5v3M8 11.4v.2'/%3E%3C/svg%3E"); color: var(--v2-orange); }
.v2-fresh-badge.is-bad  { --v2-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.4'%3E%3Cpath d='M5.5 1.8h5l3.7 3.7v5l-3.7 3.7h-5l-3.7-3.7v-5z'/%3E%3Cpath d='M8 4.8v4M8 11v.2'/%3E%3C/svg%3E"); color: var(--v2-red); }

/* ---------------- 모니터링 화면(monitor.js, 2026-10-30) ----------------
   운영용 보기라 패널을 촘촘히 붙인다: 각진 모서리, 얇은 머리 줄, 숫자는 고정폭. 색은 상태가 있을 때만
   (기한 지남 = 빨강 선, 확인 대기 = 주황 선, 매우 위험 = 빨강 면) — 나머지는 회색 단계라 두 색 모드에서 그대로 읽힌다. */
.mon-root { display: flex; flex-direction: column; gap: 12px; }
.mon-p { background: var(--v2-surface); border: 1px solid var(--v2-border-soft); border-radius: var(--v2-radius-sm); min-width: 0; }
.mon-ph { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid var(--v2-border-soft); }
.mon-ph h3 { margin: 0; font-size: 13px; font-weight: 600; color: var(--v2-text); }
.mon-sub { font-size: 12px; color: var(--v2-text-faint); }
.mon-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.mon-pb { padding: 12px 14px; }
.mon-line { height: 2px !important; width: 12px !important; }

.mon-money { display: grid; grid-template-columns: minmax(200px, 1.3fr) 1px repeat(3, minmax(0, 1fr)) auto; align-items: center; gap: 18px; padding: 14px 16px; }
.mon-sep { align-self: stretch; background: var(--v2-border-soft); }
.mon-k { font-size: 12px; color: var(--v2-text-muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mon-big { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin-top: 4px; color: var(--v2-text); }
.mon-mid { font-size: 17px; font-weight: 500; margin-top: 4px; color: var(--v2-text-muted); }

.mon-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mon-stat .mon-pb { padding-bottom: 8px; }
.mon-v { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: var(--v2-text); }
.mon-d { font-size: 12px; color: var(--v2-text-faint); margin-top: 2px; min-height: 18px; }
.mon-spark { display: block; width: 100%; height: 30px; margin-top: 6px; }
/* 상태 색은 위쪽 선 하나로만 — 패널 전체를 칠하면 경고가 장식처럼 보인다. */
/* 숫자 패널의 위쪽 색 선도 같은 이유로 빼고 숫자 색만 바꾼다. */
.mon-stat.is-hot .mon-v { color: var(--v2-red); }
.mon-stat.is-warn .mon-v { color: var(--v2-orange); }

.mon-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 12px; }
.mon-ts { display: block; width: 100%; height: auto; }
.mon-ts text { font-size: 10.5px; fill: var(--v2-text-faint); font-family: var(--v2-font-mono); }

.mon-rules, .mon-topn { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mon-rules td, .mon-topn td { padding: 7px 0; border-bottom: 1px solid var(--v2-border-soft); vertical-align: middle; }
.mon-rules td + td, .mon-topn td + td { padding-left: 10px; }
.mon-rules tr:last-child td, .mon-topn tr:last-child td { border-bottom: none; }
.mon-rules .mon-sep-row td { border-top: 1px solid var(--v2-border); }
.mon-n { text-align: right; white-space: nowrap; color: var(--v2-text-muted); }

/* 긴급도 라벨 — 각진 글자 상자. 매우 위험만 면을 칠한다. */
.mon-urg { display: inline-block; min-width: 52px; padding: 1px 6px; border: 1px solid var(--v2-border); border-radius: 3px; font-size: 11.5px; font-weight: 600; text-align: center; white-space: nowrap; color: var(--v2-text-muted); margin-right: 8px; }
.mon-urg.is-crit { background: var(--v2-red); border-color: var(--v2-red); color: #fff; }
.mon-urg.is-high { border-color: var(--v2-red); color: var(--v2-red); }
.mon-urg.is-med { border-color: var(--v2-orange); color: var(--v2-orange); }
.mon-urg.is-low { color: var(--v2-text-faint); }

.mon-class { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; align-items: start; }
.mon-comp { display: flex; height: 14px; overflow: hidden; border-radius: 2px; background: var(--v2-surface-3); margin: 4px 0 10px; }
.mon-comp i { display: block; height: 100%; }
.mon-kw { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--v2-text); }
.mon-track { display: block; height: 6px; min-width: 60px; background: var(--v2-surface-3); }
.mon-track i { display: block; height: 100%; background: var(--v2-text-faint); }

.mon-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--v2-border-soft); }
.mon-flow > div { padding: 12px 14px; border-right: 1px solid var(--v2-border-soft); }
.mon-flow > div:last-child { border-right: none; }
.mon-flow b { display: block; font-size: 20px; font-weight: 600; color: var(--v2-text); }
.mon-flow small { font-size: 12px; color: var(--v2-text-faint); }
/* 상태는 숫자 색으로만 — 칸 왼쪽의 색 띠는 "AI가 만든 화면" 같다는 피드백으로 뺐다(2026-10-30). 확인 필요 주황, 처리 중은 흐린 글자. */
.mon-flow .is-tr b { color: var(--v2-orange); }
.mon-flow .is-ac b { color: var(--v2-text-muted); }
.mon-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; }
.mon-search { flex: 1 1 220px; max-width: 340px; }
.mon-tools .v2-tabs { margin: 0; }
#monCases { padding: 0 14px 12px; }

.mon-case { cursor: pointer; }
.mon-case:focus-visible td { outline: 2px solid var(--v2-link); outline-offset: -2px; }
.mon-case.is-open td { background: var(--v2-surface-2); }
.mon-t1 { display: flex; align-items: center; font-weight: 500; color: var(--v2-text); }
.mon-t2 { font-size: 12px; color: var(--v2-text-faint); margin-top: 2px; }
.mon-dim { color: var(--v2-text-faint); font-size: 12px; }
.mon-who { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1px solid var(--v2-border); border-radius: 3px; font-size: 11.5px; font-weight: 600; color: var(--v2-text-muted); }
/* 처리 상태 — 앞의 작은 사각 표시로 단계를 구분한다(둥근 점·반투명 알약 대신). */
.mon-st { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--v2-text-muted); white-space: nowrap; }
.mon-st::before { content: ''; width: 7px; height: 7px; border: 1px solid currentColor; }
.mon-st.is-tr { color: var(--v2-orange); }
.mon-st.is-tr::before { background: currentColor; }
.mon-st.is-ac { color: var(--v2-text); }
.mon-st.is-rs { color: var(--v2-text-faint); }
.mon-st.is-over { color: var(--v2-red); }
.mon-detail td { background: var(--v2-surface-2); }
.mon-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px 20px; margin: 0 0 12px; }
.mon-kv dt { font-size: 11.5px; color: var(--v2-text-faint); }
.mon-kv dd { margin: 2px 0 0; font-size: 13px; color: var(--v2-text); word-break: break-all; }

@media (max-width: 1100px) {
  .mon-money { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mon-money-main { grid-column: 1 / -1; }
  .mon-sep { display: none; }
  .mon-money .mon-r { grid-column: 1 / -1; margin-left: 0; }
  .mon-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mon-row, .mon-class { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .mon-stats, .mon-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mon-flow > div:nth-child(2n) { border-right: none; }
  .mon-flow > div:nth-child(-n+2) { border-bottom: 1px solid var(--v2-border-soft); }
  .mon-search { max-width: none; }
  .mon-kw { max-width: 110px; }
  /* 폰 폭에서는 막대 칸을 빼고 건수를 줄바꿈해 표가 화면 밖으로 나가지 않게 한다. */
  .mon-topn td:nth-child(2) { display: none; }
  .mon-topn .mon-n { white-space: normal; }
}

/* ---------------- 경고 이력(alerts.js, 2026-11-08) ---------------- */
/* 메뉴 배지 — 최근 24시간 위험 이상 경고 수. 메뉴 글자 옆에 작은 알약으로. */
.v2-nav-badge { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--v2-red); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
/* 심각도 카드는 버튼이다(누르면 그 단계 이상만) — 숫자 카드 모양을 그대로 쓰고 켜진 것만 테두리로 표시한다. */
.al-kpis { margin-bottom: 16px; }
button.al-kpi { font: inherit; text-align: left; color: inherit; }
.al-kpi.is-on { border-color: var(--v2-text); box-shadow: inset 0 0 0 1px var(--v2-text); }
.al-kpi .v3-dot { vertical-align: middle; margin-right: 2px; }
.al-tabs-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.al-sound { display: flex; align-items: center; gap: 10px; min-height: 40px; flex-wrap: wrap; }
.al-sound-status { font-size: 12.5px; }
.al-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.al-head .al-desc { margin: 0 0 10px; flex: 1 1 420px; }
.al-head .al-desc b { color: var(--v2-text); font-weight: 600; }
.al-sev { white-space: nowrap; }
.det-pinned { margin-bottom: 16px; border-color: var(--v2-border); }
.det-pinned-note { font-size: 12.5px; font-weight: 400; }
.al-search { width: 200px; }
.al-table td.al-source { white-space: nowrap; }
.al-table td.al-actions { white-space: nowrap; text-align: right; }
.al-table td.al-actions .v2-link { text-decoration: none; }
.al-table td.al-actions .v2-link:hover { text-decoration: underline; }
@media (max-width: 760px) { .al-search { width: 100%; } .al-table.v2-table-cards td.al-actions { text-align: left; } }
.al-sev .v3-dot { vertical-align: middle; margin-right: 4px; }
.al-table td.al-text { max-width: 520px; overflow-wrap: anywhere; }
/* 알림 설정 › 발송 이력(settings.js) — 경고 이력 표와 같은 꼴(설명 줄 + 오른쪽 필터, 긴 제목·결과는 줄바꿈) */
.set-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.set-head .set-desc { margin: 0 0 10px; flex: 1 1 420px; }
.set-head .set-desc b { color: var(--v2-text); font-weight: 600; }
.set-sends td.set-text { max-width: 520px; overflow-wrap: anywhere; }
.al-table tr[data-al-ref] { cursor: pointer; }
.al-table tr[data-al-ref]:focus-visible td { outline: 2px solid var(--v2-link); outline-offset: -2px; }
.v2-warn-note { color: var(--v2-orange); }
