/* === デモ: シングルパターン（中央寄せ） === */
.demo-container {
  padding: 24px;
  max-width: 560px;
}

/* デモ全体のラッパー */
.fu-wrap {
  width: 100%;
}

/* デモ注釈（黄色の警告ボックス） */
.fu-demo-note {
  padding: 10px 14px;
  background: #FEF3C7;
  border-left: 4px solid #F59E0B;
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  color: #92400E;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* ファイル選択ラベル */
.fu-file-label {
  display: block;
  padding: 20px;
  border: 2px dashed #CBD5E1;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  font-size: 14px;
  color: #5A6A7A;
  transition: border-color 0.15s, background 0.15s;
  margin-bottom: 10px;
}
.fu-file-label:hover {
  border-color: #2563EB;
  background: #EFF6FF;
}
/* inputはラベルクリックで起動するため非表示 */
.fu-file-input { display: none; }

/* 選択ファイル情報 */
.fu-file-info {
  font-size: 13px;
  color: #374151;
  margin: 0 0 16px;
  min-height: 1.4em;
}

/* バー外枠 */
.fu-bar-wrap {
  background: #E5E7EB;
  border-radius: 9999px;
  height: 14px;
  overflow: hidden;
  margin-bottom: 6px;
}

/* バー本体 */
.fu-bar {
  height: 100%;
  width: 0%;
  background: #2563EB;
  border-radius: 9999px;
  transition: width 0.2s ease;
}
/* 完了時に緑に切り替える */
.fu-bar--done { background: #16A34A; }

/* パーセンテージ表示 */
.fu-percent {
  font-size: 13px;
  font-weight: 700;
  text-align: right;
  color: #374151;
  margin: 0 0 10px;
  min-height: 1.4em;
}

/* ステータステキスト */
.fu-status {
  font-size: 13px;
  color: #5A6A7A;
  margin: 0 0 16px;
  min-height: 1.4em;
}

/* ボタン群 */
.fu-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* 開始ボタン（青） */
.fu-start-btn {
  padding: 8px 18px;
  background: #2563EB;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  font-family: sans-serif;
  transition: background 0.15s, opacity 0.15s;
}
.fu-start-btn:hover:not(:disabled) { background: #1D4ED8; }
.fu-start-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* リセットボタン */
.fu-reset-btn {
  padding: 8px 18px;
  background: #fff;
  color: #5A6A7A;
  border: 1.5px solid #D0D7E0;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  font-family: sans-serif;
  transition: background 0.15s, border-color 0.15s;
}
.fu-reset-btn:hover { background: #F4F6F9; border-color: #9AA5B4; }

/* ソースヒント */
.source-hint {
  margin: 0 0 16px;
  padding: 10px 14px;
  font-size: 13px;
  color: #5A6A7A;
  background: #F4F6F9;
  border-left: 3px solid #2B7FE8;
  border-radius: 0 6px 6px 0;
  line-height: 1.7;
}
.source-hint code {
  font-family: monospace;
  background: #E8EDF4;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 12px;
}

/* プロンプト補足 */
.prompt-notes {
  margin-bottom: 20px;
  padding: 14px 16px;
  background: #F4F6F9;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.7;
}
.prompt-note-caution { margin: 0 0 8px; color: #E65100; }
.prompt-note-tip { margin: 0; color: #5A6A7A; }

/* レスポンシブ */
@media (max-width: 480px) {
  .demo-container { padding: 16px; }
  .fu-file-label { padding: 16px; }
}
