/* ==========================================================================
   スタイルシート
   色やフォントを変えたいときは、まず下の「デザイン設定」の変数を編集してください。
   ========================================================================== */

/* ---------- デザイン設定（ダーク：写真が映える配色） ---------- */
:root {
  --bg: #111213;
  --bg-elev: #1a1b1d;
  --bg-hover: #232427;
  --line: #2c2d31;
  --text: #ececec;
  --text-sub: #a0a3a8;
  --accent: #e8b86d;        /* アクセント色（ボタン・リンク） */
  --like: #ff5a6e;          /* いいねの色 */
  --danger: #e5484d;
  --radius: 10px;
  --wrap: 1240px;           /* ページの最大幅 */
  --gap: 10px;              /* ギャラリーの写真間の余白 */
  --row-h: 240px;           /* ギャラリーの行の高さの目安（PC） */
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
          "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  color-scheme: dark;
}

/* ---------- 基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.75;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
code { background: var(--bg-hover); padding: 0.1em 0.4em; border-radius: 4px; font-size: 0.9em; word-break: break-all; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left)); }
.narrow { max-width: 480px; }
[hidden] { display: none !important; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17, 18, 19, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
.brand { color: var(--text); font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 20px; font-size: 14px; }
.nav a { color: var(--text-sub); }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav-admin { color: var(--accent) !important; }

/* ---------- 自己紹介 ---------- */
.profile { display: flex; gap: 32px; align-items: flex-start; padding-top: 56px; padding-bottom: 24px; }
.profile-avatar {
  flex: 0 0 120px; height: 120px; border-radius: 50%; overflow: hidden;
  background: var(--bg-elev); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 44px; font-weight: 700; color: var(--accent);
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-tagline { margin: 0; color: var(--text-sub); font-size: 14px; letter-spacing: 0.08em; }
.profile-name { margin: 2px 0 10px; font-size: clamp(26px, 4vw, 36px); line-height: 1.3; }
.profile-text { margin: 0 0 18px; white-space: pre-line; color: #d6d6d6; max-width: 680px; }
.sns { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.sns-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg-elev);
  color: var(--text); font-size: 14px; cursor: pointer; line-height: 1.4;
}
.sns-link:hover { background: var(--bg-hover); text-decoration: none; }
.sns-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.sns-link svg .fill { fill: currentColor; stroke: none; }
.sns-link small { color: var(--text-sub); }
.sns-instagram:hover { border-color: #d6297b; }
.sns-x:hover { border-color: #fff; }
.sns-discord:hover { border-color: #5865f2; }

/* ---------- セクション共通 ---------- */
.section { padding-top: 40px; padding-bottom: 16px; }
.section-title { font-size: 22px; margin: 0 0 18px; display: flex; align-items: baseline; gap: 12px; }
.section-title small { font-size: 13px; color: var(--text-sub); font-weight: 400; letter-spacing: 0.05em; }
.empty { color: var(--text-sub); }

/* ---------- 写真カード ---------- */
.card { margin: 0; position: relative; }
.card-open {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  background: var(--bg-elev); border-radius: var(--radius); overflow: hidden; position: relative;
}
.card-open img { width: 100%; height: auto; transition: transform 0.4s ease, opacity 0.3s; }
.card-open:hover img { transform: scale(1.03); }
.card-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.card-caption { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 2px 0; min-height: 36px; }
.card-title { font-size: 13px; color: var(--text-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- いいねボタン ---------- */
.like-btn {
  display: inline-flex; align-items: center; gap: 5px; flex: none;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; cursor: pointer; font-size: 13px; color: var(--text-sub);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.like-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.like-btn:hover { color: var(--like); border-color: var(--like); }
.like-btn.is-liked { color: var(--like); border-color: rgba(255, 90, 110, 0.5); background: rgba(255, 90, 110, 0.08); }
.like-btn.is-liked svg { fill: currentColor; }
.like-btn.pop svg { animation: pop 0.35s ease; }
@keyframes pop { 50% { transform: scale(1.35); } }

/* ---------- ランキング ---------- */
.ranking { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; align-items: start; }
.ranking-card .card-open { aspect-ratio: 4 / 3; }
.ranking-card .card-open img { height: 100%; object-fit: cover; }
.rank-badge {
  position: absolute; top: 10px; left: 10px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 16px; color: #111;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.rank-1 { background: linear-gradient(135deg, #f7d774, #d4a017); width: 42px; height: 42px; font-size: 20px; }
.rank-2 { background: linear-gradient(135deg, #e6e6e6, #a8a8a8); }
.rank-3 { background: linear-gradient(135deg, #e9a66b, #b26a2e); }

/* ---------- ギャラリー（写真の縦横比を保ったまま行を揃えるレイアウト） ---------- */
.gallery { display: flex; flex-wrap: wrap; gap: var(--gap); }
.gallery::after { content: ""; flex-grow: 999999; }
.gallery .card { flex-grow: var(--ratio, 1.5); flex-basis: calc(var(--ratio, 1.5) * var(--row-h)); min-width: 0; }
.gallery .card-open { aspect-ratio: var(--ratio, 1.5); }
.gallery .card-open img { height: 100%; object-fit: cover; }

/* ---------- 掲示板の最新投稿（トップ） ---------- */
.latest-posts { list-style: none; margin: 0 0 16px; padding: 0; border-top: 1px solid var(--line); }
.latest-posts li { border-bottom: 1px solid var(--line); }
.latest-posts a { display: block; padding: 12px 4px; color: var(--text); }
.latest-posts a:hover { background: var(--bg-elev); text-decoration: none; }
.lp-meta { display: block; font-size: 12px; color: var(--text-sub); }
.lp-body { display: block; overflow-wrap: anywhere; }

/* ---------- ボタン・フォーム ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 18px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--bg-elev); color: var(--text); cursor: pointer; font-size: 14px; line-height: 1.4;
}
.btn:hover { background: var(--bg-hover); text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #1a1408; font-weight: 700; }
.btn-primary:hover { background: #f0c889; }
.btn-ghost { background: transparent; }
.btn-danger { color: var(--danger); border-color: rgba(229, 72, 77, 0.45); background: transparent; }
.btn-danger:hover { background: rgba(229, 72, 77, 0.1); }

input[type="text"], input[type="url"], input[type="password"], input:not([type]), textarea, select {
  width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit; font-size: 16px; /* 16px 未満だと iPhone でズームされる */
}
textarea { resize: vertical; line-height: 1.6; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 14px; margin-bottom: 4px; }
.form-row small, .help { color: var(--text-sub); font-size: 13px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 10px; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- お知らせ ---------- */
.flashes { padding-top: 16px; }
.flash { padding: 10px 14px; border-radius: 8px; margin: 0 0 8px; font-size: 14px; border: 1px solid; }
.flash-info { background: rgba(232, 184, 109, 0.08); border-color: rgba(232, 184, 109, 0.35); }
.flash-error { background: rgba(229, 72, 77, 0.1); border-color: rgba(229, 72, 77, 0.45); }

/* ---------- 掲示板 ---------- */
.board { max-width: 820px; }
.board-note { color: var(--text-sub); font-size: 14px; }
.post-form { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 28px; position: relative; }
.threads { list-style: none; padding: 0; margin: 0; }
.thread { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; background: var(--bg-elev); scroll-margin-top: 72px; }
.post { scroll-margin-top: 72px; }
.post-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 13px; color: var(--text-sub); }
.post-name { color: var(--text); font-weight: 700; }
.post-body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 6px 0 0; }
.post-reply { margin: 14px 0 0 8px; padding: 2px 0 0 14px; border-left: 2px solid var(--line); }
.post-photo { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; color: var(--text-sub); }
.post-photo img { width: 56px; height: 42px; object-fit: cover; border-radius: 5px; }
.reply-box { margin-top: 12px; }
.reply-box summary { cursor: pointer; color: var(--accent); font-size: 14px; width: fit-content; }
.post-form-reply { margin: 10px 0 0; padding: 12px; display: grid; gap: 8px; }
.post-form-reply .btn { justify-self: start; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 24px 0; color: var(--text-sub); }

/* ---------- 拡大表示（ライトボックス） ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(8, 8, 9, 0.97);
  height: 100vh; height: 100dvh;   /* スマホのアドレスバー分も考慮した画面の高さ */
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
body.lb-open { overflow: hidden; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; }
.lb-counter { color: var(--text-sub); font-size: 13px; padding-left: 6px; }
.lb-btn { background: rgba(255, 255, 255, 0.06); border: 0; border-radius: 50%; width: 44px; height: 44px; cursor: pointer; font-size: 18px; color: #fff; }
.lb-btn:hover { background: rgba(255, 255, 255, 0.16); }
.lb-stage { position: relative; min-height: 0; overflow: hidden; touch-action: pan-y pinch-zoom; }
/* 画像は表示枠いっぱいに置き、縦横比を保ったまま枠内（画面の縦・横どちらにも）収める */
.lb-img {
  position: absolute; top: 0; bottom: 0; left: 64px; right: 64px;
  width: calc(100% - 128px); height: 100%; object-fit: contain;
  user-select: none; -webkit-user-drag: none; transition: filter 0.3s;
}
.lb-img.is-preview { filter: blur(1px); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 30px; line-height: 1; }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-progress { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(320px, 80%); text-align: center; pointer-events: none; }
.lb-progress-bar { height: 3px; background: rgba(255, 255, 255, 0.15); border-radius: 2px; overflow: hidden; }
.lb-progress-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.15s; }
.lb-progress-text { font-size: 12px; color: var(--text-sub); text-shadow: 0 1px 3px #000; }
.lb-info { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 12px 20px 16px; max-width: var(--wrap); width: 100%; margin: 0 auto; }
.lb-title { margin: 0; font-size: 17px; }
.lb-desc { margin: 2px 0 0; font-size: 14px; color: #cfcfcf; white-space: pre-line; max-height: 5.2em; overflow-y: auto; }
.lb-exif { margin: 4px 0 0; font-size: 12px; color: var(--text-sub); }
.lb-actions { display: flex; gap: 8px; align-items: center; flex: none; }
.lb-actions .like-btn { padding: 8px 14px; font-size: 14px; }

/* ---------- フッター ---------- */
.site-footer { margin-top: 56px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--text-sub); font-size: 13px; text-align: center; }

/* ---------- 管理画面 ---------- */
.admin-wrap { padding-top: 24px; }
.admin-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 24px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.admin-tabs > a { padding: 6px 14px; border-radius: 8px; color: var(--text-sub); }
.admin-tabs > a.active { background: var(--bg-elev); color: var(--text); }
.admin-logout { margin-left: auto; }
.admin-form { max-width: 720px; margin-bottom: 32px; }
.admin-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 6px; margin: 0 0 18px; }
.admin-form legend { padding: 0 6px; font-weight: 700; }
.admin-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 24px; background: var(--bg-elev); }
.admin-card h2 { margin: 0 0 8px; font-size: 16px; }
.admin-card.warn { border-color: rgba(229, 72, 77, 0.45); }
.avatar-edit { display: flex; gap: 20px; align-items: center; padding-bottom: 12px; }
.avatar-edit .profile-avatar { flex: 0 0 96px; width: 96px; height: 96px; font-size: 36px; }
.avatar-edit-body { display: grid; gap: 8px; min-width: 0; }
.avatar-edit-body .help { margin: 0; }
.avatar-edit-actions { display: flex; gap: 8px; }
.upload-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.admin-photos { display: grid; gap: 14px; }
.admin-photo { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); scroll-margin-top: 72px; }
.admin-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.admin-photo.is-hidden img { opacity: 0.35; }
.admin-photo-form { display: grid; gap: 8px; min-width: 0; }
.admin-photo-meta { margin: 0; font-size: 13px; color: var(--text-sub); overflow-wrap: anywhere; }
.admin-photo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.admin-photo-actions .check { margin: 0 auto 0 0; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.filter-tabs a { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--text-sub); }
.filter-tabs a.active { color: var(--text); border-color: var(--accent); }
.admin-posts { list-style: none; padding: 0; margin: 0; }
.admin-post { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 10px; background: var(--bg-elev); }
.admin-post.status-hidden { opacity: 0.6; }
.admin-post.status-pending { border-color: rgba(232, 184, 109, 0.6); }
.admin-post-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.admin-post-actions .btn { padding: 4px 12px; font-size: 13px; }
.badge { font-size: 11px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); }
.badge-visible { color: #6fcf97; border-color: rgba(111, 207, 151, 0.4); }
.badge-hidden { color: var(--danger); border-color: rgba(229, 72, 77, 0.4); }
.badge-pending { color: var(--accent); border-color: rgba(232, 184, 109, 0.5); }
.ban-list { list-style: none; padding: 0; margin: 0; }
.ban-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }

/* ---------- トースト（コピー完了など） ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--bg-hover); border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; font-size: 14px; z-index: 200; }

/* ==========================================================================
   スマホ対応（画面幅 760px 以下）
   ========================================================================== */
@media (max-width: 760px) {
  :root { --row-h: 150px; --gap: 6px; }
  .nav { gap: 14px; }
  .profile { flex-direction: column; align-items: center; text-align: center; gap: 16px; padding-top: 32px; }
  .profile-avatar { flex-basis: auto; width: 96px; height: 96px; font-size: 36px; }
  .profile-text { text-align: left; }
  .sns { justify-content: center; }
  .section { padding-top: 28px; }
  .section-title { font-size: 19px; }
  /* ランキング：1位を大きく、2・3位を横並び */
  .ranking { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ranking-card:first-child { grid-column: 1 / -1; }
  .gallery .card-caption { padding-top: 3px; min-height: 30px; }
  .gallery .card-title { display: none; }
  .gallery .card-caption { justify-content: flex-end; }
  .gallery .like-btn { padding: 2px 8px; font-size: 12px; }
  .lb-img { left: 0; right: 0; width: 100%; }
  .lb-nav { display: none; }   /* スマホは左右スワイプで移動 */
  .lb-info { flex-direction: column; align-items: stretch; padding: 10px 14px 14px; }
  .lb-actions { flex-wrap: wrap; }
  .admin-photo { grid-template-columns: 1fr; }
  .avatar-edit { flex-direction: column; align-items: flex-start; }
  .post-form, .thread { padding: 14px; }
}

/* ---------- 管理画面：ドキュメント（設計書・仕様書） ---------- */
.doc-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 8px; }
.doc-card h2 { font-size: 17px; }
.doc-sheets { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
.doc-sheets span { font-size: 12px; padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-sub); }
.doc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.doc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.doc-head .section-title { margin: 0; }
.doc-toc { position: sticky; top: 56px; z-index: 5; display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; margin: 12px 0 8px; background: var(--bg); border-bottom: 1px solid var(--line); }
.doc-toc a { flex: none; font-size: 13px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-sub); }
.doc-toc a:hover { color: var(--text); border-color: var(--accent); text-decoration: none; }
.doc-sheet { padding-top: 16px; scroll-margin-top: 120px; }
.doc-sheet-title { font-size: 19px; padding-bottom: 6px; border-bottom: 2px solid var(--accent); margin: 16px 0 12px; }
.doc-h { font-size: 15px; margin: 20px 0 8px; padding-left: 10px; border-left: 3px solid var(--accent); }
.doc-p { color: #d6d6d6; white-space: pre-line; font-size: 14px; }
.doc-table-wrap { overflow-x: auto; margin-bottom: 12px; -webkit-overflow-scrolling: touch; }
.doc-table { border-collapse: collapse; width: 100%; font-size: 13px; line-height: 1.6; }
.doc-table th, .doc-table td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; white-space: pre-line; overflow-wrap: anywhere; }
.doc-table th { background: var(--bg-hover); white-space: nowrap; }
.doc-table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.02); }
@media (max-width: 760px) { .doc-table { min-width: 560px; } }

/* ---------- ギャラリーの並び替え ---------- */
.gallery-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 18px; }
.gallery-head .section-title { margin: 0; }
.sort-tabs { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-elev); }
.sort-tabs a { padding: 4px 14px; border-radius: 999px; font-size: 13px; color: var(--text-sub); }
.sort-tabs a:hover { color: var(--text); text-decoration: none; }
.sort-tabs a.active { background: var(--accent); color: #1a1408; font-weight: 700; }

/* ---------- 管理画面：訪問数 ---------- */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-tile { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); padding: 14px 16px; }
.stat-tile p { margin: 0; }
.stat-label { font-size: 13px; color: var(--text-sub); }
.stat-value { font-size: 30px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; }
.stat-value span { font-size: 14px; font-weight: 400; color: var(--text-sub); margin-left: 3px; }
.stat-sub { font-size: 12px; color: var(--text-sub); font-variant-numeric: tabular-nums; }
.stat-chart { width: 100%; height: auto; display: block; margin: 8px 0 4px; }
.stat-chart .bar { fill: var(--accent); }
.stat-chart .bar-group:hover .bar { fill: #f0c889; }
.stat-chart .hit { fill: transparent; }
.stat-chart .bar-group:hover .hit { fill: rgba(255, 255, 255, 0.04); }
.stat-chart .grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.stat-chart .baseline { stroke: var(--text-sub); stroke-width: 1; opacity: 0.5; }
.stat-chart .axis { fill: var(--text-sub); font-size: 11px; }
.stat-table summary { cursor: pointer; color: var(--accent); font-size: 14px; }
