/* 방문 통계 (stats.html) */
.stats-page { --s1: #f0561d; --s2: #25ab9a; --grid: #262330; }
.st { max-width: var(--max); margin: 0 auto; padding: 110px var(--gutter) 70px; min-height: 100vh; }
.st-head h1 { margin: 0 0 8px; font-size: clamp(30px, 5vw, 52px); letter-spacing: -.04em; font-weight: 900; }
.st-desc { color: var(--muted); margin: 0 0 24px; max-width: 760px; font-size: 15px; }
.st-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; position: sticky; top: 64px; z-index: 5; background: rgba(11,10,16,.92); backdrop-filter: blur(8px); padding: 10px 0; }
.st-range { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.st-range button { font: inherit; font-size: 14px; color: var(--muted); background: none; border: 0; padding: 7px 14px; cursor: pointer; }
.st-range button.on { background: var(--text); color: var(--bg); font-weight: 700; }
.st-filters input, .st-filters select { font: inherit; font-size: 14px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; min-width: 0; }
.st-filters input[type=search] { flex: 1 1 260px; }
.st-dates { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); }
.st-dates[hidden] { display: none; }
.st-kpis { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.st-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.st-kpi b { display: block; font-family: var(--display); font-size: 28px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.st-kpi.main b { font-size: 46px; }
.st-kpi span { color: var(--muted); font-size: 13px; }
.st-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.st-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 18px; min-width: 0; }
.st-card.wide { grid-column: 1 / -1; }
.st-card h2 { font-size: 16px; margin: 0 0 12px; letter-spacing: -.01em; }
.st-card h2 small { color: var(--faint); font-weight: 400; font-size: 12px; margin-left: 6px; }
.st-search { margin-bottom: 14px; }
.st-help { color: var(--faint); font-size: 12px; margin: 10px 0 0; }
.st-help code { color: var(--muted); }
.st-empty { color: var(--faint); font-size: 14px; padding: 18px 0; }
.st-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.st-table th { text-align: left; color: var(--faint); font-weight: 500; padding: 4px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.st-table td { padding: 6px; border-bottom: 1px solid var(--grid); vertical-align: middle; overflow-wrap: anywhere; }
.st-table td.num, .st-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-table tr.other td { color: var(--faint); font-style: italic; }
.st-bar { position: relative; height: 18px; min-width: 80px; }
.st-bar i { position: absolute; left: 0; top: 3px; height: 12px; border-radius: 0 4px 4px 0; background: var(--s1); }
.st-bar i.s2 { background: var(--s2); }
.st-tw { overflow-x: auto; }
.st-scroll { max-height: 420px; overflow: auto; }
.st-table.wide { min-width: 620px; }
.st-tag { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.st-sub { color: var(--faint); font-size: 12px; display: block; }
.st-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin: 0 0 6px; }
.st-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.st-legend i.line { height: 2px; vertical-align: 3px; width: 14px; }
.st-svg { width: 100%; height: auto; display: block; overflow: visible; }
.st-svg text { fill: var(--faint); font-size: 11px; font-family: var(--font); }
.st-svg .gl { stroke: var(--grid); stroke-width: 1; }
.st-svg .hit { fill: transparent; }
.st-svg .hit:hover + .cross, .st-svg g:hover > .cross { opacity: 1; }
.st-svg.st-mini { height: 64px; }
.st-axis { display: flex; justify-content: space-between; color: var(--faint); font-size: 11px; margin: 2px 0 8px; }
.st-live { display: flex; gap: 22px; align-items: baseline; margin-bottom: 8px; }
.st-live b { font-family: var(--display); font-size: 40px; font-variant-numeric: tabular-nums; }
.st-live span { color: var(--muted); font-size: 13px; margin-left: 6px; }
.st-wt + .st-wt { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--grid); }
.st-wt p { margin: 0 0 6px; font-size: 14px; }
.st-tip { position: fixed; z-index: 100; pointer-events: none; background: #0b0a10; border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; font-size: 12px; color: var(--text); box-shadow: 0 10px 24px -8px rgba(0,0,0,.6); max-width: 280px; white-space: pre-line; }
.stats-page .foot { padding-top: 0; }
@media (max-width: 860px) {
  .st-grid { grid-template-columns: minmax(0, 1fr); }
  .st-kpis { grid-template-columns: repeat(2, 1fr); }
  .st-kpi.main { grid-column: 1 / -1; }
  .st-filters { top: 56px; }
}
