.interactions-compact {
  max-width: 500px;
  margin: 50px auto;
  padding: 5px;
}

.section { 
  margin-bottom: 25px; 
}

.section-title {
  color: #2c3e50;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 2px solid #eaeaea;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-count {
  background: #dfe9ef;
  padding: 2px 5px;
  border-radius: 12px;
  font-size: 11px;
  color: #666;
}

.interaction-row {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: #f8f9fa;
  transition: background 0.2s;
  min-height: 40px;
}

.interaction-row:hover { 
  background: #e9ecef; 
}

.interaction-badge {
  min-width: 60px;
  text-align: center;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  margin-right: 12px;
  text-transform: uppercase;
}

.badge-merger {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.badge-clash {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.interaction-content {
  flex: 1;
  display: flex; /* flex */
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  font-size: 14px;
}

.element-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.element-symbol {
  /* font-weight: bold; */
  font-size: 14px;
  min-width: 5px;
  text-align: center;
}

.element-position {
  font-size: 11px;
  color: #555;
  padding: 1px 6px;
  border-radius: 5px;
}

.position-personal {
  background: #e8ebe9;
  color: #155724;
  border: 1px solid #e1e6e2;
}

.position-today {
  background: #d9e7f7;
  color: #004085;
  border: 1px solid #d0e4fa;
}

.position-regular {
  background: #f0f2f5;
  color: #555;
  border: 1px solid #dee2e6;
}

.interaction-arrow {
  color: #888;
  margin: 0 2px;
  font-weight: normal;
}

.interaction-result {
  font-weight: bold;
  padding: 4px 6px;
  border-radius: 4px;
  margin-left: 4px;
  font-size: 12px;
}

.result-wood { 
  background: #d4edda; 
  color: #155724; 
}

.result-fire { 
  background: #f8d7da; 
  color: #721c24; 
}

.result-earth { 
  background: #fff3cd; 
  color: #856404; 
}

.result-metal { 
  background: #cce5ff; 
  color: #004085; 
}

.result-water { 
  background: #d1ecf1; 
  color: #0c5460; 
}

.summary-row {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px;
  border-radius: 8px;
  margin: 15px 0;
}

.summary-content {
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.summary-item {
  display: flex;
  flex-direction: column;
}

.summary-number {
  font-size: 18px;
  font-weight: bold;
}

.summary-label {
  font-size: 11px;
  opacity: 0.9;
  margin-top: 2px;
}

.no-interactions {
  text-align: center;
  color: #888;
  font-style: italic;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.compact-header {
  text-align: left;
  margin-bottom: 20px;
  padding-bottom: 15px;
}

.header-title {
  font-size: 18px;
  color: #2c3e50;
  margin-bottom: 5px;
}

.header-subtitle {
  font-size: 12px;
  color: #6c757d;
}

.takt-info {
  background: #f0f8ff;
  padding: 8px 12px;
  border-radius: 6px;
  margin: 10px 0;
  font-size: 12px;
  color: #004085;
  border: 1px solid #cce5ff;
  text-align: center;
}

.legend {
  display: flex;
  gap: 10px;
  font-size: 11px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend-personal { 
  background: #e1eae3; 
}

.legend-today { 
  background: #d9e7f7; 
}

.position-tag {
  display: inline-block;
  background: #667eea;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  margin: 0 2px;
  font-size: 11px;
}