/* ==========================================================================
   COGO Visit Log v3 — 방문 기록 모달 (운영실)
   - 모든 스타일은 .cg-vl 안에서만 동작 (기존 사이트 스타일과 충돌 없음)
   - 필요: shared/cogo-tokens.css
   - 핵심 장치: '기록부' 폴더 탭 + 숫자 띠 + 합계와 나눔이 한눈에 보이는 장부
   ========================================================================== */

.cg-vl {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 24px;
  font-family: var(--cg-font);
  color: var(--cg-ink);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* 초기화는 :where()로 우선순위 0 — 아래 컴포넌트 규칙(.cg-vl .cg-vl-*)이 항상 이김 */
:where(.cg-vl) *, :where(.cg-vl) *::before, :where(.cg-vl) *::after { box-sizing: border-box; }
:where(.cg-vl) :where(button, input, select) { font: inherit; color: inherit; margin: 0; letter-spacing: inherit; }
:where(.cg-vl) button { background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
:where(.cg-vl) :where(p, h2, h3, h4, ul, ol, figure, table) { margin: 0; }
:where(.cg-vl) :focus { outline: none; }
.cg-vl :focus-visible { outline: 2.5px solid rgba(46, 91, 255, .6); outline-offset: 2px; }
.cg-vl .cg-ic { flex: none; display: block; }
.cg-vl .cg-vl-sheet:focus, .cg-vl .cg-vl-sheet:focus-visible { outline: none; }
.cg-vl [hidden] { display: none !important; }
.cg-vl .cg-vl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.cg-vl .cg-vl-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 26, 43, .46);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.cg-vl .cg-vl-sheet {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1120px, 100%);
  height: min(900px, 100%);
  overflow: hidden;
  background: var(--cg-surface);
  border-radius: 28px;
  box-shadow: var(--cg-shadow-sheet);
}

/* ---------- 머리 + 폴더 탭 ---------- */
.cg-vl .cg-vl-head {
  padding: 22px 26px 0 28px;
  background: var(--cg-paper);
  border-bottom: 1px solid var(--cg-line);
}
.cg-vl .cg-vl-head-row { display: flex; align-items: flex-start; gap: 14px; }
.cg-vl .cg-vl-mark {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: var(--cg-ink);
  color: #fff;
}
.cg-vl .cg-vl-mark::after {
  content: "";
  position: absolute;
  right: -3px;
  top: -3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--cg-yellow);
  border: 2.5px solid var(--cg-paper);
}
.cg-vl .cg-vl-head-text { flex: 1; min-width: 0; }
.cg-vl .cg-vl-brand { font-size: 12.5px; font-weight: 700; color: var(--cg-blue); }
.cg-vl .cg-vl-title { margin-top: 1px; font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -.025em; }
.cg-vl .cg-vl-lede { margin-top: 3px; font-size: 14px; font-weight: 500; color: var(--cg-ink-3); }
.cg-vl .cg-vl-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 16px 0 14px;
  border-radius: 999px;
  background: var(--cg-surface);
  border: 1px solid var(--cg-line);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--cg-ink-2);
  white-space: nowrap;
}
.cg-vl .cg-vl-live b { font-size: 15px; font-weight: 800; color: var(--cg-ink); }
.cg-vl .cg-vl-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cg-green);
  animation: cg-pulse 2s ease-out infinite;
}
.cg-vl .cg-vl-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--cg-surface);
  border: 1.5px solid var(--cg-line);
  transition: background .2s, color .2s, border-color .2s;
}
.cg-vl .cg-vl-close:hover { background: var(--cg-ink); border-color: var(--cg-ink); color: #fff; }

.cg-vl .cg-vl-tabs {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin: 18px 0 -1px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cg-vl .cg-vl-tabs::-webkit-scrollbar { display: none; }
.cg-vl .cg-vl-tab {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 46px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 13px 13px 0 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--cg-ink-3);
  white-space: nowrap;
  transition: color .18s, background .18s;
}
.cg-vl .cg-vl-tab:hover { color: var(--cg-ink); background: rgba(22, 26, 43, .04); }
.cg-vl .cg-vl-tab[aria-selected="true"] {
  z-index: 1;
  background: var(--cg-surface);
  border-color: var(--cg-line);
  color: var(--cg-ink);
  font-weight: 800;
}
.cg-vl .cg-vl-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--cg-surface);
}
.cg-vl .cg-vl-tab-badge {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--cg-blue-50);
  color: var(--cg-blue);
  font-size: 10.5px;
  font-weight: 800;
}

/* ---------- 본문 ---------- */
.cg-vl .cg-vl-body {
  position: relative;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 22px 28px 30px;
  scrollbar-gutter: stable;
}
.cg-vl .cg-vl-progress {
  position: sticky;
  top: -22px;
  z-index: 5;
  height: 2px;
  margin: -22px -28px 20px;
  overflow: hidden;
  opacity: 0;
  transition: opacity .2s;
}
.cg-vl .cg-vl-progress::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 40%;
  background: var(--cg-blue);
  animation: cg-vl-indet 1s ease-in-out infinite;
}
.cg-vl.is-loading .cg-vl-progress { opacity: 1; }
.cg-vl .cg-vl-content { transition: opacity .2s; }
.cg-vl.is-loading .cg-vl-content { opacity: .5; }
.cg-vl .cg-vl-content.is-entering > * { animation: cg-rise .3s var(--cg-ease) both; }
.cg-vl .cg-vl-content.is-entering > :nth-child(2) { animation-delay: 40ms; }
.cg-vl .cg-vl-content.is-entering > :nth-child(3) { animation-delay: 80ms; }
.cg-vl .cg-vl-content.is-entering > :nth-child(n+4) { animation-delay: 120ms; }

