/* 薬剤データ（thio-value）: プロダクトマップ・使った剤の一覧・色相環の参考図。
   置かれる地は「暗い地／明るい地」どちらもある（統合コントローラーのモーダル、旧カルテの履歴カード）ので、
   地の上の文字・線は --anx-base-*（ダークで白系に切り替わる）。明るい塗りの上は --anx-text 固定。 */
.bcm {
  margin: 8px 0 4px;
  color: var(--anx-base-text);
}
.bcm-h {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--anx-base-text);
}
.bcm-sub,
.bcm-note {
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--anx-base-text-muted);
  margin: 2px 0 6px;
}
.bcm-svg {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 4px auto;
}
.bcm-agents { margin-top: 8px; }
.bcm-agents-h {
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 4px;
  color: var(--anx-base-text);
}
.bcm-mix { margin: 6px 0 10px; }
.bcm-mix-h {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--anx-base-text);
  overflow-wrap: anywhere;
}
.bcm-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.68rem;
  background: var(--anx-accent-soft);
  color: var(--anx-text);
}
.bcm-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.78rem;
  color: var(--anx-base-text);
}
.bcm-table th {
  text-align: left;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 4px 4px;
  color: var(--anx-base-text-muted);
  border-bottom: 1px solid var(--anx-base-border);
}
.bcm-table th:first-child,
.bcm-table td:first-child { width: 44%; }
.bcm-table th:last-child,
.bcm-table td:last-child { width: 28px; text-align: center; }
.bcm-table td {
  padding: 5px 4px;
  vertical-align: top;
  border-bottom: 1px solid var(--anx-base-border);
  color: var(--anx-base-text);
  overflow-wrap: anywhere;
}
.bcm-table tr.bcm-sum td { font-weight: 800; }
.bcm-g,
.bcm-origin {
  display: block;
  font-size: 0.68rem;
  color: var(--anx-base-text-muted);
}
.bcm-link {
  font-weight: 800;
  text-decoration: none;
  color: var(--anx-base-text);
}
.bcm-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.bcm-second {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  margin: 6px 0;
  border-radius: 8px;
  font-size: 0.8rem;
  background: var(--anx-primary-soft);
  color: var(--anx-text);
}
.bcm-second .bcm-link { color: var(--anx-text); }
.bcm.is-compact .bcm-svg { max-width: 340px; }

/* 色相環 */
.bhw { color: var(--anx-base-text); }
.bhw-svg {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  margin: 0 auto;
}
.bhw-line {
  margin: 8px 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--anx-base-text);
}
.bhw-pairs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 0.78rem;
  color: var(--anx-base-text);
}
.bhw-pair { display: inline-flex; align-items: center; gap: 4px; }
.bhw-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--anx-base-border);
}
.bhw-note {
  margin-top: 8px;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--anx-base-text-muted);
}

/* 旧カルテ（#recipe-list）の混合の見出し（表示だけ） */
.karte-recipe-mix-head {
  margin: 6px 0 4px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--anx-primary-soft);
  color: var(--anx-text);
}
.card.karte-recipe-in-mix { border-left: 3px solid var(--anx-primary); }
.karte-history-chem {
  margin: 4px 0 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--anx-base-border);
  background: var(--anx-base-surface);
  color: var(--anx-base-text);
}
