/* ===== ボトムシート（指標辞書シート共通） ===== */
/* Phase A3 準拠 */

.bottom-sheet {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

.bottom-sheet[aria-hidden="false"] {
  pointer-events: auto;
}

.bottom-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity .25s ease;
}

.bottom-sheet[aria-hidden="false"] .bottom-sheet-backdrop {
  opacity: 1;
}

.bottom-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: var(--space-3) var(--space-4);
  padding-bottom: max(var(--space-5), env(safe-area-inset-bottom, var(--space-5)));
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
  -webkit-overflow-scrolling: touch;
}

.bottom-sheet[aria-hidden="false"] .bottom-sheet-panel {
  transform: translateY(0);
}

/* ドラッグハンドル */
.bottom-sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--color-border-strong);
  border-radius: 2px;
  margin: 0 auto var(--space-3);
}

/* ヘッダー */
.bottom-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.bottom-sheet-title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  margin: 0;
  color: var(--color-text);
}

.bottom-sheet-close {
  background: var(--color-bg-subtle);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  color: var(--color-text-sub);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.bottom-sheet-close:active {
  opacity: 0.7;
}

/* ===== 指標リスト（シート内・ガイド共通） ===== */

.indicator-sheet-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.indicator-sheet-list li + li {
  border-top: 1px solid var(--color-border);
}

.indicator-sheet-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: transparent;
  border: none;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  color: var(--color-text);
  min-height: 56px;
  transition: background .15s ease;
  -webkit-tap-highlight-color: transparent;
}

.indicator-sheet-item:active {
  background: var(--color-bg-subtle);
}

/* カラードット */
.indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* テキスト部分 */
.indicator-info {
  flex: 1;
  min-width: 0;
}

.indicator-info-name {
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  margin: 0;
  line-height: 1.4;
}

.indicator-info-summary {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin: 2px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 右端 CTA */
.indicator-info-cta {
  font-size: var(--fs-sm);
  color: var(--color-brand-hover);
  font-weight: var(--fw-medium);
  flex-shrink: 0;
}

/* 「すべての指標を見る」ボタン */
.indicator-sheet-all {
  width: 100%;
}