/* 날짜 줄 */
.cg-vl .cg-vl-datebar { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; margin-bottom: 18px; }
.cg-vl .cg-vl-dlabel { font-size: 12.5px; font-weight: 700; color: var(--cg-blue); }
.cg-vl .cg-vl-dtitle { display: flex; align-items: center; gap: 10px; margin-top: 3px; font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
.cg-vl .cg-vl-dtitle em {
  padding: 2px 8px;
  border-radius: 7px;
  background: var(--cg-ink);
  color: var(--cg-yellow);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0;
}
.cg-vl .cg-vl-datenav { display: flex; align-items: center; gap: 6px; }
.cg-vl .cg-vl-dpill {
  position: relative;
  display: flex;
  height: 42px;
  overflow: hidden;
  background: var(--cg-surface);
  border: 1px solid var(--cg-line);
  border-radius: 12px;
}
.cg-vl .cg-vl-dpill > button { display: grid; place-items: center; width: 40px; color: var(--cg-ink-2); transition: background .15s; }
.cg-vl .cg-vl-dpill > button:hover:not(:disabled) { background: var(--cg-surface-2); }
.cg-vl .cg-vl-dpill > button:disabled { color: var(--cg-line); cursor: default; }
.cg-vl .cg-vl-dpill > .cg-vl-dpick {
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
  padding: 0 14px;
  border-left: 1px solid var(--cg-line-2);
  border-right: 1px solid var(--cg-line-2);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}
.cg-vl .cg-vl-dpick .cg-ic { color: var(--cg-ink-3); }
.cg-vl .cg-vl-dinput { position: absolute; left: 50%; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cg-vl .cg-vl-today { height: 42px; padding: 0 12px; border-radius: 11px; font-size: 13.5px; font-weight: 700; color: var(--cg-blue); }
.cg-vl .cg-vl-today:hover:not(:disabled) { background: var(--cg-blue-50); }
.cg-vl .cg-vl-today:disabled { color: var(--cg-ink-4); cursor: default; }

/* 숫자 띠 (KPI) */
.cg-vl .cg-vl-kpis {
  display: grid;
  grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr));
  overflow: hidden;
  background: var(--cg-surface);
  border: 1px solid var(--cg-line);
  border-radius: 18px;
}
.cg-vl .cg-vl-kpi { position: relative; min-width: 0; padding: 18px 22px 18px; }
.cg-vl .cg-vl-kpi + .cg-vl-kpi { border-left: 1px solid var(--cg-line-2); }
.cg-vl .cg-vl-kpi-label { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; font-size: 13.5px; font-weight: 700; color: var(--cg-ink-2); }
.cg-vl .cg-vl-kpi-tag { padding: 1px 7px; border: 1px solid var(--cg-line); border-radius: 6px; font-size: 11.5px; font-weight: 700; color: var(--cg-ink-3); }
.cg-vl .cg-vl-kpi-value { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 4px; margin-top: 8px; }
.cg-vl .cg-vl-kpi-value b { font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -.035em; }
.cg-vl .cg-vl-kpi-value b.is-none { color: var(--cg-ink-4); }
.cg-vl .cg-vl-kpi-value > span { font-size: 15px; font-weight: 700; color: var(--cg-ink-2); }
.cg-vl .cg-vl-kpi-desc { margin-top: 10px; font-size: 12.5px; color: var(--cg-ink-3); }
.cg-vl .cg-vl-delta { display: inline-flex; align-items: center; gap: 2px; margin-left: 10px; font-size: 12.5px; font-weight: 700; color: var(--cg-ink-3); }
.cg-vl .cg-vl-delta.is-up { color: var(--cg-up); }
.cg-vl .cg-vl-delta.is-down { color: var(--cg-down); }
.cg-vl .cg-vl-avstack { position: absolute; right: 20px; top: 50%; display: flex; transform: translateY(-50%); }
.cg-vl .cg-vl-avstack .cg-vl-ava { width: 34px; height: 34px; margin-left: -10px; box-shadow: 0 0 0 2.5px var(--cg-surface); font-size: 12px; }
.cg-vl .cg-vl-avstack .cg-vl-ava::after { display: none; }
.cg-vl .cg-vl-avstack .cg-vl-avmore { display: grid; place-items: center; width: 34px; height: 34px; margin-left: -10px; border-radius: 50%; background: var(--cg-paper); box-shadow: 0 0 0 2.5px var(--cg-surface); font-size: 11.5px; font-weight: 800; color: var(--cg-ink-2); }

