/* ===== Report summary ===== */
.report-summary { margin-bottom: 36px; }
.report-scope { margin: 0 0 8px; color: var(--muted); font-size: 0.875rem; }

/* ===== Panels（面・枠・影なし。塗りがあるのは要約だけ） ===== */
.panel { background: none; border: none; padding: 0; margin: 0 0 36px; }
.report .panel > h2, .panel > h2 { font-size: 1.125rem; color: var(--text); margin: 0 0 12px; }
.action-summary { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.875rem; margin-bottom: 8px; }
.action-summary strong { color: var(--accent); }
.action-up { color: var(--good); }
.action-down { color: var(--bad); }
.action-worsened { font-size: 0.875rem; color: var(--muted); margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.action-enemy { font-size: 0.875rem; color: var(--muted); margin-bottom: 10px; }
.action-chip { border: 1px solid var(--bad); color: var(--bad); border-radius: 999px; padding: 1px 8px; }
.panel .action-list { list-style: none; counter-reset: action; display: flex; flex-direction: column; gap: 10px; padding: 0; margin: 0; }
.panel .action-list li { counter-increment: action; position: relative; padding: 10px 12px 10px 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--accent-a05); }
.panel .action-list li::before { content: counter(action); position: absolute; left: 12px; top: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 0.875rem; display: flex; align-items: center; justify-content: center; }
.action-title { font-weight: 700; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.action-impact { font-size: 0.875rem; font-weight: 700; border-radius: 999px; padding: 1px 8px; border: 1px solid currentColor; }
.action-impact.high { color: var(--bad); }
.action-impact.mid { color: var(--warn-text); }
.action-impact.low { color: var(--muted); }
.action-detail { font-size: 0.875rem; color: var(--muted); margin-top: 4px; line-height: 1.6; }
.action-empty, .action-hint { font-size: 0.875rem; color: var(--muted); }
.action-hint { margin-top: 10px; }
.action-more { width: 100%; margin-top: 10px; padding: 8px; font-size: 0.875rem; border-radius: 10px; border: 1px dashed var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.action-gain { font-size: 0.875rem; margin-top: 6px; }
.action-gain strong { color: var(--good); font-size: 1.125rem; }
.action-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 44px; margin-top: 4px; padding: 0 4px; border: none; background: none; color: var(--accent); font-size: 0.875rem; font-weight: normal; text-align: left; cursor: pointer; transition: none; }
.action-link-count { flex: none; }
button.action-link:hover { background: var(--accent-a10); }
.focus-btn { width: auto; margin-top: 8px; font-size: 0.875rem; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--accent); background: transparent; color: var(--accent); cursor: pointer; }
.focus-btn.ghost { border-color: var(--line); color: var(--muted); margin-top: 12px; }
.focus-card { border: 1px solid var(--accent); border-radius: 10px; padding: 12px 14px; background: var(--accent-a06); }
.focus-card.done { border-color: var(--good); background: var(--good-a08); }
.focus-label { font-size: 0.875rem; color: var(--muted); }
.focus-label.complete { font-size: 0.875rem; font-weight: 800; color: var(--good); }
.focus-title { font-weight: 800; font-size: 1.0625rem; margin: 2px 0 8px; }
.focus-progress { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.875rem; }
.focus-progress strong { color: var(--accent); }
.focus-streak { color: var(--good); font-weight: 700; }
.focus-condition { font-size: 0.875rem; color: var(--muted); margin-top: 4px; }
.focus-caption { font-size: 0.875rem; color: var(--muted); margin-top: 10px; }
.focus-marks { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.focus-mark { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.875rem; font-weight: 800; background: var(--bad); border: 1px solid var(--bad); color: var(--on-accent); }
.focus-mark.empty { background: transparent; border: 1px dashed var(--mark-empty-border); color: var(--muted); font-weight: 400; }
.focus-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.focus-actions .focus-btn.ghost { margin-top: 8px; }
.focus-mark.ok { background: var(--good); border-color: var(--good); color: var(--on-accent); }
.two-col { display: grid; grid-template-columns: 360px 1fr; gap: 18px; align-items: center; }

/* ===== Tabs ===== */
.tabs { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; flex-basis: 100%; }
.tab {
  flex: 0 0 auto; min-height: 44px; padding: 0 14px; border: none; border-bottom: 2px solid transparent; border-radius: 0;
  background: none; color: var(--muted); font-size: 0.875rem; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: color .18s, border-color .18s; width: auto;
}
.tab:hover { color: var(--text); }
@media (max-width: 720px) { .tab { flex: 1 0 auto; } } /* スマホ幅は横幅いっぱいに均等割り。入りきらないときは従来どおり横スクロール */
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tabpane { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ===== Tab contents ===== */
.ms-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; gap: 8px; flex-wrap: wrap; }
.ms-head .name { font-weight: 700; font-size: inherit; }
.ms-head .meta { font-size: 0.875rem; color: var(--muted); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.875rem; font-weight: 700; }
.badge.win { background: var(--great-a15); color: var(--great); }
.badge.lose { background: var(--terrible-a15); color: var(--terrible); }
/* タイムアップ（制限時間切れ）試合を示す補助バッジ。勝敗バッジの隣に添える。 */
.badge-timeup { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: 0.875rem; font-weight: 700; background: var(--timeup-a15); color: var(--timeup); }

/* ===== 期間0件の空の状態 ===== */
.report-empty { text-align: center; padding: 32px 8px; }
.report-empty b { display: block; color: var(--text); font-size: 1.0625rem; }
.report-empty p { margin: 4px 0 16px; color: var(--muted); font-size: 0.9375rem; }

/* ===== ホーム画面: 前回との比較 ===== */
.today-label { font-size: 0.875rem; color: var(--muted); }
.today-title { font-size: 1.25rem; font-weight: 800; margin: 2px 0 6px; }
.today-wl { font-size: 1rem; font-weight: 700; margin-left: 6px; }
.today-wl .w { color: var(--good); }
.today-wl .l { color: var(--bad); }
.today-ms { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.today-chip { font-size: 0.875rem; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.today-chip.more { color: var(--muted); }
.today-empty { font-size: 0.875rem; color: var(--muted); margin: 0; }
.report .today-cmp th { color: var(--muted); font-weight: 400; padding: 6px 0; background: none; }
.report .today-cmp td { text-align: right; padding: 6px 0 6px 8px; font-variant-numeric: tabular-nums; }
.today-cmp .prev { color: var(--muted); }
.today-cmp .now { font-weight: 800; }
.today-cmp .up { color: var(--good); font-weight: 700; }
.today-cmp .down { color: var(--bad); font-weight: 700; }
.today-cmp .flat { color: var(--muted); }
