/* flow.css — focus card, span chips, timer, history, taiji momentum */

.flow-idle { text-align: center; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.flow-idle[hidden] { display: none; }
.flow-idle-text { color: var(--ink-faint); font-family: 'Noto Serif SC', serif; font-style: italic; }

.flow-card { text-align: center; padding: 14px 16px; display: flex; flex-direction: column; align-items: center; }
.flow-card[hidden] { display: none; }

.flow-timer {
  font-family: 'Noto Serif SC', serif;
  font-size: 3rem; font-weight: 300; font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em; color: var(--ink); line-height: 1.1;
  transition: color 0.6s var(--ease);
}
.flow-timer.over { color: var(--stone); }
.flow-timer.near-end { color: var(--yang-c); }
.flow-span-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--ink-faint); }
.ring-progress.near-end { stroke: var(--yang-c); }

.flow-task-text { font-size: 1.5rem; font-weight: 300; line-height: 1.4; max-width: 24ch; margin: 4px auto 8px; color: var(--ink); }
.flow-meta { display: flex; gap: 14px; justify-content: center; font-size: 0.8rem; color: var(--ink-faint); margin-bottom: 6px; flex-wrap: wrap; align-items: center; }
.flow-meta .path-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 4px; vertical-align: middle; }

.flow-progress { width: min(280px, 80%); height: 5px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 10px auto 6px; }
.flow-progress .bar { height: 100%; background: var(--stone); border-radius: 999px; transition: width 0.6s var(--ease); }
.flow-progress.over .bar { background: var(--yin-c); }
.flow-progress.hidden { display: none; }

/* span length chips (chosen at start) */
.span-chooser { display: flex; gap: 7px; justify-content: center; margin: 14px 0 16px; flex-wrap: wrap; }
.span-chip {
  min-width: 44px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--ink-soft); font-size: 0.88rem; font-variant-numeric: tabular-nums; transition: all 0.25s var(--ease);
}
.span-chip:hover { border-color: var(--sage-line); color: var(--ink); }
.span-chip.active { background: var(--sage); color: var(--ink); border-color: var(--sage-line); }
.span-chooser-label { font-size: 0.72rem; color: var(--ink-faint); width: 100%; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 2px; }

/* controls */
.flow-controls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 4px; }
.flow-btn {
  padding: 11px 22px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft);
  font-size: 0.95rem; letter-spacing: 0.03em; transition: all 0.28s var(--ease); display: inline-flex; align-items: center; gap: 7px;
}
.flow-btn:hover { border-color: var(--sage-line); color: var(--ink); }
.flow-btn.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.flow-btn.primary:hover { filter: brightness(1.08); }
.flow-btn.ghost { border-style: dashed; }

.choice-card { margin-top: 6px; padding: 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); width: 100%; }
.choice-card .choice-title { font-family: 'Noto Serif SC', serif; color: var(--ink-soft); margin-bottom: 14px; font-size: 1rem; }

/* history inside flow card */
.flow-history { width: min(320px, 90%); margin: 14px auto 0; text-align: left; }
.flow-history .hh { color: var(--ink-faint); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.flow-history .row { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; padding: 3px 0; border-bottom: 1px solid var(--line-soft); }

/* ── taiji (real shape, design language; decorative) ── */
.taiji-svg { display: block; opacity: 0.9; }
.taiji-svg.spin { animation: spin-slow 64s linear infinite; }
.taiji-holder { display: grid; place-items: center; opacity: 0.9; }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .taiji-svg.spin { animation: none; } }

.momentum .mo-item { display: inline-flex; align-items: center; gap: 7px; font-variant-numeric: tabular-nums; }
.momentum .taiji-svg { opacity: 0.6; }

/* ── recovery (☷, yin) ── */
.recovery-moon { font-size: 2.4rem; color: var(--yin-c); opacity: 0.9; }
.recovery-moon.big { font-size: 3rem; }
.recovery-ring { width: 200px; height: 200px; margin: 10px auto 8px; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle, rgba(74,107,122,0.14), transparent 70%); animation: breathe 7s var(--ease) infinite; }
@media (prefers-reduced-motion: reduce) { .recovery-ring { animation: none; } }
.recovery-timer { color: var(--yin-c) !important; }
.recovery-skip { margin-top: 10px; }

.recovery-strip { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.rec-label { font-size: 0.78rem; color: var(--ink-faint); }
.rec-chip { width: 34px; height: 30px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); font-size: 0.82rem; font-variant-numeric: tabular-nums; transition: all 0.25s var(--ease); }
.rec-chip:hover { border-color: var(--yin-c); color: var(--yin-c); }

.flow-bell { opacity: 0.85; margin-bottom: 6px; }

@media (max-width: 520px) { .flow-task-text { font-size: 1.3rem; } .flow-timer { font-size: 2.6rem; } }