/* 거르기 줄 */
.cg-vl .cg-vl-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 20px 0 10px; }
.cg-vl .cg-vl-seg { display: flex; flex: none; padding: 3px; border-radius: 12px; background: var(--cg-paper); }
.cg-vl .cg-vl-seg button {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 13px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--cg-ink-3);
  white-space: nowrap;
  transition: background .18s, color .18s, box-shadow .18s;
}
.cg-vl .cg-vl-seg button span { color: var(--cg-ink-4); font-variant-numeric: tabular-nums; }
.cg-vl .cg-vl-seg button[aria-checked="true"] { background: var(--cg-surface); color: var(--cg-ink); box-shadow: 0 1px 2px rgba(22, 26, 43, .12); }
.cg-vl .cg-vl-seg button[aria-checked="true"] span { color: var(--cg-blue); }
.cg-vl .cg-vl-search {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 14px;
  background: var(--cg-surface);
  border: 1.5px solid var(--cg-line);
  border-radius: 12px;
  color: var(--cg-ink-3);
  cursor: text;
  transition: border-color .2s, box-shadow .2s;
}
.cg-vl .cg-vl-search:hover { border-color: var(--cg-ink-4); }
.cg-vl .cg-vl-search:focus-within { border-color: var(--cg-blue); box-shadow: 0 0 0 4px rgba(46, 91, 255, .12); color: var(--cg-blue); }
.cg-vl .cg-vl-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 14.5px; font-weight: 600; color: var(--cg-ink); }
.cg-vl .cg-vl-search input:focus-visible { outline: none; }
.cg-vl .cg-vl-search input::placeholder { color: var(--cg-ink-4); font-weight: 500; }
.cg-vl .cg-vl-search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.cg-vl .cg-vl-select { position: relative; display: flex; align-items: center; height: 44px; }
.cg-vl .cg-vl-select select {
  -webkit-appearance: none;
  appearance: none;
  height: 100%;
  padding: 0 34px 0 13px;
  background: var(--cg-surface);
  border: 1px solid var(--cg-line);
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
.cg-vl .cg-vl-select select:hover { border-color: var(--cg-ink-4); }
.cg-vl .cg-vl-select.is-set select { border-color: var(--cg-ink); }
.cg-vl .cg-vl-select .cg-ic { position: absolute; right: 11px; color: var(--cg-ink-3); pointer-events: none; }
.cg-vl .cg-vl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 44px;
  padding: 0 14px;
  background: var(--cg-surface);
  border: 1px solid var(--cg-line);
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .18s, border-color .18s, color .18s;
}
.cg-vl .cg-vl-btn .cg-ic { color: var(--cg-ink-3); }
.cg-vl .cg-vl-btn:hover { border-color: var(--cg-ink-4); }
.cg-vl .cg-vl-btn--icon { width: 44px; padding: 0; }
.cg-vl .cg-vl-btn--soft { background: var(--cg-blue-50); border-color: var(--cg-blue-100); color: var(--cg-blue); }
.cg-vl .cg-vl-btn--soft .cg-ic { color: var(--cg-blue); }
.cg-vl .cg-vl-btn--soft:hover { background: var(--cg-blue-100); border-color: var(--cg-blue-200); }
.cg-vl .cg-vl-btn.is-spinning .cg-ic { animation: cg-spin .7s linear; }
.cg-vl .cg-vl-gap { flex: 1; }

.cg-vl .cg-vl-status { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; font-size: 12.5px; color: var(--cg-ink-3); }
.cg-vl .cg-vl-status b { font-size: 14px; font-weight: 800; color: var(--cg-ink); }

/* 회원 목록 */
.cg-vl .cg-vl-list { list-style: none; padding: 0; border-top: 1px solid var(--cg-line-2); }
.cg-vl .cg-vl-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 76px minmax(0, 1.3fr) 112px 18px;
  align-items: center;
  gap: 16px;
  min-height: 66px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--cg-line-2);
  cursor: pointer;
  transition: background .15s;
}
.cg-vl .cg-vl-row:hover { background: var(--cg-surface-2); }
.cg-vl .cg-vl-row:focus-visible { outline-offset: -2px; }
.cg-vl .cg-vl-person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cg-vl .cg-vl-ava {
  --h: var(--cg-blue);
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--h);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}
.cg-vl .cg-vl-ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.cg-vl .cg-vl-ava.is-online::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cg-green);
  border: 2.5px solid var(--cg-surface);
}
.cg-vl .cg-vl-who { min-width: 0; }
.cg-vl .cg-vl-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; font-weight: 800; }
.cg-vl .cg-vl-handle { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; font-size: 12.5px; color: var(--cg-ink-3); }
.cg-vl .cg-vl-role {
  justify-self: start;
  padding: 3px 9px;
  border-radius: 7px;
  border: 1px solid var(--cg-line);
  font-size: 12px;
  font-weight: 700;
  color: var(--cg-ink-2);
  white-space: nowrap;
}
.cg-vl .cg-vl-role.is-admin { background: var(--cg-ink); border-color: var(--cg-ink); color: #fff; }
.cg-vl .cg-vl-role.is-teacher { background: var(--cg-paper); }
.cg-vl .cg-vl-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; min-width: 0; font-size: 12.5px; color: var(--cg-ink-3); }
.cg-vl .cg-vl-facts b { font-weight: 800; color: var(--cg-ink-2); font-variant-numeric: tabular-nums; }
.cg-vl .cg-vl-facts .cg-ic { color: var(--cg-ink-4); }
.cg-vl .cg-vl-fact { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.cg-vl .cg-vl-when { text-align: right; font-size: 12.5px; color: var(--cg-ink-3); white-space: nowrap; }
.cg-vl .cg-vl-when b { display: block; font-size: 14px; font-weight: 800; color: var(--cg-ink-2); font-variant-numeric: tabular-nums; }
.cg-vl .cg-vl-on { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #0E6E47; }
.cg-vl .cg-vl-on::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cg-green); }
.cg-vl .cg-vl-chev { color: var(--cg-ink-4); transition: transform .2s var(--cg-ease), color .2s; }
.cg-vl .cg-vl-row:hover .cg-vl-chev { color: var(--cg-ink); transform: translateX(2px); }

/* 첫 방문 발자국 (신규 회원) */
.cg-vl .cg-vl-path { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; min-width: 0; }
.cg-vl .cg-vl-path span {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--cg-paper);
  font-size: 12px;
  font-weight: 600;
  color: var(--cg-ink-2);
}
.cg-vl .cg-vl-path .cg-ic { color: var(--cg-ink-4); }
.cg-vl .cg-vl-path em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--cg-ink-3); }
.cg-vl .cg-vl-wait { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--cg-amber); }

/* 최근 7일 점 (활동·재방문) */
.cg-vl .cg-vl-days { display: inline-flex; gap: 4px; }
.cg-vl .cg-vl-days i { width: 14px; height: 14px; border-radius: 4px; background: var(--cg-line-2); }
.cg-vl .cg-vl-days i.on { background: var(--cg-chart-1); }
.cg-vl .cg-vl-days i.is-sel { box-shadow: 0 0 0 2px var(--cg-surface), 0 0 0 3.5px var(--cg-yellow); }
.cg-vl .cg-vl-streak { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; background: var(--cg-yellow-50); color: var(--cg-ink-2); font-size: 12px; font-weight: 800; }

