/* 그래프 '크게 보기'(chart-full.js). 기존 디자인 변수(--pri, --fg, --surface, --line, --muted)를 그대로 쓴다. */
.cf-host, [data-cf-host] { position: relative; }
.cf-btn { position: absolute; top: 2px; right: 2px; z-index: 3; display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--line, #dbe4f0); background: var(--surface, #fff); color: var(--pri, #026ef8); font-size: 12px; font-weight: 600; cursor: pointer; box-shadow: 0 2px 6px rgba(13, 27, 61, .08); opacity: .92; }
.cf-btn:hover, .cf-btn:focus-visible { opacity: 1; background: var(--soft, #eef4ff); }
.cf-btn svg { width: 14px; height: 14px; }
@media (max-width: 560px) { .cf-btn span { display: none; } .cf-btn { width: 32px; height: 32px; padding: 0; justify-content: center; } .cf-btn svg { width: 16px; height: 16px; } }
html.cf-lock, html.cf-lock body { overflow: hidden; }
.cf-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(13, 27, 61, .55); -webkit-tap-highlight-color: transparent; }
.cf-overlay.cf-mobile { background: var(--surface, #fff); }
.cf-stage { display: flex; flex-direction: column; background: var(--surface, #fff); color: var(--fg, #0d1b3d); box-sizing: border-box; overflow: hidden; }
.cf-desk .cf-stage { position: absolute; top: 4vh; left: 4vw; width: 92vw; height: 92vh; border-radius: 16px; padding: 16px 20px 12px; box-shadow: 0 20px 50px rgba(13, 27, 61, .3); }
.cf-mobile .cf-stage { position: absolute; top: 0; left: 0; padding: 8px 12px 6px; padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
/* 가로 고정이 안 되는 세로 화면: 시계 방향 90° 돌림(무대 크기 = 화면의 세로 × 가로, JS 가 지정) */
.cf-rot .cf-stage { transform-origin: top left; } /* transform 은 JS 가 실제 화면 폭으로 지정: translateX(폭) rotate(90deg) */
.cf-head { display: flex; align-items: flex-start; gap: 10px; flex: none; }
.cf-titles { flex: 1 1 auto; min-width: 0; }
.cf-title { margin: 0; font-size: 16px; line-height: 1.35; }
.cf-sub { margin: 2px 0 0; font-size: 12px; color: var(--muted, #5b6b86); line-height: 1.4; }
.cf-mobile .cf-title { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-mobile .cf-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
.cf-close { flex: none; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line, #dbe4f0); background: var(--surface, #fff); color: var(--fg, #0d1b3d); font-size: 18px; line-height: 1; cursor: pointer; padding: 0; }
.cf-close:hover, .cf-close:focus-visible { background: var(--soft, #eef4ff); }
.cf-body { flex: 1 1 auto; min-height: 0; position: relative; margin-top: 6px; }
.cf-overlay .cf-chart { position: absolute; inset: 0; margin: 0; min-height: 0; }
.cf-overlay .cf-chart svg { display: block; width: 100%; height: 100%; touch-action: none; user-select: none; }
.cf-foot { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; margin-top: 4px; }
.cf-legend > * { margin-top: 0; }
.cf-legend .sx-legend, .cf-legend .legend { margin-top: 0; }
.cf-src { margin: 0; font-size: 11px; color: var(--muted, #5b6b86); }
.cf-overlay .cf-btn { display: none; }
.cf-overlay .cf-chart.cf-html { overflow: auto; -webkit-overflow-scrolling: touch; }
.cf-overlay .cf-html .sx-bars { margin-top: 0; gap: 12px; }
.cf-overlay .cf-html .sx-bar-row { grid-template-columns: minmax(80px, 140px) 1fr minmax(70px, auto) minmax(90px, auto); font-size: 14px; }
.cf-overlay .cf-html .sx-bar-track { height: 18px; }
/* 큰 화면에서는 축 글자를 조금 키움(그래프는 실제 크기로 다시 그리므로 글자도 화면 픽셀 그대로) */
.cf-overlay .cf-chart .ax, .cf-overlay .cf-chart .ax-t { font-size: 12px; }
.cf-desk .cf-chart .ax, .cf-desk .cf-chart .ax-t { font-size: 13px; }
.cf-desk .cf-title { font-size: 17px; }
