:root {
  --cb-blue:   #2B7FE8;
  --cb-orange: #FB923C;
  --cb-bg:     #F8FAFC;
  --cb-border: #E2E8F0;
  --cb-text:   #1E293B;
  --cb-label:  #2B7FE8;
}

/* デモコンテナ: パターンを縦並びにする */
.demo-container {
  flex-direction: column;
  align-items: stretch;
  padding: 24px;
  gap: 40px;
}

/* パターンブロック */
.cb-pattern {
  max-width: 720px;
}

/* パターンラベル */
.cb-pattern-label {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--cb-label);
  letter-spacing: 0.04em;
}

/* グラフラッパー共通 */
.cb-chart-wrap {
  background: #fff;
  border: 1px solid var(--cb-border);
  border-radius: 8px;
  padding: 16px;
  box-sizing: border-box;
  position: relative;
}

/* 縦棒: 幅を制限して適切なアスペクト比を保つ */
.cb-chart-wrap--vertical {
  max-width: 680px;
  height: 320px;
}

/* 横棒: 行数（5行）に合わせた高さ */
.cb-chart-wrap--horizontal {
  max-width: 680px;
  height: 280px;
}

/* ローディングメッセージ */
.cb-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 13px;
  color: #94A3B8;
}

/* サンプルソースの JSON タブ用スタイル */
.tab-btn[data-tab="json"] {
  /* JSON タブは JS タブの直後に来るため特別なスタイルは不要 */
}

/* プロンプトブロック間の余白 */
.prompt-block {
  margin-bottom: 20px;
}
.prompt-block:last-child {
  margin-bottom: 0;
}
.prompt-block-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--cb-label);
  letter-spacing: 0.04em;
}
