/* 分析中は pageTitle が隠れ #status が最上部要素になるため、上端の safe-area を自前で確保する */
.status { text-align: center; margin: calc(20px + env(safe-area-inset-top)) 0 20px; color: var(--text-dim); }
.spinner { display: inline-block; width: 20px; height: 20px; border: 3px solid var(--spinner-track); border-top: 3px solid var(--accent); border-radius: 50%; animation: spin 1s linear infinite; margin-right: 8px; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress-wrap { margin-top: 12px; max-width: 480px; margin-left: auto; margin-right: auto; }
.progress-bar { width: 100%; height: 8px; background: var(--panel); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 4px; transition: width 0.4s ease; width: 0%; }
/* 総数未確定(Phase2)中の不定アニメーション */
.progress-fill.indeterminate { width: 40% !important; transition: none; animation: prog-indeterminate 1.2s ease-in-out infinite; }
@keyframes prog-indeterminate { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }
.progress-label { display: flex; justify-content: space-between; margin-top: 6px; font-size: 0.875rem; color: var(--text-dim); }

/* ===== 段階リスト・速報の案内 ===== */
.status:has(.status-steps) .spinner { display: none; }
.status-steps { list-style: none; margin: 16px auto 0; padding: 0; max-width: 480px; text-align: left; }
.status-steps li { display: flex; align-items: center; gap: 12px; min-height: 44px; border-bottom: 1px solid var(--line); color: var(--text); font-size: 0.9375rem; }
.status-steps li:last-child { border-bottom: 0; }
.status-steps li[data-state="wait"] { color: var(--muted); }
.status-step-mark { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border: 2px solid var(--line); border-radius: 50%; }
.status-steps li[data-state="done"] .status-step-mark { background: var(--accent); border-color: var(--accent); }
.status-steps li[data-state="done"] .status-step-mark::after { content: ""; width: 5px; height: 9px; border: solid var(--on-accent); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.status-steps li[data-state="now"] .status-step-mark { border-color: var(--accent); border-top-color: transparent; animation: spin 1s linear infinite; }
@media (prefers-reduced-motion: reduce) { .status-steps li[data-state="now"] .status-step-mark { animation: none; } }
.status .ui-notice { max-width: 480px; margin: 16px auto 0; text-align: left; }

/* ===== Report container (dashboard) ===== */
.report { line-height: 1.7; padding-bottom: 40px; }

/* ===== Skeleton (loading placeholder) ===== */
.skel {
  background: linear-gradient(90deg, var(--panel-2) 25%, var(--line) 37%, var(--panel-2) 63%);
  background-size: 400% 100%; border-radius: 8px; animation: skel-shimmer 1.4s ease infinite;
}
@keyframes skel-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.skel-pill { flex: 1; min-width: 0; height: 38px; border-radius: 999px; }

