/* ===== リセット・ベース ===== */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Yu Gothic', sans-serif;
  background: #f0f2f5;
  color: #1a1a2e;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* ===== ヘッダー ===== */
.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: #1a1a2e;
  z-index: 100;
  height: 56px;
}
.header-inner {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-logo i { color: #4ade80; font-size: 1.3rem; }
.header-time {
  color: #94a3b8;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

/* ===== メインコンテンツ ===== */
.app-main {
  max-width: 480px;
  margin: 0 auto;
  padding: 56px 0 70px;
}

/* ===== ボトムナビ ===== */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  z-index: 100;
  height: 62px;
}
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #94a3b8;
  font-size: 0.65rem;
  gap: 3px;
  transition: color 0.2s;
}
.bottom-nav-item i { font-size: 1.3rem; }
.bottom-nav-item.active { color: #1a1a2e; }
.bottom-nav-item.active i { color: #3b82f6; }

/* ===== 通貨ペアタブ ===== */
.pair-tabs {
  display: flex;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 56px;
  z-index: 50;
}
.pair-tab {
  flex: 1;
  text-align: center;
  padding: 12px 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}
.pair-tab.active {
  color: #1a1a2e;
  border-bottom-color: #3b82f6;
}

/* ===== 価格カード ===== */
.price-card {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  padding: 24px 20px;
  text-align: center;
}
.price-pair-name {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 4px;
  letter-spacing: 0.1em;
}
.price-value {
  font-size: 2.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.price-meta {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 4px;
}

/* 総合シグナルバッジ */
.signal-badge-large {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 8px;
}
.signal-badge-large.buy { background: rgba(74, 222, 128, 0.2); color: #4ade80; }
.signal-badge-large.sell { background: rgba(248, 113, 113, 0.2); color: #f87171; }
.signal-badge-large.neutral { background: rgba(148, 163, 184, 0.2); color: #94a3b8; }

/* シグナル集計 */
.signal-counts {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}
.signal-count-item {
  flex: 1;
  max-width: 100px;
  padding: 12px;
  border-radius: 12px;
  text-align: center;
}
.buy-bg { background: rgba(74, 222, 128, 0.15); }
.sell-bg { background: rgba(248, 113, 113, 0.15); }
.count-num { font-size: 1.8rem; font-weight: 700; color: #fff; }
.count-label { font-size: 0.7rem; color: #94a3b8; margin-top: 2px; }
.buy-bg .count-num { color: #4ade80; }
.sell-bg .count-num { color: #f87171; }

/* ===== セクションカード ===== */
.section-card {
  background: #fff;
  margin: 12px;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}
/* タイトル行（左：ラベル＋ツールチップ、右：更新日時） */
.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.section-title-left {
  display: flex;
  align-items: center;
  gap: 5px;
}
/* 更新日時バッジ */
.signal-updated-badge {
  font-size: 0.64rem;
  color: #94a3b8;
  font-weight: 400;
  white-space: nowrap;
}
/* ツールチップアイコン */
.info-tip {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  color: #cbd5e1;
  font-size: 0.78rem;
  line-height: 1;
}
/* JS で body 直下に生成されるポップアップ */
.tooltip-popup {
  position: absolute;
  background: #1a1a2e;
  color: #e2e8f0;
  font-size: 0.69rem;
  font-weight: 400;
  line-height: 1.65;
  padding: 9px 12px;
  border-radius: 10px;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(0,0,0,0.28);
  pointer-events: none;
  text-align: left;
  white-space: normal;
  opacity: 0;
  transition: opacity 0.12s;
}

/* ===== シグナルリスト ===== */
.signal-list { display: flex; flex-direction: column; gap: 0; }
.signal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f8fafc;
}
.signal-item:last-child { border-bottom: none; }
.signal-item-left { display: flex; align-items: center; gap: 10px; }
.signal-item-right { text-align: right; }
.signal-type-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  min-width: 40px;
  text-align: center;
}
.signal-type-badge.buy { background: #dcfce7; color: #16a34a; }
.signal-type-badge.sell { background: #fee2e2; color: #dc2626; }
.signal-name { font-size: 0.85rem; font-weight: 600; color: #1a1a2e; }
.signal-tf { font-size: 0.72rem; }
.signal-time-jst { font-size: 0.64rem; color: #94a3b8; margin-top: 1px; font-variant-numeric: tabular-nums; }
.signal-price { font-size: 0.9rem; font-weight: 600; color: #1a1a2e; }
.signal-conf { font-size: 0.7rem; color: #94a3b8; }

/* ===== バックテストリスト ===== */
.bt-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f8fafc;
}
.bt-item:last-child { border-bottom: none; }
.bt-name { font-size: 0.85rem; font-weight: 600; color: #1a1a2e; }
.bt-meta { font-size: 0.72rem; }
.bt-winrate {
  font-size: 1rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
}
.bt-winrate.high { background: #dcfce7; color: #16a34a; }
.bt-winrate.mid { background: #fef9c3; color: #ca8a04; }
.bt-winrate.low { background: #f1f5f9; color: #64748b; }

/* ===== 操作ボタン ===== */
.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #1a1a2e;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
}
.action-btn:active { background: #e2e8f0; transform: scale(0.97); }
.action-btn i { font-size: 1.4rem; color: #3b82f6; }
.action-status {
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  text-align: center;
}
.action-status.loading { background: #fef9c3; color: #92400e; }
.action-status.success { background: #dcfce7; color: #166534; }
.action-status.error { background: #fee2e2; color: #991b1b; }

/* ===== リンク ===== */
.view-all-link {
  display: block;
  text-align: center;
  color: #3b82f6;
  font-size: 0.82rem;
  padding-top: 10px;
  margin-top: 8px;
  border-top: 1px solid #f1f5f9;
  text-decoration: none;
}

/* ===== 空状態 ===== */
.empty-state {
  text-align: center;
  color: #94a3b8;
  font-size: 0.82rem;
  padding: 16px 0;
}
.empty-state i { margin-right: 6px; }
.empty-state-page {
  text-align: center;
  padding: 60px 20px;
  color: #64748b;
}

/* ===== ページタイトル ===== */
.page-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a2e;
  padding: 16px 16px 4px;
}

/* ===== シグナル詳細 ===== */
.signal-detail-item {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
}
.signal-detail-item:last-child { border-bottom: none; }
.sdi-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
.sdi-name { font-size: 0.9rem; font-weight: 600; color: #1a1a2e; }
.sdi-tf { font-size: 0.75rem; }
.sdi-body {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}
.sdi-stat {
  background: #f8fafc;
  border-radius: 8px;
  padding: 6px 8px;
}
.sdi-label { font-size: 0.65rem; color: #94a3b8; display: block; }
.sdi-value { font-size: 0.82rem; font-weight: 600; color: #1a1a2e; }

/* ===== バックテスト詳細 ===== */
.bt-detail-item {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
}
.btd-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
.btd-name { font-size: 0.9rem; font-weight: 600; color: #1a1a2e; }
.btd-body {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btd-stat { background: #f8fafc; border-radius: 6px; padding: 5px 8px; }
.btd-label { font-size: 0.62rem; color: #94a3b8; display: block; }
.btd-value { font-size: 0.8rem; font-weight: 600; color: #1a1a2e; }

/* ===== レポートカード ===== */
.report-card { cursor: pointer; margin-bottom: 8px; }
.report-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 6px; }
.report-date { font-size: 0.82rem; font-weight: 600; color: #1a1a2e; }
.report-preview { font-size: 0.78rem; color: #64748b; line-height: 1.5; }
.report-content {
  font-size: 0.83rem;
  line-height: 1.7;
  color: #1a1a2e;
  white-space: pre-wrap;
  margin-top: 12px;
}
.report-chevron { color: #94a3b8; font-size: 0.9rem; margin-top: 3px; }

/* ===== 設定 ===== */
.setting-item { padding: 12px 0; border-bottom: 1px solid #f8fafc; }
.setting-item:last-child { border-bottom: none; }
.setting-label { display: block; font-size: 0.82rem; font-weight: 600; color: #374151; margin-bottom: 6px; }
.setting-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.9rem;
  background: #f8fafc;
  color: #1a1a2e;
  outline: none;
}
.setting-input:focus { border-color: #3b82f6; background: #fff; }
.setting-hint { font-size: 0.72rem; color: #94a3b8; margin-top: 4px; }

/* ===== リアルタイム価格 ===== */
.price-change-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
  min-height: 20px;
}
.price-change {
  font-size: 0.92rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.price-change.up   { color: #4ade80; }
.price-change.down { color: #f87171; }
.price-update { font-size: 0.7rem; color: #64748b; }

/* ===== チャートカード（ダーク・フルwidth） ===== */
@keyframes spin { to { transform: rotate(360deg); } }

.chart-card {
  background: #131722;
  margin: 0;          /* price-card と幅を揃える */
  padding-bottom: 6px;
}

/* ヘッダー：OHLCバー + TFタブ */
.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 0;
}

/* OHLCバー */
.chart-ohlc-bar { display: flex; gap: 8px; }
.ohlc-item { font-size: 0.67rem; font-variant-numeric: tabular-nums; }
.ohlc-lbl  { color: #475569; margin-right: 2px; }
.ohlc-item span:last-child { color: #94a3b8; font-weight: 600; }

/* TFタブ */
.tf-tabs {
  display: flex;
  gap: 2px;
  background: #1e2a3a;
  border-radius: 8px;
  padding: 3px;
}
.tf-tab {
  padding: 4px 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.tf-tab:hover { color: #94a3b8; }
.tf-tab.active {
  background: #3b82f6;
  color: #fff;
  box-shadow: 0 2px 6px rgba(59,130,246,0.35);
}

/* インジケータートグル凡例 */
.chart-legend {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  padding: 8px 12px 4px;
}
.legend-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid #1e2a3a;
  border-radius: 6px;
  color: #94a3b8;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 8px;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1;
}
.legend-toggle.active  { border-color: #2d3f55; }
.legend-toggle:not(.active) { opacity: 0.3; }
.legend-line {
  width: 14px; height: 2px;
  border-radius: 1px;
  display: inline-block;
  flex-shrink: 0;
}

/* チャート本体・RSI */
#main-chart, #rsi-chart { width: 100%; }
.rsi-header {
  font-size: 0.65rem;
  font-weight: 600;
  color: #475569;
  padding: 5px 12px 2px;
  letter-spacing: 0.04em;
}
.rsi-cur-val {
  color: #818cf8;
  font-variant-numeric: tabular-nums;
  margin-left: 4px;
}
.chart-loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 0.72rem;
  color: #475569;
  padding: 10px;
}

/* ===== 直近シミュレーショントレード ===== */
.sim-rr-badge {
  font-size: 0.64rem;
  color: #64748b;
  font-weight: 600;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.sim-trade-item {
  padding: 10px 0;
  border-bottom: 1px solid #f8fafc;
}
.sim-trade-item:last-child { border-bottom: none; }
.sim-trade-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}
.sim-ind-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: #1a1a2e;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sim-tf-badge {
  font-size: 0.62rem;
  background: #f1f5f9;
  color: #64748b;
  padding: 2px 6px;
  border-radius: 5px;
  font-weight: 700;
  flex-shrink: 0;
}
.sim-outcome {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}
.sim-outcome.win  { background: #dcfce7; color: #16a34a; }
.sim-outcome.loss { background: #fee2e2; color: #dc2626; }
.sim-outcome.open { background: #fef9c3; color: #92400e; }
.sim-trade-times {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  color: #64748b;
  margin-bottom: 4px;
}
.sim-arrow { color: #cbd5e1; }
.sim-trade-prices {
  display: flex;
  gap: 12px;
  font-size: 0.68rem;
  color: #94a3b8;
}
.sim-trade-prices b { color: #1a1a2e; }

/* ===== バックテスト銘柄タブ ===== */
.bt-pair-tabs {
  display: flex;
  background: #fff;
  border-bottom: 2px solid #f1f5f9;
  margin: 0 12px;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.bt-pair-tab {
  flex: 1;
  text-align: center;
  padding: 12px 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1.3;
}
.bt-pair-tab:hover { color: #1a1a2e; background: #f8fafc; }
.bt-pair-tab.active {
  color: #1a1a2e;
  border-bottom-color: #3b82f6;
  background: #eff6ff;
}
.bt-tab-count {
  display: inline-block;
  background: #e2e8f0;
  color: #64748b;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 10px;
  margin-left: 4px;
  vertical-align: middle;
}
.bt-pair-tab.active .bt-tab-count {
  background: #bfdbfe;
  color: #1d4ed8;
}
.bt-panel.section-card {
  border-radius: 0 0 16px 16px;
  margin-top: 0;
}

/* ===== バックテストリンクスタイル ===== */
.btd-name-link {
  color: #1a1a2e;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border-bottom: 1px dashed #3b82f6;
}
.btd-name-link:hover { color: #3b82f6; }
.bt-item-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f8fafc;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.bt-item-link:hover { background: #f8fafc; }
.bt-item-link:last-of-type { border-bottom: none; }

/* ===== インジケーター個別ページ ===== */

/* パンくずリスト */
.ind-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 0.72rem;
  color: #94a3b8;
}
.ind-breadcrumb a { color: #3b82f6; text-decoration: none; }
.ind-breadcrumb i { font-size: 0.65rem; }

/* ヒーローセクション */
.ind-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  padding: 20px 16px;
  text-align: center;
}
.ind-category-badge {
  display: inline-block;
  background: rgba(59,130,246,0.25);
  color: #93c5fd;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.ind-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.3;
}
.ind-best-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.ind-stat-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
}
.ind-stat-pill.win-high { background: rgba(74,222,128,0.2); color: #4ade80; }
.ind-stat-pill.win-mid  { background: rgba(250,204,21,0.2); color: #facc15; }
.ind-stat-pill.win-low  { background: rgba(248,113,113,0.2); color: #f87171; }
.ind-stat-pill.neutral  { background: rgba(148,163,184,0.2); color: #cbd5e1; }

/* セクションタイトル */
.ind-section-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

/* テキスト */
.ind-text {
  font-size: 0.82rem;
  line-height: 1.7;
  color: #374151;
}

/* シグナルの仕組みボックス */
.ind-feature-box {
  background: #f0f7ff;
  border-left: 3px solid #3b82f6;
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  margin-top: 10px;
}
.ind-feature-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #3b82f6;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* 得意・苦手グリッド */
.ind-market-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
  margin: 0 12px 12px;
}
.ind-market-card {
  border-radius: 16px;
  padding: 14px;
  margin: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.ind-market-card.good { border-top: 3px solid #22c55e; }
.ind-market-card.bad  { border-top: 3px solid #ef4444; }
.ind-market-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ind-market-list li { font-size: 0.75rem; color: #374151; line-height: 1.4; }

/* バックテスト結果テーブル */
.ind-results-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ind-results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
  min-width: 360px;
}
.ind-results-table th {
  background: #f8fafc;
  color: #64748b;
  font-weight: 600;
  font-size: 0.68rem;
  padding: 6px 8px;
  text-align: center;
  white-space: nowrap;
}
.ind-results-table td {
  padding: 7px 8px;
  border-bottom: 1px solid #f1f5f9;
  text-align: center;
  color: #1a1a2e;
}
.ind-results-table tr:last-child td { border-bottom: none; }

/* 取引履歴テーブル */
.ind-trades-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ind-trades-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
  min-width: 460px;
}
.ind-trades-table th {
  background: #f8fafc;
  color: #64748b;
  font-weight: 600;
  font-size: 0.66rem;
  padding: 6px 7px;
  text-align: center;
  white-space: nowrap;
}
.ind-trades-table td {
  padding: 6px 7px;
  border-bottom: 1px solid #f8fafc;
  text-align: center;
  color: #1a1a2e;
}
.ind-trades-table tr:last-child td { border-bottom: none; }
.ind-trade-time { font-size: 0.67rem; color: #64748b; white-space: nowrap; }

/* WIN/LOSS バッジ */
.ind-outcome {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
}
.ind-outcome.win  { background: #dcfce7; color: #16a34a; }
.ind-outcome.loss { background: #fee2e2; color: #dc2626; }
.ind-outcome.neutral { background: #f1f5f9; color: #94a3b8; }

/* モノスペースフォント */
.font-mono { font-family: 'Courier New', Courier, monospace; }

/* 関連指標グリッド */
.ind-related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ind-related-item {
  display: block;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  text-decoration: none;
  transition: all 0.15s;
}
.ind-related-item:hover { background: #eff6ff; border-color: #3b82f6; }
.ind-related-cat {
  font-size: 0.62rem;
  color: #94a3b8;
  margin-bottom: 2px;
}
.ind-related-name {
  font-size: 0.76rem;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.3;
}
.ind-related-wr {
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 4px;
}
.ind-related-wr.high { color: #16a34a; }
.ind-related-wr.mid  { color: #ca8a04; }
.ind-related-wr.low  { color: #94a3b8; }
