/* 82chart — card skin. Override any --c82-* variable on .c82 or an ancestor. */
.c82 {
  --_bg: var(--c82-bg, #ffffff);
  --_ink: var(--c82-ink, #191f28);
  --_ink-2: var(--c82-ink-2, #4e5968);
  --_muted: var(--c82-muted, #8b95a1);
  --_line: var(--c82-border, rgba(25, 31, 40, 0.08));
  --_grid: var(--c82-grid, #e9ecef);
  --_accent: var(--c82-accent, #3182f6);
  --_tip-bg: var(--c82-tip-bg, #ffffff);
  --_tip-line: var(--c82-tip-border, rgba(25, 31, 40, 0.1));
  --_shadow: var(--c82-shadow, 0 1px 2px rgba(25, 31, 40, 0.04), 0 10px 30px -12px rgba(25, 31, 40, 0.16));
  --_radius: var(--c82-radius, 16px);
  --_font: var(--c82-font, 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Segoe UI', sans-serif);
  position: relative;
  box-sizing: border-box;
  min-width: 0;
  color: var(--_ink);
  font-family: var(--_font);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  color-scheme: light;
}
.c82[data-theme='dark'] {
  --_bg: var(--c82-bg, #1a1b1d);
  --_ink: var(--c82-ink, #eceef0);
  --_ink-2: var(--c82-ink-2, #c1c6cc);
  --_muted: var(--c82-muted, #8b929b);
  --_line: var(--c82-border, rgba(255, 255, 255, 0.08));
  --_grid: var(--c82-grid, #2c2e33);
  --_accent: var(--c82-accent, #4593fc);
  --_tip-bg: var(--c82-tip-bg, #25272b);
  --_tip-line: var(--c82-tip-border, rgba(255, 255, 255, 0.1));
  --_shadow: var(--c82-shadow, 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 34px -14px rgba(0, 0, 0, 0.7));
  color-scheme: dark;
}
.c82 *, .c82 *::before, .c82 *::after { box-sizing: border-box; }
.c82[data-skin='card'] { background: var(--_bg); border: 1px solid var(--_line); border-radius: var(--_radius); padding: 22px 24px 20px; }
.c82[data-skin='plain'] { background: transparent; }
.c82 [hidden] { display: none !important; }

/* header */
.c82-head { margin-bottom: 14px; }
.c82-head-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.c82-titles { min-width: 0; }
.c82-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--_muted); margin-bottom: 4px; }
.c82-title { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; color: var(--_ink); }
.c82-subtitle { margin-top: 4px; font-size: 12.5px; color: var(--_muted); }
.c82-badge {
  flex: none; display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px;
  font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap;
  color: var(--c82-tone); background: color-mix(in srgb, var(--c82-tone) 13%, transparent);
}
.c82-value-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 16px; }
.c82-value { font-size: clamp(26px, 4.2vw, 34px); font-weight: 750; letter-spacing: -0.03em; line-height: 1.15; color: var(--_ink); }
.c82-delta-label { font-size: 13px; color: var(--_muted); }

/* tools (download, menu) */
.c82-body { position: relative; display: flex; gap: 16px; align-items: center; }
.c82-body.has-side .c82-plot { flex: 1; }
.c82-tools { position: absolute; right: 18px; z-index: 3; display: flex; gap: 2px; }
.c82[data-skin='plain'] .c82-tools { right: 0; }
.c82:has(> .c82-tools:not([hidden])) > .c82-body { padding-top: 30px; }
.c82:has(> .c82-tools:not([hidden])) > .c82-legend:not([hidden]) { padding-right: 76px; }
.c82-tool {
  display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent;
  color: var(--_muted); cursor: pointer; transition: background 0.15s, color 0.15s;
}
.c82-tool:hover { background: color-mix(in srgb, var(--_ink) 6%, transparent); color: var(--_ink); }
.c82-tool svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.c82-tool svg circle { fill: currentColor; stroke: none; }
.c82-menu {
  position: absolute; top: 34px; right: 0; min-width: 168px; padding: 6px; border-radius: 12px; background: var(--_tip-bg);
  border: 1px solid var(--_tip-line); box-shadow: var(--_shadow); z-index: 10;
}
.c82-menu-item {
  display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--_ink);
  font: 500 13.5px/1.3 var(--_font); text-align: left; cursor: pointer; white-space: nowrap;
}
.c82-menu-item:hover, .c82-menu-item:focus-visible { background: color-mix(in srgb, var(--_ink) 6%, transparent); outline: none; }

/* legend */
.c82-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 10px; }
.c82-legend + .c82-body { margin-top: 0; }
.c82-body ~ .c82-legend { margin: 12px 0 0; }
.c82-legend-side { flex: none; flex-direction: column; max-width: 40%; margin: 0; gap: 6px; }
.c82-key {
  display: inline-flex; align-items: center; gap: 7px; min-height: 26px; padding: 0 6px 0 0; border: 0; background: transparent;
  color: var(--_ink-2); font: 500 13px/1.3 var(--_font); cursor: pointer; text-align: left; border-radius: 6px;
}
.c82-key[aria-pressed='false'] { opacity: 0.42; }
.c82-key[aria-pressed='false'] .c82-key-label { text-decoration: line-through; }
.c82-key:hover { color: var(--_ink); }
.c82-swatch { flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--c82-key); }
.c82-key.is-line .c82-swatch { width: 14px; height: 3px; border-radius: 2px; }
.c82-key.is-line .c82-swatch.is-dashed { background: linear-gradient(90deg, var(--c82-key) 0 5px, transparent 5px 9px, var(--c82-key) 9px); }
.c82-key.is-dot .c82-swatch { border-radius: 50%; }

/* plot */
.c82-plot { position: relative; width: 100%; min-width: 0; outline: none; touch-action: pan-y; user-select: none; -webkit-user-select: none; border-radius: 8px; }
.c82-plot:focus-visible { box-shadow: 0 0 0 2px var(--_bg), 0 0 0 4px var(--_accent); }
.c82-svg { display: block; overflow: visible; }
.c82-svg text { font-variant-numeric: tabular-nums; }
.c82-svg .is-dim { opacity: 0.28; }
.c82-svg [data-series], .c82-svg [data-i] { transition: opacity 0.18s; }
.c82-reset {
  position: absolute; top: 4px; right: 4px; z-index: 2; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--_tip-line);
  background: var(--_tip-bg); color: var(--_ink-2); font: 600 12px/1 var(--_font); cursor: pointer; box-shadow: var(--_shadow);
}

/* tooltip */
.c82-tip {
  position: absolute; left: 0; top: 0; z-index: 5; min-width: 132px; max-width: 280px; padding: 10px 12px; border-radius: 10px;
  background: var(--_tip-bg); border: 1px solid var(--_tip-line); box-shadow: var(--_shadow); pointer-events: none;
  font-size: 12.5px; line-height: 1.4; transition: transform 0.08s ease-out;
}
.c82-tip-head { color: var(--_muted); font-size: 12px; margin-bottom: 6px; }
.c82-tip-rows { display: grid; gap: 4px; }
.c82-tip-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; }
.c82-tip-total { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--_tip-line); grid-template-columns: 1fr auto; }
.c82-tip-key { width: 10px; height: 10px; border-radius: 3px; background: var(--c82-key); }
.c82-tip-key.is-line { width: 12px; height: 3px; border-radius: 2px; }
.c82-tip-name { color: var(--_ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c82-tip-value { color: var(--_ink); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.c82-tip-extra .c82-tip-key { background: none; }
.c82-tip-extra .c82-tip-value { color: var(--_ink-2); font-weight: 600; }

/* footnote, table */
.c82-foot { margin-top: 12px; font-size: 12px; color: var(--_muted); }
.c82-table:not(.c82-sr) { margin-top: 16px; overflow-x: auto; }
.c82-table table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.c82-table caption { text-align: left; font-weight: 600; padding-bottom: 6px; color: var(--_ink-2); }
.c82-table th, .c82-table td { padding: 7px 10px; border-bottom: 1px solid var(--_grid); text-align: right; white-space: nowrap; }
.c82-table th:first-child, .c82-table thead th { text-align: left; }
.c82-table thead th { color: var(--_muted); font-weight: 600; }
.c82-table tbody th { font-weight: 500; color: var(--_ink-2); }
.c82-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* loading, error */
.c82-status { position: absolute; inset: 0; z-index: 4; }
.c82-status.is-loading { display: flex; align-items: flex-end; gap: 6%; padding: 16px 4% 28px; }
.c82-skel { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(90deg, var(--_grid) 0%, color-mix(in srgb, var(--_grid) 50%, var(--_bg)) 50%, var(--_grid) 100%); background-size: 200% 100%; }
.c82-status.is-error { display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; color: var(--_ink-2); font-size: 14px; }
.c82-status.is-error p { margin: 0; }
.c82-retry { height: 32px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--_tip-line); background: var(--_tip-bg); color: var(--_ink); font: 600 13px/1 var(--_font); cursor: pointer; }

/* sparkline skin */
.c82[data-skin='sparkline'] { display: block; }
.c82[data-skin='sparkline'] .c82-legend, .c82[data-skin='sparkline'] .c82-foot { display: none; }

/* motion: entrance only, and only when the reader allows it */
/* progressive rendering: the coarse first pass is drawn a little lighter, the full pass sharpens in */
.c82-svg.c82-coarse { opacity: 0.72; }
@media (prefers-reduced-motion: no-preference) {
  .c82-svg.c82-refined { animation: c82-sharpen 0.35s ease-out both; }
  .c82-anim .c82-bar { animation: c82-grow-y 0.75s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: var(--c82-d, 0ms); }
  .c82-anim.is-h .c82-bar { animation-name: c82-grow-x; }
  .c82-anim .c82-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: c82-draw 1.1s cubic-bezier(0.33, 1, 0.68, 1) forwards; }
  .c82-anim .c82-fade { animation: c82-fade 0.6s 0.35s ease-out both; }
  .c82-anim .c82-pop { animation: c82-pop 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: var(--c82-d, 0ms); }
  .c82-skel { animation: c82-shimmer 1.4s linear infinite; }
}
@keyframes c82-grow-y { from { transform: scaleY(0); } }
@keyframes c82-grow-x { from { transform: scaleX(0); } }
@keyframes c82-draw { to { stroke-dashoffset: 0; } }
@keyframes c82-fade { from { opacity: 0; } }
@keyframes c82-sharpen { from { opacity: 0.72; } }
@keyframes c82-pop { from { opacity: 0; transform: scale(0.92); } }
@keyframes c82-shimmer { to { background-position: -200% 0; } }

@media (forced-colors: active) {
  .c82-svg [data-series] path[stroke] { stroke: CanvasText; }
  .c82-tip, .c82-menu { border: 1px solid CanvasText; }
}
@media print {
  .c82-tools, .c82-tip, .c82-reset { display: none !important; }
}

.c82-table .c82-more td { color: var(--_muted); font-style: italic; }