/* 빈 상태 */
.cg-vl .cg-vl-empty { display: grid; justify-items: center; gap: 6px; padding: 56px 20px 40px; text-align: center; }
.cg-vl .cg-vl-empty svg { margin-bottom: 10px; }
.cg-vl .cg-vl-empty strong { font-size: 17px; font-weight: 800; }
.cg-vl .cg-vl-empty p { max-width: 380px; font-size: 13.5px; line-height: 1.6; color: var(--cg-ink-3); }
.cg-vl .cg-vl-empty .cg-vl-btn { margin-top: 12px; }

/* ---------- 차트 카드 ---------- */
.cg-vl .cg-vl-card { min-width: 0; padding: 18px 20px 18px; background: var(--cg-surface); border: 1px solid var(--cg-line); border-radius: 18px; }
.cg-vl .cg-vl-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cg-vl .cg-vl-card-title { font-size: 15px; font-weight: 800; }
.cg-vl .cg-vl-card-sub { margin-top: 2px; font-size: 12.5px; color: var(--cg-ink-3); }

/* 장부 (날짜별 통계) */
.cg-vl .cg-vl-ledger { display: grid; grid-template-columns: 1.15fr 1fr .8fr; overflow: hidden; background: var(--cg-surface); border: 1px solid var(--cg-line); border-radius: 18px; }
.cg-vl .cg-vl-ledger > section { min-width: 0; padding: 20px 22px 20px; }
.cg-vl .cg-vl-ledger > section + section { border-left: 1px solid var(--cg-line-2); }
.cg-vl .cg-vl-ltitle { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--cg-ink-2); }
.cg-vl .cg-vl-ltitle .cg-ic { color: var(--cg-ink-3); }
.cg-vl .cg-vl-ltotal { display: flex; align-items: baseline; gap: 4px; margin: 8px 0 14px; }
.cg-vl .cg-vl-ltotal b { font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -.035em; }
.cg-vl .cg-vl-ltotal span { font-size: 15px; font-weight: 700; color: var(--cg-ink-2); }
.cg-vl .cg-vl-ltotal small { margin-left: 6px; font-size: 12.5px; font-weight: 600; color: var(--cg-ink-3); }
.cg-vl .cg-vl-lfoot { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--cg-line); font-size: 12.5px; color: var(--cg-ink-3); }
.cg-vl .cg-vl-lfoot b { font-size: 15px; font-weight: 800; color: var(--cg-ink); }

