/* ============================================================
 * ENGINE 8分類ヒアリングフォーム専用の追加部品。
 * ベースは design-lab/styles/（tokens/components/motion のコピー）。
 * トークンに無い色は新設しない（design-lab CLAUDE.md 準拠）。
 * ============================================================ */

/* 進捗（上部固定なし・シンプルなバー＋カウンタ） */
.sv-prog { display: flex; align-items: center; gap: 8px; margin: 4px 0 14px; }
.sv-prog .track { flex: 1; height: 6px; border-radius: 99px; background: #f0e9e7; overflow: hidden; }
.sv-prog .fill { height: 100%; border-radius: 99px; background: var(--grad-brand); transition: width .3s; }
.sv-prog .cnt { font-family: var(--serif); font-weight: 800; font-size: 12px; color: var(--muted-fg); white-space: nowrap; }

/* 動作選択チップ（タップ順に番号） */
.act-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.act-btn { position: relative; text-align: center; min-height: 56px; display: flex;
  flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.act-btn .an { font-family: var(--serif); font-weight: 800; font-size: 15px; }
.act-btn .av { font-size: 10px; color: var(--muted-fg); font-weight: 600; }
.act-btn.on .av { color: var(--brand-subtle-fg); }
.rank-badge { position: absolute; top: -7px; left: -7px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--grad-brand); color: #fff; font-weight: 800; font-size: 12px;
  display: flex; align-items: center; justify-content: center; font-family: var(--serif);
  box-shadow: 0 2px 6px rgba(184,134,11,.35); }

/* フレーバー行（チェック → 開いたら強度3択） */
.fl-item { border: 1.5px solid var(--border); border-radius: var(--r-lg); background: var(--surface);
  box-shadow: var(--sh-sm); margin-bottom: 8px; overflow: hidden; }
.fl-item.on { border-color: var(--brand); }
.fl-head { display: flex; gap: 10px; align-items: flex-start; padding: 12px 13px; cursor: pointer; }
.fl-head .ck { flex: 0 0 auto; width: 21px; height: 21px; border-radius: 6px; border: 2px solid var(--border);
  background: var(--surface); margin-top: 1px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 800; }
.fl-item.on .fl-head .ck { background: var(--brand); border-color: var(--brand); }
.fl-head .fn { font-weight: 800; font-size: 13.5px; color: var(--head); }
.fl-head .fp { font-size: 12.5px; line-height: 1.6; color: var(--fg); margin-top: 2px; }
.fl-item.on .fl-head .fn { color: var(--brand-deep); }
.fl-body { padding: 0 13px 12px 44px; }
.fl-q { font-size: 11.5px; font-weight: 700; color: var(--muted-fg); margin-bottom: 6px; }

/* 強度・評価の等幅セグメント（対称選択肢＝どれも同じ見た目。片側強調しない） */
.seg { display: flex; gap: 6px; }
.seg .sg { flex: 1 1 0; min-width: 0; text-align: center; background: var(--surface); color: var(--fg);
  border: 1.5px solid var(--border); border-radius: 10px; padding: 9px 2px; min-height: 42px;
  font-size: 11.5px; font-weight: 700; font-family: var(--font); cursor: pointer; appearance: none;
  line-height: 1.3; box-shadow: var(--sh-sm); }
.seg .sg.on { border-color: var(--brand); background: var(--brand-subtle); color: var(--brand-deep); }
.seg.seg5 .sg { font-size: 10.5px; padding: 8px 1px; }

/* スイッチチップ（複数選択） */
.sw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.sw-btn { text-align: left; min-height: 52px; padding: 9px 11px; }
.sw-btn .sn { font-weight: 800; font-size: 12.5px; display: block; }
.sw-btn .sv { font-size: 11px; color: var(--muted-fg); display: block; margin-top: 2px; line-height: 1.4; }
.sw-btn.on .sv { color: var(--brand-subtle-fg); }

/* 設問ブロック */
.q-block { margin: 0 0 18px; }
.q-title { font-family: var(--serif); font-weight: 700; font-size: 15px; color: var(--head);
  line-height: 1.6; margin-bottom: 4px; }
.q-title .req { color: #b0483c; font-size: 11px; font-weight: 800; margin-left: 4px; }
.q-sub { font-size: 11.5px; color: var(--muted-fg); line-height: 1.6; margin-bottom: 8px; }

/* フッターのナビボタン行 */
.sv-nav { display: flex; gap: 10px; margin-top: 18px; }
.sv-nav .back { flex: 1; text-align: center; }
.sv-nav .next { flex: 2; }

/* エラーメッセージ */
.sv-err { display: none; background: #fdf0ee; border-left: 3px solid #b0483c; border-radius: 0 var(--r-md) var(--r-md) 0;
  color: #8c3a30; font-size: 12.5px; font-weight: 700; padding: 10px 13px; margin: 10px 0 0; line-height: 1.6; }
.sv-err.show { display: block; }

/* パスワードゲート */
.gate-wrap { max-width: 360px; margin: 12vh auto 0; text-align: center; }
.gate-wrap .glogo { font-family: var(--serif); font-weight: 800; font-size: 24px; color: var(--brand-deep);
  letter-spacing: .06em; margin-bottom: 6px; }

/* 完了画面 */
.done-wrap { text-align: center; padding: 8vh 0; }
.done-wrap .big { font-size: 44px; margin-bottom: 10px; }
