/* 방문 통계(관리자 전용 /stats.html, 2026-12-02). 테마 변수만 쓴다: a 계열 남색, c 계열 하늘·초록 */
:root { --st-bar: var(--accent2, #000080); --st-line: var(--card-line, #808080); --st-dim: var(--dim, #555); }
html[data-theme^="a"] { --st-bar: var(--navy); --st-line: #808080; --st-dim: #555; }
#stats[hidden], #loginForm[hidden] { display: none; }
.st-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 26px; }
.st-tile { padding: 14px 16px; border: 2px solid var(--st-line); font-family: var(--ui-font); min-width: 0; }
html[data-theme^="a"] .st-tile { border: 0; box-shadow: var(--win); background: var(--face); }
html[data-theme^="a"] .st-tile small { color: #333; }
.st-tile b { display: block; font-size: 30px; line-height: 1.25; font-weight: var(--display-weight, 700); font-variant-numeric: tabular-nums; }
.st-tile span { display: block; font-size: 14px; }
.st-tile small { display: block; font-size: 13px; color: var(--st-dim); }
.st-tabs { margin-bottom: 8px; }
.st-h { font-family: var(--display-font); font-size: 20px; line-height: 1.3; font-weight: var(--display-weight, 700); margin: 26px 0 10px; }
.st-chart { position: relative; padding-top: 10px; }
.st-plot { position: relative; height: 180px; margin-left: 38px; border-bottom: 2px solid var(--st-line); display: flex; align-items: flex-end; }
.st-grid { position: absolute; left: 0; right: 0; border-top: 1px dotted var(--st-line); pointer-events: none; }
.st-grid i { position: absolute; right: calc(100% + 8px); top: -9px; font: 13px/18px var(--ui-font); font-style: normal; color: var(--st-dim); white-space: nowrap; }
.st-day { position: relative; flex: 1 1 0; min-width: 0; height: 100%; display: flex; align-items: flex-end; justify-content: center; padding: 0 1px; background: none; border: 0; }
.st-day i { display: block; width: 100%; max-width: 28px; background: var(--st-bar); }
.st-day:hover, .st-day:focus-visible { outline: 1px dotted currentColor; outline-offset: -1px; }
.st-x { display: flex; justify-content: space-between; margin: 6px 0 0 38px; font: 13px/1.3 var(--ui-font); color: var(--st-dim); }
.st-tip { position: absolute; bottom: 100%; z-index: 5; padding: 6px 10px; font: 13px/1.45 var(--ui-font); white-space: nowrap; pointer-events: none; background: #000; color: #fff; border: 1px solid #fff; transform: translate(-50%, 8px); }
.st-tip[hidden] { display: none; }
.st-more { margin-top: 12px; font-family: var(--ui-font); font-size: 14px; }
.st-more summary { cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.st-more > div { max-height: 320px; overflow: auto; margin-top: 8px; }
.st-table { width: 100%; border-collapse: collapse; font-family: var(--ui-font); font-size: 15px; line-height: 1.45; }
.st-table th, .st-table td { text-align: left; padding: 7px 6px; border-bottom: 1px dotted var(--st-line); vertical-align: top; word-break: keep-all; overflow-wrap: anywhere; }
.st-table th { font-size: 13px; font-weight: 400; color: var(--st-dim); }
.st-table .n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; width: 3.8em; }
.st-table a { text-decoration: underline; text-underline-offset: 3px; }
.st-cols { display: grid; grid-template-columns: 3fr 2fr; gap: 0 32px; }
.st-empty { padding: 14px 0; font-family: var(--ui-font); color: var(--st-dim); }
.st-notes { list-style: none; margin: 28px 0 14px; font-size: 14px; line-height: 1.6; color: var(--st-dim); word-break: keep-all; }
.st-notes li { padding-left: 1em; text-indent: -1em; }
.st-notes li::before { content: "· "; }
.st-own { display: inline-flex; gap: 8px; align-items: center; font-family: var(--ui-font); font-size: 15px; cursor: pointer; }
@media (max-width: 700px) {
  .st-tiles { grid-template-columns: 1fr 1fr; }
  .st-cols { grid-template-columns: 1fr; }
  .st-plot { height: 150px; }
}