/* 얇은 나눔 막대 + 범례 행 */
.cg-vl .cg-vl-split { position: relative; padding: 7px 0; }
.cg-vl .cg-vl-splitbar { display: flex; gap: 2px; height: 8px; overflow: hidden; border-radius: 999px; }
.cg-vl .cg-vl-splitbar.is-empty { background: var(--cg-line-2); }
.cg-vl .cg-vl-splitbar i { display: block; height: 100%; background: var(--c); transition: filter .15s; }
.cg-vl .cg-vl-splitbar i:hover { filter: brightness(1.12); }
.cg-vl .cg-vl-legend { list-style: none; display: grid; gap: 10px; margin-top: 12px; padding: 0; }
.cg-vl .cg-vl-legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: start; gap: 4px 10px; font-size: 13.5px; }
.cg-vl .cg-vl-legend li > i { width: 10px; height: 10px; margin-top: 5px; border-radius: 3px; background: var(--c); }
.cg-vl .cg-vl-legend .cg-vl-lname { font-weight: 700; color: var(--cg-ink-2); }
.cg-vl .cg-vl-legend small { display: block; margin-top: 1px; font-size: 12px; color: var(--cg-ink-3); line-height: 1.45; }
.cg-vl .cg-vl-legend .cg-vl-lval { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cg-vl .cg-vl-legend .cg-vl-lval b { font-weight: 800; color: var(--cg-ink); }
.cg-vl .cg-vl-legend .cg-vl-lval em { margin-left: 6px; font-style: normal; font-size: 12px; color: var(--cg-ink-3); }

/* 가로 순위 막대 (유입 경로) */
.cg-vl .cg-vl-rank { list-style: none; display: grid; gap: 2px; padding: 0; }
.cg-vl .cg-vl-rank li {
  display: grid;
  grid-template-columns: minmax(96px, 150px) minmax(0, 1fr) 92px;
  align-items: center;
  gap: 12px;
  padding: 7px 8px;
  border-radius: 10px;
  font-size: 13.5px;
  transition: background .15s;
}
.cg-vl .cg-vl-rank li:hover, .cg-vl .cg-vl-rank li:focus-visible { background: var(--cg-surface-2); }
.cg-vl .cg-vl-rank-name { display: flex; align-items: center; gap: 7px; min-width: 0; font-weight: 700; color: var(--cg-ink-2); }
.cg-vl .cg-vl-rank-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cg-vl .cg-vl-rank-track { height: 12px; }
.cg-vl .cg-vl-rank-bar { height: 12px; min-width: 3px; border-radius: 0 4px 4px 0; background: var(--cg-chart-1); transform-origin: left center; }
.cg-vl .cg-vl-rank-val { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cg-vl .cg-vl-rank-val b { font-weight: 800; }
.cg-vl .cg-vl-rank-val em { margin-left: 6px; font-style: normal; font-size: 12px; color: var(--cg-ink-3); }
.cg-vl .cg-vl-mix { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.cg-vl .cg-vl-note { display: flex; gap: 8px; margin-top: 10px; font-size: 12px; line-height: 1.6; color: var(--cg-ink-3); }
.cg-vl .cg-vl-note .cg-ic { margin-top: 2px; color: var(--cg-ink-4); }

/* 세로 막대 (최근 7일) */
.cg-vl .cg-vl-trend-tools { display: flex; align-items: center; gap: 8px; }
.cg-vl .cg-vl-trend-tools .cg-vl-seg button { height: 32px; padding: 0 11px; font-size: 12.5px; }
.cg-vl .cg-vl-chart { display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: 168px auto; column-gap: 8px; }
.cg-vl .cg-vl-yaxis { position: relative; }
.cg-vl .cg-vl-yaxis span { position: absolute; right: 0; transform: translateY(50%); font-size: 11.5px; color: var(--cg-ink-4); font-variant-numeric: tabular-nums; }
.cg-vl .cg-vl-plot { position: relative; border-bottom: 1px solid var(--cg-chart-axis); }
.cg-vl .cg-vl-gridline { position: absolute; left: 0; right: 0; height: 1px; background: var(--cg-chart-grid); }
.cg-vl .cg-vl-cols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--n, 7), minmax(0, 1fr)); }
.cg-vl .cg-vl-col { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; border-radius: 10px 10px 0 0; transition: background .15s; }
.cg-vl .cg-vl-col:hover, .cg-vl .cg-vl-col:focus-visible { background: rgba(46, 91, 255, .05); }
.cg-vl .cg-vl-col:focus-visible { outline-offset: -2px; }
.cg-vl .cg-vl-colbar { width: 22px; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--cg-chart-muted); transform-origin: bottom center; transition: background .15s; }
.cg-vl .cg-vl-col:hover .cg-vl-colbar { background: #B8BCC8; }
.cg-vl .cg-vl-col.is-sel .cg-vl-colbar { background: var(--cg-chart-1); }
.cg-vl .cg-vl-colval { margin-bottom: 6px; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cg-vl .cg-vl-colval.is-quiet { visibility: hidden; }
.cg-vl .cg-vl-col:hover .cg-vl-colval.is-quiet, .cg-vl .cg-vl-col:focus-visible .cg-vl-colval.is-quiet { visibility: visible; color: var(--cg-ink-3); }
.cg-vl .cg-vl-xaxis { grid-column: 2; display: grid; grid-template-columns: repeat(var(--n, 7), minmax(0, 1fr)); padding-top: 8px; }
.cg-vl .cg-vl-xaxis span { text-align: center; font-size: 12px; color: var(--cg-ink-3); font-variant-numeric: tabular-nums; }
.cg-vl .cg-vl-xaxis span b { display: block; font-size: 11.5px; font-weight: 600; color: var(--cg-ink-4); }
.cg-vl .cg-vl-xaxis span.is-sel { color: var(--cg-ink); font-weight: 800; }
.cg-vl .cg-vl-chart.is-grow .cg-vl-colbar { animation: cg-grow-y .5s var(--cg-ease) both; }
.cg-vl .cg-vl-chart.is-grow .cg-vl-col:nth-child(2) .cg-vl-colbar { animation-delay: 30ms; }
.cg-vl .cg-vl-chart.is-grow .cg-vl-col:nth-child(3) .cg-vl-colbar { animation-delay: 60ms; }
.cg-vl .cg-vl-chart.is-grow .cg-vl-col:nth-child(4) .cg-vl-colbar { animation-delay: 90ms; }
.cg-vl .cg-vl-chart.is-grow .cg-vl-col:nth-child(5) .cg-vl-colbar { animation-delay: 120ms; }
.cg-vl .cg-vl-chart.is-grow .cg-vl-col:nth-child(6) .cg-vl-colbar { animation-delay: 150ms; }
.cg-vl .cg-vl-chart.is-grow .cg-vl-col:nth-child(7) .cg-vl-colbar { animation-delay: 180ms; }
.cg-vl .cg-vl-tablewrap { overflow-x: auto; }
.cg-vl .cg-vl-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cg-vl .cg-vl-table th, .cg-vl .cg-vl-table td { padding: 8px 10px; border-bottom: 1px solid var(--cg-line-2); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cg-vl .cg-vl-table th:first-child, .cg-vl .cg-vl-table td:first-child { text-align: left; }
.cg-vl .cg-vl-table th { font-size: 12px; font-weight: 700; color: var(--cg-ink-3); }
.cg-vl .cg-vl-table tr.is-sel td { font-weight: 800; background: var(--cg-yellow-50); }

/* 접히는 설명 */
.cg-vl .cg-vl-details { margin-top: 14px; border: 1px solid var(--cg-line-2); border-radius: 14px; background: var(--cg-surface-2); }
.cg-vl .cg-vl-details summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--cg-ink-2);
  cursor: pointer;
  list-style: none;
}
.cg-vl .cg-vl-details summary::-webkit-details-marker { display: none; }
.cg-vl .cg-vl-details summary .cg-ic { color: var(--cg-ink-3); transition: transform .2s var(--cg-ease); }
.cg-vl .cg-vl-details[open] summary .cg-ic { transform: rotate(90deg); }
.cg-vl .cg-vl-details ul { margin: 0; padding: 0 18px 14px 40px; font-size: 13px; line-height: 1.7; color: var(--cg-ink-3); }
.cg-vl .cg-vl-banner { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 11px 14px; border-radius: 12px; background: var(--cg-yellow-50); font-size: 13px; color: var(--cg-ink-2); }
.cg-vl .cg-vl-banner .cg-ic { color: var(--cg-ink-3); }

/* ---------- 바닥 ---------- */
.cg-vl .cg-vl-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 12px 28px;
  background: var(--cg-surface);
  border-top: 1px solid var(--cg-line);
}
.cg-vl .cg-vl-fnote { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 10px; font-size: 12px; color: var(--cg-ink-3); }
.cg-vl .cg-vl-fnote .cg-ic { margin-top: 2px; color: var(--cg-ink-4); }
.cg-vl .cg-vl-fnote strong { display: block; font-weight: 700; color: var(--cg-ink-2); }
.cg-vl .cg-vl-pager { display: flex; align-items: center; gap: 6px; }
.cg-vl .cg-vl-pager button { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--cg-line); border-radius: 10px; color: var(--cg-ink-2); }
.cg-vl .cg-vl-pager button:hover:not(:disabled) { border-color: var(--cg-ink-4); }
.cg-vl .cg-vl-pager button:disabled { color: var(--cg-line); cursor: default; }
.cg-vl .cg-vl-pager span { min-width: 54px; text-align: center; font-size: 13px; font-weight: 700; color: var(--cg-ink-2); font-variant-numeric: tabular-nums; }

/* 말풍선 · 알림 */
.cg-vl .cg-vl-tip {
  position: fixed;
  z-index: 1300;
  max-width: 260px;
  padding: 8px 11px;
  border-radius: 10px;
  background: var(--cg-ink);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.45;
  box-shadow: var(--cg-shadow-float);
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 10px));
}
.cg-vl .cg-vl-tip b { display: block; font-size: 15px; font-weight: 800; }
.cg-vl .cg-vl-tip span { color: rgba(255, 255, 255, .75); }
.cg-vl .cg-vl-toasts { position: fixed; left: 50%; bottom: 28px; z-index: 1300; display: flex; flex-direction: column; align-items: center; gap: 8px; transform: translateX(-50%); pointer-events: none; }
.cg-vl .cg-vl-toast {
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--cg-ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--cg-shadow-float);
  animation: cg-toast-in .3s var(--cg-ease) both;
  transition: opacity .25s, transform .25s;
}
.cg-vl .cg-vl-toast.is-error { background: #8A1F26; }
.cg-vl .cg-vl-toast.is-out { opacity: 0; transform: translateY(8px); }

/* ---------- 열기·닫기 ---------- */
.cg-vl.is-opening .cg-vl-backdrop { animation: cg-fade-in .3s ease both; }
.cg-vl.is-opening .cg-vl-sheet { animation: cg-vl-in .5s var(--cg-ease) both; }
.cg-vl.is-closing .cg-vl-backdrop { animation: cg-vl-fade-out .22s ease both; }
.cg-vl.is-closing .cg-vl-sheet { animation: cg-vl-out .22s ease both; }
@keyframes cg-vl-in { from { opacity: 0; transform: translateY(22px) scale(.985) } to { opacity: 1; transform: none } }
@keyframes cg-vl-out { to { opacity: 0; transform: translateY(12px) scale(.99) } }
@keyframes cg-vl-fade-out { to { opacity: 0 } }
@keyframes cg-vl-indet { from { left: -40% } to { left: 100% } }

/* ---------- 화면 크기 ---------- */
@media (max-width: 1100px) {
  .cg-vl .cg-vl-row { grid-template-columns: minmax(0, 1.5fr) 70px minmax(0, 1fr) 100px 18px; gap: 12px; }
  .cg-vl .cg-vl-ledger { grid-template-columns: 1fr 1fr; }
  .cg-vl .cg-vl-ledger > section:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--cg-line-2); }
  .cg-vl .cg-vl-mix { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .cg-vl { padding: 0; }
  .cg-vl .cg-vl-sheet { width: 100%; height: 100%; border-radius: 0; }
  .cg-vl .cg-vl-head { padding: 16px 14px 0 16px; }
  .cg-vl .cg-vl-mark { width: 42px; height: 42px; border-radius: 13px; }
  .cg-vl .cg-vl-title { font-size: 22px; }
  .cg-vl .cg-vl-lede, .cg-vl .cg-vl-live { display: none; }
  .cg-vl .cg-vl-tab { height: 42px; padding: 0 12px; font-size: 13.5px; }
  .cg-vl .cg-vl-body { padding: 16px 14px 24px; }
  .cg-vl .cg-vl-progress { top: -16px; margin: -16px -14px 14px; }
  .cg-vl .cg-vl-dtitle { font-size: 20px; }
  .cg-vl .cg-vl-datenav { width: 100%; }
  .cg-vl .cg-vl-dpill { flex: 1; }
  .cg-vl .cg-vl-dpill > .cg-vl-dpick { flex: 1; justify-content: center; }
  .cg-vl .cg-vl-kpis { grid-template-columns: minmax(0, 1fr); }
  .cg-vl .cg-vl-kpi + .cg-vl-kpi { border-left: 0; border-top: 1px solid var(--cg-line-2); }
  .cg-vl .cg-vl-kpi-value b, .cg-vl .cg-vl-ltotal b { font-size: 34px; }
  .cg-vl .cg-vl-seg { width: 100%; overflow-x: auto; }
  .cg-vl .cg-vl-seg button { flex: 1; justify-content: center; }
  .cg-vl .cg-vl-search { min-width: 0; flex-basis: calc(100% - 54px); }
  .cg-vl .cg-vl-btn--refresh { width: 44px; padding: 0; }
  .cg-vl .cg-vl-btn--refresh .cg-vl-btn-label { display: none; }
  .cg-vl .cg-vl-row { grid-template-columns: minmax(0, 1fr) auto 18px; gap: 10px; padding: 10px 4px; }
  .cg-vl .cg-vl-row .cg-vl-role, .cg-vl .cg-vl-row .cg-vl-facts { display: none; }
  .cg-vl .cg-vl-ledger { grid-template-columns: minmax(0, 1fr); }
  .cg-vl .cg-vl-ledger > section + section { border-left: 0; border-top: 1px solid var(--cg-line-2); }
  .cg-vl .cg-vl-ledger > section:nth-child(3) { grid-column: auto; }
  .cg-vl .cg-vl-rank li { grid-template-columns: minmax(80px, 110px) minmax(0, 1fr) 70px; gap: 8px; }
  .cg-vl .cg-vl-trend-tools { flex-wrap: wrap; }
  .cg-vl .cg-vl-card-head { flex-wrap: wrap; }
  .cg-vl .cg-vl-foot { padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .cg-vl *, .cg-vl *::before, .cg-vl *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Native top layer retains COGO's other dialogs above the visitor sheet. */
html body dialog.cg-vl-host[open] {
  position:fixed!important; inset:0!important; width:100vw!important; height:100vh!important;
  height:100dvh!important; max-width:none!important; max-height:none!important; margin:0!important;
  border:0!important; padding:0!important; border-radius:0!important; background:transparent!important;
  box-shadow:none!important; overflow:hidden!important; transform:none!important; animation:none!important;
}
html body dialog.cg-vl-host::backdrop {background:transparent!important;backdrop-filter:none!important;}
html body dialog.cg-vl-host[hidden] {display:none!important;}
.cg-vl-host .cg-vl,.cg-vl,.cg-vl-aux {box-sizing:border-box;}
.cg-vl .cg-vl-native-face {background:var(--cg-blue-50);}
.cg-vl .cg-vl-native-face .cogo-avatar {width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;overflow:hidden;border-radius:50%;}
.cg-vl .cg-vl-native-face .cogo-avatar img {object-fit:contain;border-radius:0;}
.cg-vl .cg-vl-row:not([data-act]) {cursor:default;}
.cg-vl .cg-vl-row:not([data-act]) .cg-vl-chev {visibility:hidden;}
.cg-vl .cg-vl-first-facts {display:grid;gap:6px;min-width:0;}
.cg-vl .cg-vl-attribution {display:block;max-width:220px;overflow-wrap:anywhere;}
.cg-vl .cg-vl-daily-refresh {margin-top:10px;display:flex;justify-content:flex-end;}
html body dialog.cg-vl-aux[open] {
  box-sizing:border-box;display:grid;gap:14px;width:min(520px,calc(100vw - 32px));height:auto;
  max-height:min(80dvh,740px);margin:auto;padding:24px;border:1px solid #d7dbe4;border-radius:20px;
  color:var(--cg-ink,#20232e);background:var(--cg-surface,#fff);font-family:var(--cg-font,sans-serif);overflow:auto;
}
.cg-vl-aux header {display:flex;align-items:center;justify-content:space-between;gap:10px;}
.cg-vl-aux h3,.cg-vl-aux p {margin:0;}
.cg-vl-aux p,.cg-vl-aux .cg-vl-first-events {font-size:14px;line-height:1.6;}
.cg-vl-aux label {display:grid;gap:6px;font-weight:600;}
.cg-vl-aux input,.cg-vl-aux select,.cg-vl-aux button {font:inherit;color:inherit;background:var(--cg-surface,#fff);border:1px solid var(--cg-line-2,#d7dbe4);border-radius:9px;padding:9px 12px;}
.cg-vl-aux button {cursor:pointer;justify-self:start;}
.cg-vl-aux input {width:100%;min-width:0;box-sizing:border-box;}
.cg-vl-aux .cg-vl-first-events {margin:0;padding-inline-start:26px;}
@media(max-width:760px) {
 .cg-vl .cg-vl-first-facts,.cg-vl .cg-vl-row>.cg-vl-wait {display:none;}
}
/* The production mobile dialog stylesheet sets 48px minima on every button.
   These controls already declare explicit sizes within their grouped tracks. */
html.cogo-app27 body dialog.cg-vl-host .cg-vl :is(.cg-vl-dpill,.cg-vl-pager,.cg-vl-seg) button,
html.cogo-app27 body dialog.cg-vl-host .cg-vl :is(.cg-vl-close,.cg-vl-col,.cg-vl-tab,.cg-vl-btn,.cg-vl-today) {
 min-width:0!important; min-height:0!important;
}
html.cogo-app27 body dialog.cg-vl-host .cg-vl .cg-vl-search input,
html.cogo-app27 body dialog.cg-vl-host .cg-vl .cg-vl-dinput {
 min-height:0!important; padding:0; border-radius:0;
}
@media(max-width:760px) {
 .cg-vl .cg-vl-source-row>.cg-vl-when {grid-column:2;grid-row:1;}
 .cg-vl .cg-vl-source-row>.cg-vl-chev {grid-column:3;grid-row:1;}
 .cg-vl .cg-vl-source-row>.cg-vl-facts {display:flex;grid-column:1/-1;grid-row:2;flex-wrap:wrap;padding-left:54px;}
}

/* Match the handoff headings within COGO's native dialog typography. */
dialog.cg-vl-host .cg-vl :is(.cg-vl-title, .cg-vl-dtitle) {
  font-weight: 800 !important; line-height: 1.2 !important;
}
dialog.cg-vl-host .cg-vl .cg-vl-dtitle { letter-spacing: -.02em !important; }


/* Activities and repeat visits use the existing period-based COGO report. */
.cg-vl .cg-vl-engagement {
  min-width: 0;
  color: var(--cg-ink);
  font: inherit;
  line-height: 1.55;
}
.cg-vl .cg-vl-engagement [hidden] { display: none !important; }
.cg-vl .cg-vl-engagement .ce-panel { margin: 0; padding: 0; }
.cg-vl .cg-vl-engagement .ce-controls,
.cg-vl .cg-vl-engagement .ce-controls > div {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px;
}
.cg-vl .cg-vl-engagement .ce-controls label {
  display: grid; gap: 3px; color: var(--cg-ink-2); font-size: .82rem; font-weight: 650;
}
.cg-vl .cg-vl-engagement :is(.ce-controls select, .ce-controls button, .ce-error button) {
  width: auto; min-height: 38px; margin: 0; padding: 6px 12px;
  font: inherit; font-size: .87rem; border: 1px solid var(--cg-line);
  border-radius: 9px; color: var(--cg-ink); background: var(--cg-surface);
}
.cg-vl .cg-vl-engagement .ce-controls button:enabled,
.cg-vl .cg-vl-engagement .ce-error button:enabled { cursor: pointer; }
.cg-vl .cg-vl-engagement .ce-controls button:disabled { opacity: .5; }
.cg-vl .cg-vl-engagement .ce-status { color: var(--cg-ink-3); font-size: .8rem; margin: 12px 0; }
.cg-vl .cg-vl-engagement :is(h3,h4,p) { color: inherit; }
.cg-vl .cg-vl-engagement :is(h3,h4) { margin: 0; font-weight: 750; line-height: 1.35; }
.cg-vl .cg-vl-engagement h3 { font-size: 1.15rem; }
.cg-vl .cg-vl-engagement h4 { font-size: 1rem; }
.cg-vl .cg-vl-engagement :is(.ce-summary, .ce-chart header) {
  display: flex; gap: 8px 16px; flex-wrap: wrap; align-items: center; justify-content: space-between;
}
.cg-vl .cg-vl-engagement :is(.ce-summary p,.ce-chart p,.ce-box p,.ce-card p) {
  color: var(--cg-ink-3); font-size: .85rem; margin: 4px 0 0;
}
.cg-vl .cg-vl-engagement .ce-summary > span { font-size: .86rem; }
.cg-vl .cg-vl-engagement .ce-coverage {
  background: var(--cg-yellow-50); padding: 10px 14px; border-radius: 9px;
  color: var(--cg-ink-2); margin: 12px 0; font-size: .86rem;
}
.cg-vl .cg-vl-engagement .ce-grid,
.cg-vl .cg-vl-engagement .ce-bottom { display: grid; gap: 10px; }
.cg-vl .cg-vl-engagement .ce-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.cg-vl .cg-vl-engagement .ce-bottom { grid-template-columns: repeat(2,minmax(0,1fr)); }
.cg-vl .cg-vl-engagement :is(.ce-card,.ce-chart,.ce-box,.ce-method) {
  min-width: 0; border: 1px solid var(--cg-line); border-radius: 12px;
  background: var(--cg-surface); padding: clamp(12px,2vw,18px);
}
.cg-vl .cg-vl-engagement .ce-card { display: grid; align-content: start; gap: 5px; }
.cg-vl .cg-vl-engagement .ce-card span { font-size: .82rem; font-weight: 650; }
.cg-vl .cg-vl-engagement .ce-card strong { font-size: clamp(20px,2vw,28px); line-height: 1.1; }
.cg-vl .cg-vl-engagement .ce-card small { font-size: .62em; }
.cg-vl .cg-vl-engagement .ce-primary { border-color: var(--cg-blue-200); background: var(--cg-blue-50); }
.cg-vl .cg-vl-engagement .ce-chart { margin: 10px 0; }
.cg-vl .cg-vl-engagement .ce-bars {
  display: flex; height: 94px; align-items: stretch; gap: 2px;
  border-block-end: 1px solid var(--cg-chart-axis); margin: 12px 0 6px;
}
.cg-vl .cg-vl-engagement .ce-day { display: flex; flex: 1 1 0; align-items: end; justify-content: center; min-width: 0; }
.cg-vl .cg-vl-engagement .ce-day i { display: block; width: 100%; max-width: 24px; background: var(--cg-chart-1); }
.cg-vl .cg-vl-engagement .ce-day .ce-missing { background: var(--cg-chart-muted); }
.cg-vl .cg-vl-engagement .ce-day .ce-partial { background: var(--cg-blue-200); }
.cg-vl .cg-vl-engagement .ce-axis { display: flex; justify-content: space-between; gap: 4px; color: var(--cg-ink-3); font-size: .72rem; }
.cg-vl .cg-vl-engagement summary { padding: 6px 0; color: var(--cg-ink-2); font-weight: 650; cursor: pointer; }
.cg-vl .cg-vl-engagement .ce-table-wrap { max-height: 260px; overflow: auto; }
.cg-vl .cg-vl-engagement table { width: 100%; border-collapse: collapse; text-align: left; font-size: .83rem; }
.cg-vl .cg-vl-engagement :is(th,td) { padding: 5px 7px; border-bottom: 1px solid var(--cg-line); }
.cg-vl .cg-vl-engagement .ce-method { margin-top: 10px; padding-block: 6px; }
.cg-vl .cg-vl-engagement ul { margin: 5px 0 0; padding-inline-start: 1.2em; font-size: .84rem; }
.cg-vl .cg-vl-engagement .ce-frequency {
  display: grid; grid-template-columns: minmax(5ch,auto) minmax(15px,1fr) auto;
  align-items: center; gap: 10px; margin-top: 7px; font-size: .84rem;
}
.cg-vl .cg-vl-engagement .ce-frequency div { height: 7px; border-radius: 6px; background: var(--cg-surface-2); overflow: hidden; }
.cg-vl .cg-vl-engagement .ce-frequency i { display: block; height: 100%; background: var(--cg-chart-1); }
@media (max-width: 760px) {
  .cg-vl .cg-vl-engagement .ce-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cg-vl .cg-vl-engagement .ce-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .cg-vl .cg-vl-engagement .ce-axis { flex-wrap: wrap; }
  .cg-vl .cg-vl-engagement .ce-controls { align-items: flex-start; }
}
